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 / 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 / gist:9007958
Created February 14, 2014 19:54
push to new remote branch
git push -u origin dev
@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 / autoreload-Gunicorn
Last active April 16, 2023 14:28
Auto Reload Gunicorn On File Change Event
pip install watchdog -U
# now there is a command called "watchmedo", you'll like it...
# in terminal #1, run:
gunicorn app:myapp --pid=gunicorn.pid
# in terminal #2, run:
watchmedo shell-command \
--patterns="*.py;*.html;*.css;*.js" \
--recursive \
@fprieur
fprieur / jenkins-port
Created January 23, 2014 20:02
Change jenkins port on ubuntu
1. Go to /etc/default folder --> Open the file "jenkins"
2. Modify the line HTTP_PORT=8080 as HTTP_PORT=80
3. Start jenkins by command: /etc/init.d/jenkins start
4. Open a browser and browse as localhost:80
LINKS:
https://us.pycon.org/2013/about/what-is-pycon/
http://juliaelman.com/blog/2012/mar/13/my-first-pycon/
http://pydanny.blogspot.com/2011/01/why-you-should-go-to-pycon.html
http://jessenoller.com/2011/09/23/pycon-2012-sponsorship-making-the-case-for-sponsorship/
https://us.pycon.org/2013/sponsors/whysponsor/
Goal of this document: Provide a compelling case for why companies should send their employees to PyCon. Ideally tie into stories like this: http://pycon.blogspot.com/2012/09/pycon-us-2013-highlighting-aweber.html and http://pycon.blogspot.com/2012/09/pycon-us-2013-highlighting-dreamhost.html
This document will be converted to markdown/html and posted to the PyCon website and the PyCon blog.
@fprieur
fprieur / gist:8342429
Last active January 2, 2016 18:19
delete a git remote branch
git push origin --delete <branchName>
@fprieur
fprieur / gist:8342293
Created January 9, 2014 21:23
install virtualenv with python 3.3 on ubuntu
virtualenv --verbose -p /usr/bin/python3.3 ~/.virtualenvs/pywork3
@fprieur
fprieur / gist:7307757
Created November 4, 2013 19:18
Show tables by engine in MySQL
SELECT table_name FROM INFORMATION_SCHEMA.TABLES
WHERE engine = 'InnoDB';
SELECT TABLE_NAME FROM information_schema.TABLES
WHERE TABLE_SCHEMA = 'dbname' AND engine = 'InnoDB';
@fprieur
fprieur / installnodejs.md
Last active December 27, 2015 00:49
Install nodejs on ubuntu

Install the dependencies:
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core

Run the following commands: git clone git://github.com/ry/node.git
cd node
./configure
make