Skip to content

Instantly share code, notes, and snippets.

View olasd's full-sized avatar

Nicolas Dandrimont olasd

  • Ivry sur Seine, France
  • 21:49 (UTC +01:00)
View GitHub Profile
@olasd
olasd / keybase.md
Created April 13, 2014 18:27
Keybase proof

Keybase proof

I hereby claim:

  • I am olasd on github.
  • I am olasd (https://keybase.io/olasd) on keybase.
  • I have a public key whose fingerprint is 791F 1239 6630 DD71 FD36 4375 B8E5 0877 6647 5AAF

To claim this, I am signing this object:

@olasd
olasd / stream_to_youtube.sh
Created March 28, 2014 19:58
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@olasd
olasd / D40add_result
Created July 13, 2013 22:36
Rebuild the fedmsg-related packages for wheezy
#!/bin/sh
set -e
mount | awk '/result/{ print $3 }' | while read dir; do
if [ -f "$dir/Release" -a -f "$dir/Packages" ]; then
echo "deb file://$dir ./" >> /etc/apt/sources.list
fi
done
@olasd
olasd / output
Last active December 15, 2015 20:41
Parsley is fun.
⏚ [nicolasd:~/code/parsley] [parsley] $ python test_parsley.py
('root',
[(1, 0), (346, 0)],
('parens',
[(3, 0), (3, 36)],
('token', [(3, 1), (3, 12)], 'import-from'),
('token',
[(3, 13), (3, 28)],
'tests.resources'),
('token', [(3, 29), (3, 35)], 'kwtest')),
@olasd
olasd / suite.py
Last active December 15, 2015 18:48
Debian suite data structure
# -*- encoding: utf-8 -*-
class Suite(object):
def __init__(self, name, maps_to=None):
self.name = name
self.maps_to = maps_to
@property
def real_suite(self):
suite = self