Skip to content

Instantly share code, notes, and snippets.

View albertohm's full-sized avatar

Alberto Hernández Mateos albertohm

View GitHub Profile
@albertohm
albertohm / .vimrc
Created March 14, 2012 10:05
My .vimrc
""PATHOGEN ------------------------------------
"call pathogen#runtime_append_all_bundles()
"call pathogen#helptags()
"filetype off " required!
"VUNDLE --------------------------------------
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
@albertohm
albertohm / update_xbmc_library.sh
Created March 3, 2012 01:14
Update XBMC library
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.ScanForContent", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc
@albertohm
albertohm / launch_xbmc.sh
Created March 3, 2012 01:13
Launch XBMC adjusting screen
#! /bin/bash
STATUS=0
WINCLASS=xbmc.bin.xbmc.bin
DISPLAY=:0.0
SLEEPDELAY=1
/usr/bin/xbmc "$@" &
while [ $STATUS -eq 0 ]
@albertohm
albertohm / bad_thing
Created February 20, 2012 13:14
Git Grayskull power
git rev-parse 304439d > .git/refs/heads/master
git checkout master
git push -f origin
@albertohm
albertohm / hola_mundo.rb
Created February 16, 2012 13:41
Hola mundo
puts "Hola mundo"