Skip to content

Instantly share code, notes, and snippets.

View wo0dyn's full-sized avatar

Nicolas Dubois wo0dyn

View GitHub Profile

PyElliptic

PyElliptic is a high level wrapper for the cryptographic library : OpenSSL. Under the GNU General Public License

Python3 compatible. For GNU/Linux and Windows. Require OpenSSL

Features

Create user and database for PostgreSQL

Just a simple script to create a user and its database easily.

Requirements

Tested w/ PostgreSQL 8.4 on Mint 11 (±Ubuntu). Be careful to use md5 in your pg_hba.conf.

Installation

@wo0dyn
wo0dyn / maths-puzzle.md
Last active December 4, 2015 08:25
Can you do the maths puzzle for Vietnamese eight-year-olds that has stumped parents and teachers?

Can you do the maths puzzle for Vietnamese eight-year-olds that has stumped parents and teachers?

Source: article from The Guardian

Script

from itertools import permutations
# make sure there's no TODO, debugging... left
errors=0
for bad in 'import pdb' 'import ipdb' 'TODO' 'print' 'assert False'; do
echo ">> checking for '$bad'"
res=$(git diff-index --name-only --cached $against -S"$bad" --)
if test -n "$res"; then # if not empty, found some guilty files
echo "ERROR, found '$bad' in files commited:"
echo $res
errors=$(($errors + 1))
fi

Jean-Michel Armand, aka JMad

Djangonaute cheminot-entrepreneur-rôliste sous licence GPL.

… TU FERAS DU SYMFONY 2 !

busting up

@wo0dyn
wo0dyn / ovh_deploy_simulation.py
Last active December 28, 2015 17:28
/me en train de déployer une petite application Django sur un serveur mutualisé d'OVH…
# -*- coding: utf-8 -*-
from random import choice
import sys
from webbrowser import open_new as please_help_me
def switch_to(app):
print('⌘ + ⇥ to ' + app.title())
@wo0dyn
wo0dyn / gist:7683835
Last active December 29, 2015 14:28 — forked from kathgironpe/gist:7319014
LaTeX + pandoc on OSX
# Install MacTex: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
$ sudo chown -R `whoami` /usr/local/texlive
$ tlmgr update --self
$ tlmgr install ucs
$ tlmgr install etoolbox
# Install pandoc view homebrew
$ brew install haskell-platform
# Update before installing pandoc
@wo0dyn
wo0dyn / python_resources.md
Created January 20, 2014 15:39 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@wo0dyn
wo0dyn / css_resources.md
Created January 20, 2014 15:39 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides