This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tested on https://www.overclock.net/threads/haswell-overclocking-guide-with-statistics.1411077/ | |
from bs4 import BeautifulSoup | |
import requests, sys, json | |
r = requests.get(sys.argv[1]) | |
f = open('tmp.html', 'w') | |
f.write(r.text) | |
f.close() | |
soup = BeautifulSoup(open('tmp.html', 'r')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Author: Keith Stellyes | |
A script that computes all possible rock-paper-scissors combinations of types | |
''' | |
type_source = ''' | |
Bug Grass, Dark, Psychic Fire, Flying, Rock | |
Dark Ghost, Psychic Bug, Fairy, Fighting | |
Dragon Dragon Dragon, Fairy, Ice | |
Electric Flying, Water Ground |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import shutil, os, sys, json, requests, getpass | |
def ensure_dir(dir): | |
try: | |
os.mkdir(dir) | |
except FileExistsError: | |
# It's OK if dir doesn't exist, it's just cleaner for code to have an | |
# "ensure" function | |
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Adds Shrek as a unit of measurement (=95 mins) to GNU units | |
F=$(units -U) | |
echo "###################" >> $F | |
echo "# Added by script #" >> $F | |
echo "###################" >> $F | |
echo shrek 95 min >> $F | |
echo "###################" >> $F |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Copyright 2018 Keith Stellyes | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE O |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from wordcloud import WordCloud, ImageColorGenerator | |
from PIL import Image | |
import numpy as np | |
s = input("Source text:") | |
p = input("Image file:") | |
outfile = input("Out file?") | |
s = open(s, 'r').read() | |
coloring = np.array(Image.open(p)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* AUTHOR: Keith Stellyes | |
* | |
* This is for Google's http://google-gruyere.appspot.com/ | |
* This contains various exploits for it. | |
* | |
* At the very bottom, the exact HTML to insert into the profile is there. | |
* This specific attack assumes the attacker has a web page ready to listen. This would be put | |
* on the user page and sends the cookie data to the attacker's own server. | |
* |