Skip to content

Instantly share code, notes, and snippets.

View bastos's full-sized avatar
:shipit:
Shipping something

Tiago Bastos bastos

:shipit:
Shipping something
View GitHub Profile
rake install --trace
(in /Users/bastos/Code/rubinius)
LLVM inclusion enabled.
** Invoke vm/.depends.mf (first_time, not_needed)
** Invoke vm/agent.hpp (first_time, not_needed)
** Invoke vm/ar.hpp (first_time, not_needed)
** Invoke vm/arguments.hpp (first_time, not_needed)
** Invoke vm/async_message.hpp (first_time, not_needed)
** Invoke vm/call_frame.hpp (first_time, not_needed)
** Invoke vm/call_frame_list.hpp (first_time, not_needed)
import xmlrpclib
s = xmlrpclib.ServerProxy('http://fancyjiraurl.com/rpc/xmlrpc')
auth = s.jira1.login('lolo', 'lololo')
test = s.jira1.getIssuesFromFilter(auth, '123456')
@bastos
bastos / gist:401152
Created May 14, 2010 13:38
Ruby XML RPC Example
require "xmlrpc/client"
require "pp"
server = XMLRPC::Client.new2("http://myfancyjira.com/rpc/xmlrpc")
auth = server.call("jira1.login",'trololologin', 'trolololopassword')
server.call("jira1.getIssuesFromFilter",auth, '<<filter id>>').each do |issue|
puts issue["summary"]
end
01 - James Bond 007 - Dr. No (1962).avi
88 Minutes
Apocalypse.Now.Redux.DVDRIP-ZEKTORM
Arctic Monkeys - When The Sun Goes Down [2006][SkidVid].mpg
A Scanner Darkly
A Troca
Auchwitz Documentaries
Band_of_brothers_LEGRANDBISOUX
Californication
Capote
@bastos
bastos / War Movies List
Created February 22, 2010 16:17
War Movies List
ok 25. The Pianist (2002)
24. Seargeant York (1941)
23. Stalag 17 (1953)
ok 22. The Thin Red Line (1998)
21. The African Queen (1951)
20. MASH (1970)
19. Downfall (2005)
18. Patton (1970)
17. All Quiet on the Western Front (1930)
ok 16. Letters from Iwo Jima (2006)
We couldn’t find that file to show.
package bastos.sharetest;
import android.app.Activity;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Log;
import android.widget.Toast;
package org.bastos;
import java.util.Random;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class OhMyGOd extends Activity {
/** Called when the activity is first created. */
files=($(pwd)/lala*);
for file in $files; do
rename_file_name="$(echo $file | sed 's/lala/lele/')"
git mv $file $rename_file_name
done
#!/usr/bin/ruby
require 'rubygems'
require 'memcache'
require 'benchmark'
MEMCACHE_OPTIONS = {
:c_threshold => 10_000,
:compression => true,
:debug => false,