Skip to content

Instantly share code, notes, and snippets.

Avatar

Olivier Meunier olivier-m

View GitHub Profile
@olivier-m
olivier-m / grid.css
Last active Aug 29, 2015
grid experiment
View grid.css
.clearfix,
.gs-fixed,
.gs-fluid,
.gs-dist {
zoom: 1;
}
.clearfix:after,
.gs-fixed:after,
.gs-fluid:after,
.gs-dist:after,
@olivier-m
olivier-m / adb.sh
Created Aug 10, 2013
Remove all Google apps from an android phone. List of delete files from http://forum.xda-developers.com/showthread.php?t=1969755
View adb.sh
# With your phone in debug mode, etc.
adb start-server
adb remount
adb shell < remove.sh
@olivier-m
olivier-m / pygit2.sh
Last active Nov 9, 2017
Install pygit2 in a Python VirtualEnv
View pygit2.sh
#!/bin/sh
set -e
if [ "${VIRTUAL_ENV}" = "" ]; then
echo "Error: Not in a virtual env"
exit 1
fi
OS=$(uname -s)
@olivier-m
olivier-m / ssh-copy-id.sh
Last active Aug 25, 2017
ssh-copy-id for OSX - Copy this to a directory in your $PATH
View ssh-copy-id.sh
#!/bin/sh
# Shell script to install your identity.pub on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
ID_FILE="${HOME}/.ssh/id_rsa.pub"
if [ "-i" = "$1" ]; then