Skip to content

Instantly share code, notes, and snippets.

View emanuelduss's full-sized avatar
💭
' OR 1=1 -- "><h1>My @ {{7*7}} Status &;`id`

Emanuel Duss emanuelduss

💭
' OR 1=1 -- "><h1>My @ {{7*7}} Status &;`id`
View GitHub Profile
@emanuelduss
emanuelduss / fixwhatsappimages
Created September 16, 2017 12:59
Add EXIF info to WhatsApp images
for i in IMG-????????-WA????.jpg
do
YEAR=`ls $i | cut -c 5-8`
MONTH=`ls $i | cut -c 9-10`
DAY=`ls $i | cut -c 11-12`
jhead -mkexif $i
jhead -ds$YEAR:$MONTH:$DAY $i
done
#!/usr/bin/env bash
while true
do
echo "Testing if tickets are available..."
curl -s https://tickets.events.ccc.de/33c3/ \
| awk '/Standard Ticket/,/Supporter Ticket 120/{ print }' \
| grep UNAVAILABLE || {
mpv /home/emanuel/Daten/Fun/Soundfiles/Coin.ogg
echo "Buy your ticket now!!"
### Keybase proof
I hereby claim:
* I am mindfuckup on github.
* I am emanuelduss (https://keybase.io/emanuelduss) on keybase.
* I have a public key whose fingerprint is 7994 C89B 04BD 13C0 318E 75E1 08D1 B760 6E3F ADB6
To claim this, I am signing this object:
#!/usr/bin/env python
import json, sys
from urllib.request import urlopen
API='http://xisbn.worldcat.org/webservices/xid/isbn/{isbn}?method=getMetadata&format=json&fl=*'
OPT_KEYS = ['author', 'city', 'ed', 'form', 'lang', 'lccn',
'originalLang', 'publisher', 'year']
def get_metadata(isbn):
rawjson = urlopen(API.format(isbn=isbn)).readall().decode('utf-8')

Keybase proof

I hereby claim:

  • I am mindfuckup on github.
  • I am emanuelduss (https://keybase.io/emanuelduss) on keybase.
  • I have a public key whose fingerprint is 63E7 364A 7180 A32A 5D7D 050D 5926 DE96 A497 5B00

To claim this, I am signing this object: