Skip to content
mkdir newvids
for f in *.mp4; do ffmpeg -i "$f" -c:v mpeg4 -vtag xvid newvids/"${f%.mkv}.avi"; done
View process_shows.rb
require 'find'
require 'fileutils'
DOWNLOAD_PATH = '/media/raspberry/descargas'
EXCLUDED_DIRS = %w( temp torrents )
TVSHOWS_PATH = '/media/raspberry/series'
TVSHOWS = Dir.entries(TVSHOWS_PATH).select do |entry|
View simple-deployer.rb
require 'rubygems'
require 'sinatra'
get '/' do
"Leave this place"
# Pass in the repo name and deploy that shit
get '/deploy/:name/:branch' do
View gist:8014984
git remote add heroku
git push heroku <branch>:master
View knockout.haml
%pre{"data-bind" => "text: ko.toJSON($data, null, 2)"}
View asound.conf
pcm.!default {
type plug
slave.pcm "softvol"
pcm.softvol {
type softvol
slave {
pcm "dmix"
View index.php
<!DOCTYPE html>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>Hello, World!</title>


The scripts in this gist will start an Xvnc server with a basic window manager (IceWM). This is intended to use in a virtual machine, where we can need to start a browser to run a test suite.

Installation on Debian

All commands have to be run as root

apt-get install icewm vnc4server
View gist:7290725
%pre{"data-bind" => "text: JSON.stringify(ko.toJS($data), null, 2)"}
View startup
# fluxbox startup-script:
# Lines starting with a '#' are ignored.
# Change your keymap:
xmodmap "/home/alberto/.Xmodmap"
# Applications you want to run with fluxbox.
Something went wrong with that request. Please try again.