Skip to content

Instantly share code, notes, and snippets.

View lorn's full-sized avatar
🏠
Working from home

Lindolfo Rodrigues lorn

🏠
Working from home
View GitHub Profile
@lorn
lorn / LinusTalk200705Transcript.wiki
Created October 8, 2011 18:41
Linus google tech talk transcript

This is transcript of Tech Talk: Linus Torvalds on Git at Google on YouTube.


Andrew:

Thank you, for coming everybody, some of you probably already have heard of Linus Torvalds, those of you who haven't, you are the people with Macintoshes on your laps.

@lorn
lorn / gist:976873
Created May 17, 2011 17:12 — forked from medecau/opcp.md
Online Programming Contests and Puzzles
@lorn
lorn / video_drm.md
Created November 27, 2012 16:44
Video drm uncrackable from G+

Asher Langton Yesterday 6:41 AM (edited) - Public I bought a digital video download today that required a video player from Leaping Brain. As usual, the proprietary player wasn't great and to transfer it to my iPhone I'd need another proprietary player. Ugh. But I browsed around and found that the video had been downloaded into a hidden directory as a bunch of .mov files. Great, except none of the files would play.

It turned out the actual player, launched from their compiled app, was a Python wrapper around some VLC libraries. Nothing funny going on, as far as I could tell, but when I tried to launch the player directly, nothing happened. The compiled app was modifying the .mov files right before they were loaded into the player, and then reverting the file on disk. According to http://leapingbrain.com/mod-machine/faq/:

"We apply our BrainTrust™ proprietary video encryption to your movies before we upload them to our servers. If someone ever was able to gain access to your content, the files would be us

@lorn
lorn / Vagrantfile
Last active October 9, 2018 06:55
Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |vb|
vb.name = "app.intranet"
vb.customize [ 'modifyvm', :id, '--memory', '512' ]
vb.customize [ 'modifyvm', :id, '--cpus', '1' ]
end
Host bitbucket.org
HostName altssh.bitbucket.org
Port 443
Host github.com
HostName ssh.github.com
Port 443
Host gitlab.com
HostName altssh.gitlab.com
@lorn
lorn / stopwords.txt
Created May 27, 2011 16:21
pt-br stopwords
"abaixo", "aca", "acaso",
"acerca", "acima", "acola", "acula", "ademais", "adentro",
"adiante", "afinal", "afora", "agora", "agorinha", "ah", "ainda",
"alem", "algo", "alguem", "algum", "alguma", "algumas", "alguns",
"ali", "alias", "alo", "ambos", "amiude", "ante", "antes", "ao",
"aonde", "aos", "apenas", "apesar", "apos", "apud", "aquela",
"aquelas", "aquele", "aqueles", "aqui", "aquilo", "as", "assim",
"ate", "atras", "atraves", "basicamente", "bastante", "bastantes",
"bem", "bis", "bom", "ca", "cada", "cade", "caso", "certa",
"certamente", "certas", "certeiramente", "certo", "certos", "chez",
@lorn
lorn / create_app_access_token.sh
Created April 25, 2012 18:48
Facebook API access_token
export APP_SECRET="02dfd454ff2b2ddcc49ede93e9ee338b"
export APP_ID="159018987471635"
export REDIRECT_URI="https://apps.facebook.com/sandbox_lorn/fb/connect/"
export CODE="AQB0z1SNyYEaF_6FjFkLs-vNSzOS64EjVRilEQX_R6ubYYqUnT-iIh75Am8IdknC274oEn2Q0j4ZfgpyBvrI_zQR0rPA-cxmaXOwcj16HS9DaBphcCdGRhxqrQ_wKp4UZ4fOpDSre3mlFbRBZKyjw-FOA7QG-_IA8gx9IQiCLwdLLhAF2spW62-U0ug7B52FSkqfw6RDVOVD8165kBqMSP9a#_=_"
echo -e "https://graph.facebook.com/oauth/access_token?client_id=$APP_ID&redirect_uri=$REDIRECT_URI&client_secret=$APP_SECRET&code=$CODE"
curl "https://graph.facebook.com/oauth/access_token?client_id=$APP_ID&redirect_uri=$REDIRECT_URI&client_secret=$APP_SECRET&code=$CODE"
@lorn
lorn / docker-compose.yml
Created August 5, 2016 15:05
Docker compose for graylog2 tests, i'm putting here because of the udp stuff 👽
some-mongo:
image: "mongo:3"
some-elasticsearch:
image: "elasticsearch:2"
command: "elasticsearch -Des.cluster.name='graylog'"
graylog:
image: graylog2/server:2.0.1-1
environment:
GRAYLOG_PASSWORD_SECRET: somepasswordpepper
GRAYLOG_ROOT_PASSWORD_SHA2: 8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
@lorn
lorn / oracle.pl
Created November 28, 2012 19:19
Script perl para Oracle
#!/usr/bin/perl
use strict;
use warnings;
use DBD::Oracle qw(:ora_session_modes);
### Variaveis e conexao ao Oracle.
my $oracle_hostname = $ARGV[0];
my $oracle_database = $ARGV[1];
my $oracle_port = $ARGV[2];
my $oracle_username = 'SYS';
; CIDER 0.10.0snapshot (package: 20150824.244) (Java 1.8.0_60, Clojure 1.7.0, nREPL 0.2.10)
user> (StringBuilder "Sam")
RuntimeException Expecting var, but StringBuilder is mapped to class java.lang.StringBuilder clojure.lang.Util.runtimeException (Util.java:221)
user> (StringBuilder. "Sam")
#object[java.lang.StringBuilder 0x3711d177 "Sam"]
user> ["mixed" 4 "content"]
[""]
user> ["mixed" 4]
["mixed" 4]
user>