Alberto Hernández Mateos albertohm

View process_shows.rb
1 2 3 4 5 6 7 8 9 10
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|
View simple-deployer.rb
1 2 3 4 5 6 7 8 9 10
require 'rubygems'
require 'sinatra'
 
get '/' do
"Leave this place"
end
 
 
# Pass in the repo name and deploy that shit
get '/deploy/:name/:branch' do
View gist:8014984
1 2
git remote add heroku git@heroku.com:project.git
git push heroku <branch>:master
View knockout.haml
1
%pre{"data-bind" => "text: ko.toJSON($data, null, 2)"}
View asound.conf
1 2 3 4 5 6 7 8 9 10
pcm.!default {
type plug
slave.pcm "softvol"
}
 
pcm.softvol {
type softvol
slave {
pcm "dmix"
}
View index.php
1 2 3 4 5 6 7 8 9
<!DOCTYPE html>
<html>
<head>
<link type='text/css' rel='stylesheet' href='style.css'/>
<title>Hello, World!</title>
</head>
<body>
<?php
View README.md

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
View gist:7290725
1
%pre{"data-bind" => "text: JSON.stringify(ko.toJS($data), null, 2)"}
View startup
1 2 3 4 5 6 7 8 9 10
#!/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.
View graphite.md

Install python-pip

sudo apt-get install python-pip libcairo2 python-cairo

Install Graphite and Dependencies

pip install carbon
pip install whisper
pip install django
pip install django-tagging
pip install graphite-web
Something went wrong with that request. Please try again.