This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'sqlite3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Without inverse_of | |
Couldn't find Comment with id=1 [WHERE "comments"."post_id" = ?] | |
Couldn't find all Comments with IDs (1, 2) [WHERE "comments"."post_id" = ?] | |
Couldn't find Comment without an ID | |
# With inverse_of | |
Couldn't find Comment with id=[1] [WHERE "comments"."post_id" = ?] | |
Couldn't find all Comments with IDs (1, 2) [WHERE "comments"."post_id" = ?] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER database template1 is_template=false; | |
DROP database template1; | |
CREATE DATABASE template1 | |
WITH OWNER = postgres | |
ENCODING = 'UTF8' | |
TABLESPACE = pg_default | |
LC_COLLATE = 'es_ES.UTF-8' | |
LC_CTYPE = 'es_ES.UTF-8' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('li[data-issue-status-name="wontfix"]').each((i, e) => { e.click() }) | |
$('input[name="commit"]').each((i, e) => { e.click() }) |