Skip to content

Instantly share code, notes, and snippets.

View lucasefe's full-sized avatar
💭
Busy building stuff

Lucas Florio lucasefe

💭
Busy building stuff
  • Community Phone
  • Buenos Aires, Argentina
  • X @lucasefe
View GitHub Profile
var http = require('http');
http.createServer(function(request, response) {
console.log('--> REQ: ' + request.url);
var proxy = http.createClient(80, request.headers['host'])
var proxy_request = proxy.request(request.method, request.url, request.headers);
proxy_request.addListener('response', function (proxy_response) {
proxy_response.addListener('data', function(chunk) {
response.write(chunk, 'binary');
});

Keybase proof

I hereby claim:

  • I am lucasefe on github.
  • I am lucasefe (https://keybase.io/lucasefe) on keybase.
  • I have a public key whose fingerprint is 3CF6 18AD D255 ADAF 49A0 8BC6 EF28 C434 6789 03BF

To claim this, I am signing this object:

@lucasefe
lucasefe / run.bash
Last active February 17, 2016 19:34
Capture a preview of each color scheme applied to your own iTerm configuration.
# The idea/use case behind this, is that after running it, you'll be able to quick view all the pngs
# with the previews and choose easily which one to import to iTerm.
clear
# get iterm window id
wid=$(osascript -e 'tell app "iTerm" to id of window 1');
# print something, so when changing schemes, you can see how it's changing.
ls -la $HOME
@lucasefe
lucasefe / keybase.md
Created June 4, 2015 23:56
keybase.md

Keybase proof

I hereby claim:

  • I am lucasefe on github.
  • I am lucasefe (https://keybase.io/lucasefe) on keybase.
  • I have a public key whose fingerprint is 11C4 08E0 484C 0CB6 4752 CEAA C19A 1CDD 373B 9F0E

To claim this, I am signing this object:

Plugin 'chriskempson/base16-vim'
Plugin 'd11wtq/ctrlp_bdelete.vim'
Plugin 'danchoi/ri.vim'
Plugin 'duggiefresh/vim-easydir'
Plugin 'ervandew/supertab'
Plugin 'godlygeek/tabular'
Plugin 'gregsexton/gitv'
Plugin 'jelera/vim-javascript-syntax'
Plugin 'kien/ctrlp.vim'
Plugin 'mattn/gist-vim'
set background=dark
colorscheme desert256
let mapleader=","
map <Leader>s :!chibi-scheme %<CR>
map <Leader>r :!ruby %<CR>
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Para recategorizarte en el Monotributo, la aplicación de AFIP da error de Javascript por todos lados.
A menos que entres con Internet Explorer...
Para hacer el trámite en Chrome, Firefox o cualquier browser decente:
- Entrá con tu clave fiscal
- Abrí la aplicación de "Monotributo"
- Ignorá el formulario y abrí la siguiente URL:
https://servicios1.afip.gov.ar/tramites_con_clave_fiscal/monotributo/valida_cuit.asp?tramite=3&cuit=___TU_CUIT___&intesoc=N&eventual=N&coop=N&cuitcoop=0
#!/usr/bin/env ruby
#usage: analyze.rb REDIS_PORT
#produces CSV with stats by key pattern
#ex: [foo:bar:123, foo:bar:234] -> foo:bar:ID
require 'rubygems'
require 'redis'
REDIS_PORT = (ARGV[0] || 6379).to_i
# encoding: utf-8
require 'mechanize'
require 'csv'
START_URL = 'http://www.confreaks.com/events'
STDOUT.sync = true
agent = Mechanize.new
page = agent.get START_URL
@lucasefe
lucasefe / heroku-cli.rb
Created July 11, 2012 19:59
run commands on a single app context
# heroku-cli --app my-heroku-app
[ my-heroku-app ] >