Skip to content

Instantly share code, notes, and snippets.

Available for freelancing

Joaquín Vicente wacko

Available for freelancing
View GitHub Profile
wacko / pre-commit
Last active Sep 16, 2020
Git hook to avoid commit debug lines (binding.pry console.log debugger...)
View pre-commit
#!/usr/bin/env ruby
# Validates that you don't commit forbidden keywords to the repo
# You can skip this checking with 'git commit --no-verify'
exit 0 if ARGV.include?('--no-verify')
# Update this list with your own forbidden keywords
KEYWORDS = %w(binding.pry console.log debugger)
def red(text) "\033[31m#{text}\033[0m"; end
wacko / gist:5577187
Last active Aug 27, 2020
SSH between Mac OS X host and Virtual Box guest
View gist:5577187

On Mac OS (host):

Shutdown your VM and do:

VirtualBox > Settings > Network > Add (you will get vboxnet0)

On a terminal ifconfig will show you new interface vboxnet0

VM's Settings > System > check "Enable I/O APIC." VM's Settings > Network > Adapter 2 > host-only vboxnet0

wacko / radios_nacionales.txt
Last active Jul 23, 2020 — forked from pisculichi/radios_nacionales.txt
URLs de radios nacionales de Argentina, para poder escuchar en la terminal con mplayer o vlc
View radios_nacionales.txt
# alias radio='function __radio(){ r=`grep -v "#" radios_nacionales.txt | grep -m 1 -i $1 | cut -d" " -f1`; cvlc $r 2> /dev/null; }; __radio'
# podria utilizarse mplayer en vez de vlc
AMs Nacionales Radio Madre 530; Radio Colonia 550 Radio Argentina 570 Continental 590 Rivadavia 630
wacko / short_date.rb
Last active Jan 3, 2020
Class to represent a short date (MM/DD), without the year component
View short_date.rb
require 'date'
class ShortDate
attr_reader :month, :day
include Comparable
def initialize(string)
date = Date.strptime(string, '%m/%d')
@month, @day = date.month,
rescue StandardError
wacko /
Last active Aug 4, 2019
Nativefier installer (Node.js + HomeBrew)
brew install 'nvm'
if ! grep -qs 'source $(brew --prefix nvm)/' ~/.bash_profile; then
printf 'export PATH="$PATH:/usr/local/lib/node_modules"\n' >> ~/.bash_profile
printf 'source $(brew --prefix nvm)/\n' >> ~/.bash_profile
source $(brew --prefix nvm)/
nvm install "$NODE_VERSION"
wacko / 01
Created Jun 7, 2019
Guia rápida para instalar ruby
View 01
wacko /
Created Oct 30, 2014
Steps for installing ImageMagick-6.8.9 on Debian
sudo apt-get update
sudo apt-get install build-essential checkinstall libx11-dev libxext-dev zlib1g-dev libpng12-dev libjpeg-dev libfreetype6-dev libxml2-dev
sudo apt-get install imagemagick
tar -xzvf ImageMagick.tar.gz
cd ImageMagick-6.8.9-9
sudo make install
wacko / gemcount
Last active Jun 21, 2017
List all the different gems on your Gemfile.lock
View gemcount
print_gems() {
awk '/([[:alnum:]_]+) \(/{ print $1 }' Gemfile.lock | sort -u
count() {
grep -c ^
wacko /
Last active Jan 19, 2017 — forked from ceneon/gist:8222574
Recategorización de Monotributo

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:

  1. Ingresar a la AFIP (Acceso con Clave Fiscal)
  2. Ir a Sistema Registral
  3. Hacer click en la lupa
  4. Registro tributario > Monotributo
  5. Este es el 1er formulario que se rompe. Hay dos soluciones:
wacko / gemcount
Created Feb 25, 2015
How many gems does your project use?
View gemcount
grep -o -E "([a-z0-9_-]+) \(" Gemfile.lock | sed -E 's/ \(//' | sort | uniq
You can’t perform that action at this time.