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.4 | |
import json | |
import requests | |
url = 'http://api.ooni.io/api/reports' | |
r = requests.get(url) | |
reports = json.loads(r.text) |
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 | |
# python monogodb example from Hack The North 2015 | |
import pymongo | |
conn = pymongo.MongoClient() | |
blog_db = conn["blog"] | |
posts_col = blog_db["posts"] | |
post = { |
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
:%s:-af\W:-afg : | |
:%s:-ax\W:-ala : | |
:%s:-al\W:-alb : | |
:%s:-dz\W:-dza : | |
:%s:-as\W:-asm : | |
:%s:-ad\W:-and : | |
:%s:-ao\W:-ago : | |
:%s:-ai\W:-aia : | |
:%s:-aq\W:-ata : | |
:%s:-ag\W:-atg : |
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
client | |
dev tap | |
tun-mtu 1500 | |
tun-mtu-extra 32 | |
fragment 1300 | |
mssfix | |
proto udp | |
remote 192.168.0.1 |
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
# ___ __ __ ____ ______ _ # < // // / / __ \ / ____/ (_)____ _ _ __ ____ _ | |
# / // // /_ / / / //___ \ / // __ `/| | / // __ `/ | |
# / //__ __// /_/ /____/ / / // /_/ / | |/ // /_/ / | |
# /_/ /_/ \____//_____/ __/ / \__,_/ |___/ \__,_/ | |
# /___/ | |
# __ ____ _ __ | |
# ____ ___ ____ _ / /__ ___ / __/(_)/ /___ | |
# / __ `__ \ / __ `// //_// _ \ / /_ / // // _ \ | |
# / / / / / // /_/ // ,< / __// __// // // __/ | |
# /_/ /_/ /_/ \__,_//_/|_| \___//_/ /_//_/ \___/ |
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
[Unit] | |
Description=slocker | |
Before=sleep.target | |
[Service] | |
User=gxg | |
Type=forking | |
Environment=DISPLAY=:0 | |
ExecStart=/home/gxg/bin/thinklock |
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
[Unit] | |
Description=Powertop Auto-Tune | |
[Service] | |
Type=oneshot | |
ExecStart=/usr/sbin/powertop --auto-tune | |
[Install] | |
WantedBy=multi-user.target |
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
# _ | |
# (_)____ _ _ __ ____ _ | |
# / // __ `/| | / // __ `/ | |
# / // /_/ / | |/ // /_/ / | |
# __/ / \__,_/ |___/ \__,_/ | |
# /___/ | |
# __ ____ _ __ | |
# ____ ___ ____ _ / /__ ___ / __/(_)/ /___ | |
# / __ `__ \ / __ `// //_// _ \ / /_ / // // _ \ | |
# / / / / / // /_/ // ,< / __// __// // // __/ |
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
{ | |
"query":{ | |
"terms": { | |
"name": ["burger"] | |
} | |
} | |
} |
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
for file in *.json; do | |
if $(cat $file | json -n); then | |
printf "\r[OK] $file" | |
else | |
echo "[ERROR] $file FAILED" | |
fi | |
done |