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

Xvnc

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
%pre{"data-bind" => "text: JSON.stringify(ko.toJS($data), null, 2)"}
#!/bin/sh
#
# 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.