Skip to content

Instantly share code, notes, and snippets.

View pierot's full-sized avatar
🏠
Working from home

Pieter Michels pierot

🏠
Working from home
View GitHub Profile
@pierot
pierot / gist:a88567befa3a2c795bc9
Last active December 9, 2016 03:43
FFMPEG tips

REMOVE SOUND

ffmpeg -i balloon-2.webm -an balloon-2-nosound.webm

FLV TO WMV

ffmpeg -i infile.flv -vcodec wmv2 -sameq -acodec wmav2 -f output.wmv

for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -vcodec libtheora -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.ogv 2> /dev/null &; done

for f in *.mp4; do ffmpeg -i $f -acodec libvorbis -ac 2 -ab 128k -ar 44100 -b:v 900k -s 1024x576 -y $f.webm 2> /dev/null &; done

{
"address_components": [
{
"long_name": "Brussels",
"short_name": "Brussels",
"types": [
"locality",
"political"
]
},
{"id":47,"result":{"resultData":{"offices":[{"address":"Oudstrijderslaan 17","branchId":"310036","geoLocX":"50.8594395499798","geoLocY":"4.41380023956299","distance":1.4,"postalCode":"1140","description":"Evere Paduwa","urlDescription":"1140_evere-paduwa","city":"Evere","phone":"02/7026440","email":"[email protected]","fax":"02/7026448","guid":"a76c3e14-f0f2-45d3-85e0-1c312852f084","icons":[["selfbank","cio","night"],[],null,null,null,null,null],"openingHoursList":[[],[],[],[],[],[],[]],"adviesHoursList":[["09:00","13:00","4","14:00","16:00","2"],["09:00","13:00","4","14:00","16:00","2"],["09:00","13:00","4","14:00","16:00","2"],["09:00","13:00","4","14:00","18:00","4"],["09:00","13:00","4","14:00","16:00","2"],[],[]],"selfBankList":[],"lateOpeningInfo":[["1","3"]],"privalis":"N"},{"address":"Tervurenlaan 270-272","branchId":"310077","geoLocX":"50.8353948","geoLocY":"4.4203974","distance":1.7,"postalCode":"1150","description":"Spw Gulden Dal","urlDescription":"1150_spw-gulden-dal","city":"Sint-Pieters-Woluw
$.ajax
url: 'http://'
method: 'POST'
dataType: 'json'
data:
item1: 'test'
item2: 5
success: (d) =>
console.log d
private static function init() {
self::$mandrill = new Mandrill(Config::get('app.mandrill.api_key'));
}
private static function send($from_email, $from_name, $recipients, $subject, $html, $text = null, $dynamic_values = array()) {
self::init();
$data = array(
"html" => $html,
"text" => $text,
auto lo iface
lo inet loopback
auto eth0 iface
eth0 inet dhcp
@pierot
pierot / mandrill-usage.php
Created October 24, 2013 11:28
Mandrill usage
class Domain_Emailer
{
public static function registration($user, $with_coupon = false, $send = true) {
$lang = $user->language->lang;
self::set_language($lang);
Lang::load('email-registration.yml');
$data = array();
@pierot
pierot / arch_for_ansible
Created October 20, 2013 08:52
Prepare Arch Linux for Ansible
pacman -Syy
pacman -S python2
sudo apt-get install zsh tmux
bash <( curl -s https://raw.github.com/pierot/termieter/master/install )
sudo chsh -s /bin/zsh
git clone git://github.com/proximitybbdo/vim.git ~/.vim
cd ~/.vim
bash <( curl https://gist.github.com/pierot/5636319/raw/21acb455afbf471f5937682ffa2a8cf4bdfea06b/termieter-vim.sh )