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
### Keybase proof | |
I hereby claim: | |
* I am abulte on github. | |
* I am abulte (https://keybase.io/abulte) on keybase. | |
* I have a public key whose fingerprint is 2AF6 528B BA92 D7AC 4F92 DF0B D126 E953 8D0C 3164 | |
To claim this, I am signing this object: |
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
#main config | |
raspi-config | |
# current version of gpu firmware | |
/opt/vc/bin/vcgencmd version | |
#install rpi-update (gpu firmware update) | |
wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && chmod +x /usr/bin/rpi-update |
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
from datetime import datetime | |
today = datetime.today() | |
date_string = '%s%s%s-%s%s%s' % (today.year, today.month, today.day, today.hour, today.minute, today.second) |
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
syntax on | |
set smartindent | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab |
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
# get pecl ready | |
# http://www.lullabot.com/articles/installing-php-pear-and-pecl-extensions-on-mamp-mac-os-x-107-lion | |
# if ! autoconf bin on your system | |
brew install autoconf | |
# install ICU | |
brew install icu4c | |
sudo pecl install intl |
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
sudo | |
vim | |
fail2ban | |
git | |
build-essential | |
mosh | |
etckeeper | |
# LAMP | |
nginx |
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
server { | |
listen 80; ## you can put ip’s or localhost here. Or change the port. | |
server_name benchmark.maboiteprivee.fr; | |
server_name_in_redirect off; | |
access_log /var/log/nginx/benchmark.access.log; | |
error_log /var/log/nginx/benchmark.error.log; | |
index index.php index.html index.htm default.html default.htm; | |
root /var/www/benchmark; |
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
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
# set default policies to allow everything | |
# this should be DROP by default but out of scope... | |
iptables -P INPUT ACCEPT |
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
# <http://www.rethinkdb.com/docs/build/> | |
sudo apt-get install g++ protobuf-compiler protobuf-c-compiler libprotobuf-dev \ | |
libprotobuf-c0-dev libboost-dev libssl-dev libv8-dev libboost-program-options-dev \ | |
libgoogle-perftools-dev jsdoc-toolkit libprotoc-dev curl exuberant-ctags m4 \ | |
rubygems | |
# *carefully note all packages installed!!* | |
mkdir ~/tmp && cd ~/tmp | |
wget http://nodejs.org/dist/v0.8.15/node-v0.8.15.tar.gz | |
tar xvfz node-v0.8.15.tar.gz |
OlderNewer