Skip to content

Instantly share code, notes, and snippets.

@vitorbaptista
vitorbaptista / gist:4063793
Created November 13, 2012 03:38
Decaptcher.org API in Ruby
require 'net/http'
require 'uri'
require 'base64'
require 'pry'
KEY = "YOUR API KEY"
class Decaptcher
def initialize(file_name)
@file_name = file_name
@vitorbaptista
vitorbaptista / bundle exec cucumber --no-profile
Created August 11, 2012 00:37
Errors running allourideas.org's tests
"redis/dist_redis" is deprecated. Require "redis/distributed" and replace DistRedis for Redis::Distributed. (in /home/vitor/Projetos/allourideas.org/vendor/ruby/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require')
Disabling profiles...
Cannot find or read /home/vitor/Projetos/allourideas.org/config/newrelic.yml
New Relic Agent not running.
Feature: Activating and deactivating choices
In order to prevent unwanted choices from appearing
As a question admin
I should be able to activate and deactivate a choice
@vitorbaptista
vitorbaptista / gist:3299632
Created August 8, 2012 23:12
Maven output for lexml-parser-pl/parser-projeto-lei
vitor@luna:/tmp/lexml-parser-pl/parser-projeto-lei/trunk$ svn log
------------------------------------------------------------------------
r6343 | fragomeni | 2012-05-14 19:37:44 -0300 (Mon, 14 May 2012) | 1 line
Importação.
------------------------------------------------------------------------
vitor@luna:/tmp/lexml-parser-pl/parser-projeto-lei/trunk$ mvn test
[INFO] Scanning for projects...
@vitorbaptista
vitorbaptista / #thacker.log
Created August 2, 2012 00:45
I Reunião do Hub OKFn
--- Log opened Wed Aug 01 20:00:36 2012
[20:00] < danielabsil> | pessoal, vou transcrever pra cá
[20:00] < danielabsil> | porque o hangout não tá funcionando pra gnete
[20:00] < danielabsil> | ok?
[20:00] < Nitai> | deve ser a rede de voces
[20:00] < Nitai> | pesada
[20:01] < danielabsil> | pra registrar, o Pedro Markun tá aqui contando o que é a Open Knowledge Foundation e como foi que a gente entrou em contato com eles
[20:01] < danielabsil> | participando com a THacker no Consegi, ano passado, a gente conheceu o Rufus Pollock dessa fundação e começou a pensar em trazer a OKFN pro Brasil
[20:01] < danielabsil> | uma das coisas que a gente acha que dá pra fazer com essa história da OKFn pro Brasil, era pensar num braço de ação mais business
[20:03] < danielabsil> | a gente sabe que a Transparência Hacker tem muita redundância com essa nova ação de uma Open Knowledge Foundation cuidado de dados abertos no Brasil. Mas a THacker é uma comunidade de ativismo, de certa forma, e talvez a OKFn possa se
@vitorbaptista
vitorbaptista / Gemfile.lock
Created July 18, 2012 18:37
Errors running pairwise-api's tests
GEM
remote: http://rubygems.org/
remote: http://gems.github.com/
specs:
actionmailer (2.3.14)
actionpack (= 2.3.14)
actionpack (2.3.14)
activesupport (= 2.3.14)
rack (~> 1.1.0)
activerecord (2.3.14)
=== REF ===
[u'6a499088428a729ca4c2e9ca1d3a8bfa5646f592']
=== SORT ===
[(<Dataset(australian_federal_government_contract_spending:[<AttributeDimension(category)>, <AttributeDimension(sourceurl)>, <CompoundDimension(from:[<Attribute(name)>, <Attribute(label)>])>, <AttributeDimension(description)>, <DateDimension(publishdate:[<Attribute(week)>, <Attribute(yearmonth)>, <Attribute(name)>, <Attribute(year)>, <Attribute(month)>, <Attribute(quarter)>, <Attribute(day)>, <Attribute(label)>])>, <CompoundDimension(to:[<Attribute(name)>, <Attribute(label)>])>, <AttributeDimension(cnid)>, <DateDimension(contractend:[<Attribute(week)>, <Attribute(yearmonth)>, <Attribute(name)>, <Attribute(year)>, <Attribute(month)>, <Attribute(quarter)>, <Attribute(day)>, <Attribute(label)>])>, <DateDimension(time:[<Attribute(week)>, <Attribute(yearmonth)>, <Attribute(name)>, <Attribute(year)>, <Attribute(month)>, <Attribute(quarter)>, <Attribute(day)>, <Attribute(label)>])>]:[<Measure(amount)>])>,
{u'amount': 20629.650000000001,
u'c
$ paster celeryd development.ini
[2012-07-09 13:13:38,415: WARNING/MainProcess]
-------------- celery@samba v2.4.4
---- **** -----
--- * *** * -- [Configuration]
-- * - **** --- . broker: amqp://guest@localhost:5672//
- ** ---------- . loader: openspending.command.celery.loader.PylonsLoader
- ** ---------- . logfile: [stderr]@DEBUG
- ** ---------- . concurrency: 4 - ** ---------- . events: OFF
@vitorbaptista
vitorbaptista / infinite_hangouts.sh
Created May 24, 2012 17:25
Infinite Google Hangouts
#!/bin/sh
# Change this to the button coordinates.
# To discover it, wait for it to appear, open a terminal,
# put the cursor over it and run "xdotool getmouselocation".
BUTTON_COORDINATES="300 800"
while (true)
do
xdotool mousemove $BUTTON_COORDINATES click 1 \
@vitorbaptista
vitorbaptista / newschallenge-2015-teams-countries.csv
Last active October 2, 2015 17:40
The NewsChallenge 2015 teams' countries
url country
https://www.newschallenge.org/challenge/data/entries/improve-openrefine-s-extensibility-with-data-repository-and-processing-services Canada
https://www.newschallenge.org/challenge/data/entries/microfilm-digitization USA
https://www.newschallenge.org/challenge/data/entries/crime-needs-a-new-box-score USA
https://www.newschallenge.org/challenge/data/entries/beautiful-map UK
https://www.newschallenge.org/challenge/data/entries/open-referral USA
https://www.newschallenge.org/challenge/data/entries/checking-up-on-the-fiscal-health-of-california-cities-counties-and-special-districts-a-tool-for-concerned-residents USA
https://www.newschallenge.org/challenge/data/entries/open-source-election-results-public-vote-counting USA
https://www.newschallenge.org/challenge/data/entries/designing-data-inclusion-mapping-detroit-s-data-ecosystem-to-catalyze-connectivity-engagement-and-impact-for-all USA
https://www.newschallenge.org/challenge/data/entries/tracking-gender-based-violence-while-protecting-privacy Congo
# Magentinizator v 0.42 - 2009
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revisão 42):
# <vitor@vitorbaptista.com> escreveu este arquivo. Contanto que mantenha este
# texto, você pode fazer o que quiser com esse software. Se nos conhecermos
# algum dia, e você achar que esse programa vale, você pode me pagar uma cerveja
# em troca.
# Vitor Baptista
# ----------------------------------------------------------------------------