Skip to content

Instantly share code, notes, and snippets.

i=1;while [ 1 ];do screencapture -t jpg -x ~/screens/$i.jpg; let i++;sleep 1; done
#later
cd ~/screens
ffmpeg -y -i "%d.jpg" output.m4v
rm *.jpg
function fish_prompt --description 'Write out the prompt'
set branch (git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \1/')
set_color $fish_color_cwd
echo -n (basename $PWD)
set_color yellow
echo -n $branch
set_color normal
echo -n ' ) '
end
@maddo
maddo / init.pp
Last active December 16, 2015 03:09
case "$operatingsystem$lsbmajdistrelease" {
debian6, debian5: {
file { "/tmp/packages":
source => downcase("puppet:///modules/boxgrade/$operatingsystem$lsbmajdistrelease-$architecture"),
owner => root,
recurse => true,
}
}
}
package { "php5-rrd":
services:
resque:
class: %resque.class%
scope: prototype
arguments: [ "%resque.host%:%resque.port%", @service_container, "%resque.track%" ]
@maddo
maddo / sc
Created February 1, 2013 01:43
run script file "<HD>:Users:<user>:Documents:sc:scpw.scpt"
run script file "<HD>:Users:<user>:Documents:sc:togglefn.scpt"
do shell script "open -a 'StarCraft II'"
@maddo
maddo / index.html
Created October 3, 2012 23:03 — forked from fran6co/index.html
Flows of refugees between the world countries in 2008
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
svg {
border:1px solid gray
}
#countries path {
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script>
<style type="text/css">
svg {
border:1px solid gray;
}
#countries path {
fill: green;
stroke: black;
recipes:
-
name: Scrambled Eggs
1:
- action: crack
tool: bowl
ingredients:
- ingredient: egg
quantity: 3
unit: whole
<?php
$results = $qb
->map($this->getTableReportMapFunction($groupFields))
->reduce('function(k, vals) {
var obj = {
idealDeliveryRate: 0,
delivery: 0,
targetCtr: 0,
targetRate: 0,
impressions: 0,
//
// HelloWorldLayer.m
// Cocos2dLesson1
//
// Created by Michael Jablecki on 5/19/12.
// Copyright __MyCompanyName__ 2012. All rights reserved.
//
// Import the interfaces