Skip to content

Instantly share code, notes, and snippets.

View fprieur's full-sized avatar

Fred Prieur fprieur

  • Ubisoft
  • Montreal
View GitHub Profile
@fprieur
fprieur / ssh-key-based-access.md
Last active August 29, 2015 13:55
SSH key-based access configuration

on local machine do:

ssh-keygen and agree with all defaults (if you have no reasons do otherwise) cat ~/.ssh/id_rsa.pub and copy that key On remote machine:

mkdir ~/.ssh && chmod 700 ~/.ssh touch ~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_keys2 Paste copied key into authorized_keys2

@fprieur
fprieur / gist:9007958
Created February 14, 2014 19:54
push to new remote branch
git push -u origin dev
@fprieur
fprieur / jdomtl2014.md
Last active August 29, 2015 13:56
Journée données ouvertes 2014 - Montréal
  • sensibilisation des décideurs politiques pour les données ouvertes
  • non-conférence:
    • projets:
      • alertes pour le déneigements
      • paliers gouvernemental à titre d'observateurs
      • luc lefebvre et marc lebel

======== Gouvernance

  • les élus font de la pression sur l'administratif pour la libération de données, (plan d'action de libération pour 2014)
@fprieur
fprieur / postgresl-ubuntu.md
Created March 18, 2014 13:52
Correctly use and install postgresql on ubuntu

The first thing to do is to install the dependencies.

sudo apt-get build-dep python-psycopg2

After that go inside your virtualenv and use pip install psycopg2

@fprieur
fprieur / travis-heroku.md
Created March 31, 2014 17:43
Let travis setup heroku for deploy - command line

travis setup heroku

@fprieur
fprieur / heroku-env.md
Created March 31, 2014 19:45
Set up heroku env variable on app

heroku config:set HEROKU=1

@fprieur
fprieur / media-queries-bootstrap.md
Created April 2, 2014 17:34
Media queries for bootstrap 3
/* Large desktop */ 
@media (min-width: 1200px) { ... } 

/* Portrait tablet to landscape and desktop */ 
@media (min-width: 768px) and (max-width: 979px) { ... } 

/* Landscape phone to portrait tablet */ 
@media (max-width: 767px) { ... } 
@fprieur
fprieur / casperjs-travis.md
Last active August 29, 2015 13:58
Add this to your .travis.yml if you want to run your casperjs test on travis-ci

Add this to your .travis.yml if you want to run your casperjs test on travis-ci

before_script:             
 - wget https://github.com/n1k0/casperjs/archive/1.1-beta3.tar.gz -O /tmp/casper.tar.gz
 - tar -xvf /tmp/casper.tar.gz
 - export PATH=$PATH:$PWD/casperjs-1.1-beta3/bin/
script:
    casperjs test yourtests.js
@fprieur
fprieur / spookyjs_working.js
Created May 15, 2014 20:32
working example with spookyjs
try {
var Spooky = require('spooky');
} catch (e) {
var Spooky = require('../lib/spooky');
}
var spooky = new Spooky({
child: {
transport: 'http'
},