Skip to content

Instantly share code, notes, and snippets.

View oinak's full-sized avatar

Fernando Martínez oinak

View GitHub Profile
@oinak
oinak / vpn.rb
Created November 18, 2011 07:53
Configure custom vpn's
#!/usr/bin/env ruby
require "rubygems" # ruby1.9 doesn't "require" it though
require "thor"
# The program takes different commands as in git thing style.
# At the moment it list avaiable/enable VPN's or sets them.
#
# Author:: Fernando Martínez (mailto:[email protected])
# Copyright:: Copyright (c) 2010 LCIbérica SL
# License:: Distributes under the same terms as Ruby
@oinak
oinak / jazzfonica.rb
Created July 3, 2011 10:10 — forked from christos/jazzfonica.rb
jazzfonica
#!/usr/bin/env ruby
# jazzfonica.rb for Mac OS X
# Scans the visible networks for JAZZTEL_XXXX or WLAN_XXXX and calculates the password
# Ported from PHP example at http://kz.ath.cx/wlan/codigo.txt
# Download and execute with ruby (e.g. ruby jazzfonica.rb) from a Terminal
require 'digest/md5'
messages = []
unless !File.exists?('/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport')
@mmontalvo
mmontalvo / Utilities
Last active September 24, 2015 04:57
List of useful commands
# To uninstall ALL gems
for i in `gem list --no-versions`; do gem uninstall -aIx $i; done