Skip to content

Instantly share code, notes, and snippets.

View ace's full-sized avatar

Andrés Cirugeda ace

View GitHub Profile
@ace
ace / jazzfonica.rb
Created June 14, 2011 10:46 — 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')
source 'http://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
# 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" = ?]
@ace
ace / template1.sql
Created January 22, 2021 15:07
Postgresql change template1 collation
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'
@ace
ace / quick_approve.js
Created November 7, 2022 14:39 — forked from lamp/quick_approve.js
Mark All Issues on codeclimate as wontfix
$('li[data-issue-status-name="wontfix"]').each((i, e) => { e.click() })
$('input[name="commit"]').each((i, e) => { e.click() })