I hereby claim:
- I am jmaupetit on github.
- I am jmaupetit (https://keybase.io/jmaupetit) on keybase.
- I have a public key whose fingerprint is 0A75 D5AE C0B6 FD1B 7567 A86F D342 935F 09A4 B0CF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Lors de cette première réunion, l'ordre du jour était de définir ce que chacun attendait de la communauté Django Auvergnate.
#!/usr/bin/eval PYTHON_VERSION=2.6 PYTHONPATH=/your/python/path/ python | |
import os | |
import sys | |
_PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
sys.path.insert(0, _PROJECT_DIR) | |
sys.path.insert(0, os.path.dirname(_PROJECT_DIR)) | |
_PROJECT_NAME = _PROJECT_DIR.split('/')[-1] | |
os.environ['DJANGO_SETTINGS_MODULE'] = "%s.settings" % _PROJECT_NAME |
/** | |
* Casper script to restart Alwaysdata processes. | |
* | |
* Usage: | |
* $ casperjs kill.js email@example.com mysecretpassword | |
*/ | |
var casper = require('casper').create(); | |
casper.start("https://admin.alwaysdata.com/login/"); |
# Taken from http://stackoverflow.com/a/13102849 | |
git checkout --orphan newBranch | |
git add -A # Add all files and commit them | |
git commit | |
git branch -D master # Deletes the master branch | |
git branch -m master # Rename the current branch to master |
# Add this to your ~/.provile or ~/.bashrc depending on your system | |
# | |
# watson directory (require watson >= 1.3) | |
# This value is the default on MacOSX | |
WATSON_DIR="$HOME/Library/Application Support/watson" | |
watson_status() { | |
# colors taken from git-aware-prompt | |
# https://github.com/jimeh/git-aware-prompt | |
local txtred="$(tput setaf 1 2>/dev/null || echo '\e[0;31m')" # Red |
from ghost import Ghost | |
from PySide.QtGui import QApplication, QImage, QPainter, QPrinter | |
class MyGhost(Ghost): | |
def capture_pdf(self): | |
printer = QPrinter(QPrinter.HighResolution) | |
printer.setResolution(300) | |
printer.setOutputFileName("QtPrinter.pdf") | |
printer.setPaperSize(QPrinter.A4) |
#!/usr/bin/env python3 | |
""" | |
Use this script if you have corrupted frames in your watson history. In my | |
case, almost 400 frames had short ids instead of 32 chars uuids. | |
Usage: | |
$ cd path/to/watson/dir | |
$ wget GIST_URL -O fix_watson_uuids.py | |
$ python3 fix_watson_uuids.py |
-- MySQL dump 10.13 Distrib 5.6.39, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: edxapp | |
-- ------------------------------------------------------ | |
-- Server version 5.6.39 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |