- download last factory image from Google Dev platform and unzip
- download last TWRP recovery for Nexus 5
- download last SuperSu version for Nexus 5
adb devices
Device should be listed hereadb reboot bootloader
Reboot on bootloader
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 bash | |
# A git post-receive hook | |
# | |
# On master branch only : | |
# 1. It builds a docker image named with the dir name | |
# 2. It then stop container of the same name, rm it and start a new one | |
## --- Config |
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
/** | |
* Mock the Sony QX1 SSDP discovery proces | |
*/ | |
var dgram = require('dgram'), | |
parse = require('./parse'), //helper | |
client = dgram.createSocket('udp4'); | |
var UPNP_PORT = 1900; | |
HTTP_PORT = 8080; |
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
Show hidden characters
{ | |
/* | |
* ENVIRONMENTS | |
* ================= | |
*/ | |
// Define globals exposed by modern browsers. | |
"browser": true, | |
// Define globals exposed by jQuery. |
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
//Want to use 2 terminal window to see the same tmux session | |
//eg. showing one tmux window on one screen, an other on an other screen | |
//on the second terminal | |
//attach an existing tmux session | |
tmux new-session -t <the_session_you_want_to_connect_to> | |
//resize only the current window to the smallest client (not all the session) | |
//this way you can work on two different tmux window without having the whole tmux sessions resised |
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
ffmpeg -i in.mov -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > out.gif | |
#from http://apple.stackexchange.com/a/211219/149089 |
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
FILES=./*.JPG | |
for f in $FILES | |
do | |
filename=`basename $f`; | |
filename="${f%.*}" | |
filename="${filename#./}" | |
newFilename=`printf "%03s\n" $filename`; | |
echo $newFilename.jpeg; |
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
############################################################################### | |
# Variables # | |
############################################################################### | |
variables: | |
DOKKU_HOST: 'host.com' | |
PROJECT_NAME: 'project_name' | |
############################################################################### | |
# Cache # | |
############################################################################### |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.dokku.start</string> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string> |
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
var CHOICES_SHEETS = 'Choix', | |
PROJECTS_SHEETS = 'Sujets', | |
RESULTS_SHEETS = 'Résultat'; | |
/** | |
* randomInt | |
* @return {Number} An int in [0; max[ | |
*/ | |
var randomInt = function (max) { | |
var max = Math.floor(max); |
OlderNewer