Skip to content

Instantly share code, notes, and snippets.

View emaV's full-sized avatar
🎯
Focusing

Emanuele Quinto emaV

🎯
Focusing
View GitHub Profile
Prototype version 15
Found device 138a:0097
This device is supported
step 1
usb write:
0000 01
usb read:
0000 00 00 f0 b0 5e 54 a4 00 00 00 06 07 01 30 00 01
0010 00 00 ca ba 88 98 45 7d 00 23 00 00 00 00 01 00
@emaV
emaV / gist:1b882ce720082ee946b936fccfe1f3ab
Created December 19, 2016 13:18
ffmpeg mp3 downgrade bitrate
for i in /folder/*.wav; do mp3=`echo ${i##*/} | cut -d'.' -f1`.mp3; ffmpeg -i "$i" -ab 128k "$mp3"; done
@emaV
emaV / setWPConfig.sh
Created November 4, 2016 10:16
twig template with bash
#!/bin/bash
# Process twig template for WordPress config
if [ $# -ne 1 ]; then
echo 1>&2 Usage: $0 domain
exit 127
fi
# Set variables
domain=$1
@emaV
emaV / gist:0c3ee991f2c71accf06381a1caf99f8c
Created August 20, 2016 02:01
Verifying my Blockstack ID
Verifying that "emanuelev.id" is my Blockstack ID. https://onename.com/emanuelev
@emaV
emaV / VM.js
Created June 23, 2016 12:36
speedtest from sourceforge
This file has been truncated, but you can view the full file.
!function(e) {
if ("object" == typeof exports && "undefined" != typeof module)
module.exports = e();
else if ("function" == typeof define && define.amd)
define([], e);
else {
var f;
"undefined" != typeof window ? f = window : "undefined" != typeof global ? f = global : "undefined" != typeof self && (f = self),
f.io = e()
}
@emaV
emaV / tosuchsorted.sh
Created March 6, 2016 16:19
touch sorted
a=0; for i in *.m4v; do ((a++)); if [ $a -lt 10 ] ; then date="0306120$a" ; else date="030612$a"; fi; echo "$i - $a - $date"; touch -t $date "$i"; done
@emaV
emaV / gist:dc13ab6ced39f858cc64
Last active August 29, 2015 14:20
BOOMR addVar guid
var guid;
if(!BOOMR.utils.getCookie(impl.cookieName)) {
BOOMR.info("Could not find a cookie for " + impl.cookieName, "GUID");
guid = impl.generate();
if (!BOOMR.utils.setCookie(impl.cookieName,guid, impl.expires)) {
BOOMR.subscribe("before_beacon", function() {
BOOMR.utils.setCookie(impl.cookieName,guid, impl.expires);
});
}