Skip to content

Instantly share code, notes, and snippets.

for i in *.mp3; do ffmpeg -i "$i" "${i%.*}.wav"; done
javascript:
var my_cryptos = {
"id-bitcoin": 0,
"id-ethereum": 9.5572051,
"id-ripple": 0,
"id-bitcoin-cash": 0,
"id-eos": 0,
"id-stellar": 0,
"id-litecoin": 0,
"id-monero": 0,
# Hex xor by using strxor
def strxor(a, b): # xor two strings of different lengths
if len(a) > len(b):
return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a[:len(b)], b)])
else:
return "".join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b[:len(a)])])
print "Hex 1: ",
a = raw_input().decode("hex")
print "Hex 2: ",
=IF(MATCH(N2, NP!I:I, 0), INDIRECT("NP!H" & MATCH(N2, NP!I:I, 0)))
@YarnSeemannsgarn
YarnSeemannsgarn / list_todos.sh
Created September 22, 2014 13:49
List all todos in directory (recursive)
#!/bin/bash
grep -rnw './' -e "TODO"