Skip to content

Instantly share code, notes, and snippets.

View mannynotfound's full-sized avatar

Manny404 mannynotfound

View GitHub Profile
for i in {1..40}; do
curl -s -o /dev/null -w "%{http_code}\n" \
https://www.yourapp.com/product/sample-product-slug/ &
done
wait
[
"0xe826F1C06d5ae90E4C098459D1b7464a8dC604cA",
"0x7BAAe7F7DB0078A1967f84FeDF7dAa2703Db4eCd",
"0xF296178d553C8Ec21A2fBD2c5dDa8CA9ac905A00",
"0x59b55856bB868a7BF4B34217342B5C18F5E15Cc8",
"0x17cd072cBd45031EFc21Da538c783E0ed3b25DCc",
"0x48A5b35225259D5D6f3DD3cDAE040d27B4bD324F",
"0x87641313E36e94E4422610A6703eF3e1a8Aca5fE",
"0xF73FE15cFB88ea3C7f301F16adE3c02564ACa407",
"0x25Fc8577D6116C752A1eb2d3276dBB8A15d8431f",
@mannynotfound
mannynotfound / voguescrape.py
Created February 12, 2019 04:51
quick & dirty script to scrape vogue for all the y-3 collections
import requests
from bs4 import BeautifulSoup
import urllib.request
import os
page = requests.get('https://www.vogue.com/fashion-shows/fall-2019-ready-to-wear/y-3')
soup = BeautifulSoup(page.content, features='html.parser')
carousel_items = soup.find_all('div', 'carousel--item')
@mannynotfound
mannynotfound / deactivate_twitter.py
Created July 30, 2018 15:05
deactive a twitter account automatically
from selenium import webdriver
def deactive_twitter(username, password):
driver = webdriver.Chrome()
driver.implicitly_wait(30)
driver.get('https://twitter.com/login')
username_field = driver.find_element_by_class_name('js-username-field')
password_field = driver.find_element_by_class_name('js-password-field')
@mannynotfound
mannynotfound / tweet_280_chars.md
Created September 27, 2017 04:29
tweet with 280 characters
@mannynotfound
mannynotfound / pi-wifi.md
Created April 10, 2016 03:18
quick and dirty raspberry pi wifi connect
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback

auto wlan0
iface wlan0 inet dhcp
@mannynotfound
mannynotfound / gpio-button.py
Created April 10, 2016 01:07
Reads input from a simple GPIO arcade button to Raspberry Pi and triggers an action
#!/usr/bin/env python
import time
import RPi.GPIO as GPIO
# set up pin numbering scheme
GPIO.setmode(GPIO.BCM)
# set up pin 17 as input
GPIO.setup(17, GPIO.IN, pull_up_down=GPIO.PUD_UP)
@mannynotfound
mannynotfound / face_replace.py
Created April 5, 2016 05:24 — forked from robertskmiles/face_replace.py
A script to automatically replace faces in group photos
#!/usr/bin/python
# face_replace.py
# Usage: python face_replace.py <image_file> [face index]
import sys
from opencv.cv import *
from opencv.highgui import *
from PIL import Image, ImageEnhance
import random