Skip to content

Instantly share code, notes, and snippets.

Avatar

Mario Lavandero mlavandero

View GitHub Profile
@mlavandero
mlavandero / remove_open_with.bash
Created May 13, 2013
Clear Duplicate / Old / Wrong Open With apps from contextual menus. Got it from: http://itpixie.com/2011/05/fix-duplicate-old-items-open-with-list/#.UZDuPpVNLyI
View remove_open_with.bash
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/\
LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local\
-domain system -domain user
@mlavandero
mlavandero / agregar_puntos.rb
Created Jan 19, 2013
Agregar puntos a CPF
View agregar_puntos.rb
def agregar_puntos cpf
cpf.split("-")[0].split(/(.{3})(.{3}$)/).join(".")
end
@mlavandero
mlavandero / sidekq_push.rb
Created Nov 11, 2014
Sidekiq Client Push
View sidekq_push.rb
Sidekiq::Client.push('queue' => queue_name, 'class' => Worker, 'args' => [self.id])