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/sh | |
# | |
# Usage | |
# copy_dotfiles user@machine | |
# | |
FILES=".vim .vimrc .inputrc .gitconfig" | |
cd $HOME | |
tar cL $FILES | ssh -C $1 'tar vx' |
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 "time" | |
party_time = Time.parse("5/04/2012 6:00:00 P.M.") | |
trap(:INT){puts ""} | |
loop do | |
seconds_left = party_time.to_i - Time.now.to_i | |
print "\rSeconds left to party: #{seconds_left}" | |
sleep(1) | |
end |
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/sh | |
for js in $(git diff-index --name-only HEAD); do | |
echo Checking $js | |
if ( [ -f $js ] ); then | |
if jsl --process $js > /dev/null ; then | |
echo $js | |
else | |
echo "js files failed $js" | |
jsl -nologo -nofilelisting -nosummary --process $js |
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
#!/usr/bin/env ruby | |
=begin | |
DESCRIPTION | |
This little program will save all tweets from a user timelime to files | |
~/.twitter_backup/tweets/tweet_id.yaml # Full yaml tweet | |
~/.twitter_backup/tweets/tweet_id.txt # Only tweet text | |
You can search your tweets with: |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2. in line 2.
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
¡Mamma Mia! http://www.megavideo.com/?v=39G6ZIBW DVD Español | |
1997: Rescate en Nueva York http://www.megaupload.com/?d=1IQVR204 DVD-RIP Español | |
2001 una odisea en el espacio http://www.megaupload.com/?d=RJEPWE9Z 1,4Gb DVD-RIP | |
30 minutes or less 1 http://freakshare.com/files/36kax38u/los.changosos.part1.gz 271 MB DD | |
30 minutes or less 2 http://freakshare.com/files/9dfsg4zz/los.changosos.part2.gz 271 MB DD | |
300.avi http://www.fileserve.com/file/NfBQcz7 698.04 MB DD | |
Across The Universe DVDRip http://depositfiles.com/files/giklyvrqq 469.59 MB DD Dual | |
Amélie http://www.fileserve.com/file/mqVEMe3/ 700 MB DD | |
American Beauty http://www.megaupload.com/?d=W99XXY96 701 MB DD | |
Asterix en los Juegos Olímpicos (2008) http://www.megavideo.com/?v=JSNXVYH6 362.20 MB Streaming |
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
# Option 1 | |
# The clean one, you can move the class to other file | |
module Utils | |
extend self | |
def install | |
puts "Installing" | |
end | |
end |
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
module Utils | |
extend self | |
def install | |
puts "Installing" | |
end | |
end | |
desc "We are going to install... LA LA LA" |
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
#!/usr/bin/env ruby | |
=begin | |
README | |
====== | |
Download any youtube video, in the original format ogg without | |
loosing quality, and also convert a mp3 from the ogg. | |
You have to decide if the mp3 quality is enough for you. Or you | |
can adjust the parameters of the conversion if you need the mp3 |
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
debug = () -> | |
s = "" | |
for arg in arguments | |
unless typeof(arg) == "string" | |
arg = JSON.stringify arg | |
s += "#{arg} :" | |
window.console.debug s |
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
[root@es01 ~]# hdparm -Tt /dev/sda1 | |
/dev/sda1: | |
Timing cached reads: 10004 MB in 2.00 seconds = 5012.25 MB/sec | |
Timing buffered disk reads: 14 MB in 3.38 seconds = 4.14 MB/sec | |
[root@es01 ~]# dd if=/dev/urandom of=/tmp/urandom count=100000 | |
100000+0 records in | |
100000+0 records out | |
51200000 bytes (51 MB) copied, 14.4699 seconds, 3.5 MB/s |