Skip to content

Instantly share code, notes, and snippets.

@Nainterceptor
Nainterceptor / 00-node6.config
Created May 26, 2016 15:29
Quick & dirty hack to get NodeJS 6 on AWS Elastic BeanStalk
option_settings:
- namespace: aws:elasticbeanstalk:container:nodejs
option_name: NodeCommand
value: "npm start"
- namespace: aws:elasticbeanstalk:container:nodejs
option_name: NodeVersion
value: "4.4.3"
commands:
050-node-script-installer:
@Nainterceptor
Nainterceptor / amendement.md
Last active December 8, 2015 00:05
Amendement projet de loi "prorogation de l'état d'urgence" (Loi n° 2015-1501)

Amendement

Article 1 :

Insérer un alinéa ainsi rédigé :

Dans le cas où le dit état d'urgence ne garanti pas la sécurité des citoyens, la Banque de France, sous mandat de la direction générale des finances publiques, se doit de rembourser l'intégralité des impots payés par les citoyens durant l'année en cours.

@Nainterceptor
Nainterceptor / README.md
Created October 18, 2015 20:46
IPv6 debian Jessie - Online.net

Cette doc m'a posé quelques soucis; http://documentation.online.net/en/serveur-dedie/reseau/ipv6-prefix En attendant une mise à jour ou la rédaction d'un blog post, je vous partage rapidement mes working steps

wget "http://klub.com.pl/dhcpv6/dibbler/dibbler-1.0.1.tar.gz" #Update to 1.0.1 for security issues
apt-get install build-essential
tar -xvf dibbler-1.0.1.tar.gz && cd dibbler-1.0.1 && ./configure && make install clean
mkdir -p /var/lib/dibbler /etc/dibbler
#Debian Jessie use Systemd, ignore init.d commands. If it's too late, you can do the following
#update-rc.d -f dibbler-client remove && rm /etc/init.d/dibbler-client

vim /etc/systemd/system/dibbler.service #Put in this file the content of dibbler.service file following

@Nainterceptor
Nainterceptor / PKGBUILD
Last active August 29, 2015 14:17
yajl for archlinux ARM
# Maintainer: Dave Reisner <d@falconindy.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
pkgname=yajl
pkgver=2.1.0
pkgrel=1
pkgdesc='Yet Another JSON Library'
arch=('i686' 'x86_64' 'armv7' 'armv6')
@Nainterceptor
Nainterceptor / DISCLAIMER.fr_FR.md
Created February 12, 2015 21:08
Userscript to extract mailing list from campus-booster #Supinfo

Disclaimer

L'extraction de bases de données est une infraction caractérisée au droit de la propriété intellectuelle. Vous êtes seul responsable de votre utilisation de cet outil.

@Nainterceptor
Nainterceptor / copyRubedoToProd.js
Created November 19, 2014 08:40
Copy Rubedo preproduction to production
const prod = 'myRubedoProd';
const prodUrl = 'http://my-rubedo.com/';
const preprod = 'myRubedoPreprod';
const preprodUrl = 'http://my-rubedo.local/';
const tablesToClean = ['UrlCache', 'sessions', 'Cache'];
//Drop And Copy Database
var conn = new Mongo();
var db = conn.getDB(prod);
db.dropDatabase();
@Nainterceptor
Nainterceptor / gist:8963059
Last active August 29, 2015 13:56
Short note to install Rubedo on OVH Debian 7 x64 VPS

Install Softwares

First, follow http://docs.mongodb.org/manual/tutorial/install-mongodb-on-debian/

# apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
# echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
# wget http://repos.zend.com/zend.key -O- |apt-key add -
# echo 'deb http://repos.zend.com/zend-server/6.2/deb_ssl1.0 server non-free' | tee /etc/apt/sources.list.d/zend-server.list

apt-get update