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 / emacs.md
Last active October 4, 2015 12:47
emacs tips

janelas e buffers

ctrl x+b troca de buffer

ctrl x + ctrl b mostra buffer

ctrl x+o troca de janela

ctrl x+0 ( elimina a janela )

@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 / ring.erl
Created February 10, 2012 17:45
Problem with ring in erlang :/
-module(ring).
-export([start/1,start_proc/2]).
start(Num) ->
start_proc(Num, self()).
start_proc(0,Pid) ->
Pid ! ok;
start_proc(Num, Pid) ->
NPid = spawn(ring, start_proc, [Num -1, Pid]),
@lorn
lorn / gist:1595115
Created January 11, 2012 15:12
Moose test
http://showmetheco.de/articles/2011/11/tdd-best-practices-in-perl.html
15:54 <@sartak> Test::Class is alright but check out Test::Routine too
15:54 <@mst> Lorn: I use Test::More
15:56 < Lorn> also, what is the address of Moose mailling list? moose.perl.org is out and I only find nntp list for moose
15:57 <@mst> [email protected]
15:57 < Lorn> Thanks
15:58 <@mst> Lorn: define "is out"
15:58 <@mst> Lorn: I got a redirect to moose.iinteractive.com
@lorn
lorn / starman.sh
Created December 7, 2011 23:23
Starman init.d script
#!/bin/bash
# starman - this script starts and stops the starman daemon
#
# chkconfig: - 85 15
# description: Starman
# processname: starman
# pidfile : /var/run/starman.pid
# www file: /var/www/myapp
@lorn
lorn / gist:1275787
Created October 10, 2011 16:52
minicv
Lorn Rodrigues trabalha no iG com arquitetura de software, mas não gosta do papel de 'arquiteto' que não bota a mão na massa. Obcecado por alta disponibilidade e sistemas distribuidos, também gosta de testes de software e anda em busca do verdadeiro Deploy Continuo.
@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 / nginx_starman.conf
Last active September 26, 2015 16:28
Uma arquitetura de alta disponibilidade usando Starman
upstream myapp_starman {
server unix:/tmp/starman.sock fail_timeout=0;
}
server {
listen 80;
client_max_body_size 1024m;
client_body_buffer_size 8k;
proxy_read_timeout 300;
@lorn
lorn / export_wp.xml
Created June 10, 2011 22:23
Tema site igreja
<?xml version="1.0" encoding="UTF-8" ?>
<!-- This is a WordPress eXtended RSS file generated by WordPress as an export of your site. -->
<!-- It contains information about your site's posts, pages, comments, categories, and other content. -->
<!-- You may use this file to transfer that content from one site to another. -->
<!-- This file is not intended to serve as a complete backup of your site. -->
<!-- To import this information into a WordPress site follow these steps: -->
<!-- 1. Log in to that site as an administrator. -->
<!-- 2. Go to Tools: Import in the WordPress admin panel. -->
<!-- 3. Install the "WordPress" importer from the list. -->
@lorn
lorn / livros.txt
Created June 7, 2011 15:47
Livro sobre emprededorismo
=================
Ricardo Semler, Você está louco.
Melhor livro que li em 2010 (by Rodrigo de Toledo)
Outro dele: Virando a própria mesa (pior que o "Você está Louco", ainda assim, vale).
=================
Motivação 3.0, Daniel Pink