Skip to content

Instantly share code, notes, and snippets.

View ldmosquera's full-sized avatar

Leonardo Mosquera ldmosquera

View GitHub Profile
@ldmosquera
ldmosquera / keybase.md
Created July 24, 2021 19:23
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
Plugin 'vim-scripts/argtextobj.vim'
Plugin 'vim-scripts/dbext.vim'
Plugin 'mrtazz/simplenote.vim'
Plugin 'scrooloose/syntastic'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-surround'
Plugin 'sjbach/lusty'
Plugin 'tpope/vim-speeddating'
#!/usr/bin/env ruby
#usage: tail_logs.rb APP_NAME
#merely tails the log to STDOUT, exiting on errors. Intended to be run from some kind of loop.
#Auth: requires ENV['HEROKU_API_KEY'] to be set.
require 'bundler'
Bundler.require
app_name = ARGV[0]
@ldmosquera
ldmosquera / analyze.rb
Last active December 20, 2015 14:19
Analyze Redis and produce CSV with stats, summarizing by "pattern" (foo:bar:123, foo:bar:234, etc)
#!/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