This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'sinatra' | |
get '/' do | |
"Leave this place" | |
end | |
# Pass in the repo name and deploy that shit | |
get '/deploy/:name/:branch' do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir newvids | |
for f in *.mp4; do ffmpeg -i "$f" -c:v mpeg4 -vtag xvid newvids/"${f%.mkv}.avi"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts "Hola mundo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rev-parse 304439d > .git/refs/heads/master | |
git checkout master | |
git push -f origin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
STATUS=0 | |
WINCLASS=xbmc.bin.xbmc.bin | |
DISPLAY=:0.0 | |
SLEEPDELAY=1 | |
/usr/bin/xbmc "$@" & | |
while [ $STATUS -eq 0 ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --data-binary '{ "jsonrpc": "2.0", "method": "VideoLibrary.ScanForContent", "id": "mybash"}' -H 'content-type: application/json;' http://localhost:8080/jsonrpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vncserver :1 | |
export DISPLAY=:1 | |
Para verlo: vnc :1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start the Xvnc server whatever happens | |
( ( nc -z -w 1 localhost 5900 || Xvnc4 -geometry 1680x1080 -SecurityTypes None) & ) &>> /tmp/xvnc4.log | |
export DISPLAY=:0 | |
OlderNewer