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 / importMySqlCommandLine
Created August 21, 2012 14:00
Import database from file on command line
mysql -u username -p database_name < textfilewithsqlstatments.sql
@fprieur
fprieur / rootAmazon
Created August 21, 2012 15:13
set root right on amazon
sudo su
@fprieur
fprieur / gist:3425957
Created August 22, 2012 14:07
Change the File Location of Screenshots on Mac OS X
defaults write com.apple.screencapture location /path/to/screenshots
ex : defaults write com.apple.screencapture location ~/Pictures/Screenshots
To apply these changes, again in Terminal, type:
killall SystemUIServer
@fprieur
fprieur / gist:6009243
Last active December 19, 2015 19:49 — forked from liamdon/gist:2467603
Packages pour sublime text pour CoffeeScript Jade et Stylus

Step 1: Clone the bundles into your Sublime Text packages directory

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus

Step 2: Restart Sublime Text 2

mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/CoffeeScript
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/CoffeeScript
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Syntaxes/CoffeeScript.tmLanguage
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Preferences/CoffeeScript.tmPreferences
@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

@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 / 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:8342429
Last active January 2, 2016 18:19
delete a git remote branch
git push origin --delete <branchName>
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.