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
# Baixa resultados do TSE desde 1989 e cria um CSV com os parlamentares eleitos com colunas: | |
# ano, uf, nome, cargo, situação, partido | |
ANOS_UF := 1989 1990 | |
ANOS_MUNZONA := 1994 1996 1998 2000 2002 2004 2006 2008 2010 2012 2014 | |
ARQUIVOS_UF := $(patsubst %, VOTACAO_CANDIDATO_UF_%.ZIP, $(ANOS_UF)) | |
ARQUIVOS_MUNZONA := $(patsubst %, votacao_candidato_munzona_%.zip, $(ANOS_MUNZONA)) | |
ARQUIVOS_MUNZONA_DEPENDENCIES := $(patsubst %, votacao_candidato_munzona_%_SP.txt, $(ANOS_MUNZONA)) | |
ARQUIVOS_UF_DEPENDENCIES := $(patsubst %, VOTACAO_CANDIDATO_UF_%, $(ANOS_UF)) |
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
# place this file in ~/.config/terminator/config | |
[global_config] | |
title_transmit_bg_color = "#d30102" | |
focus = system | |
[keybindings] | |
reset_clear = <Ctrl>R | |
new_tab = <Ctrl>T | |
split_horiz = <Ctrl><Shift>E | |
split_vert = <Ctrl>E | |
close_term = <Ctrl><Shift>W |
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
sudo add-apt-repository ppa:gnome3-team/gnome3-staging | |
sudo add-apt-repository ppa:gnome3-team/gnome3 | |
sudo apt-add-repository ppa:cordova-ubuntu/ppa | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo apt-get install gnome gnome-shell google-chrome-stable cordova-cli zsh git vim-gnome |
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
#!/bin/bash | |
c=1 | |
while [ $c -le 1100 ] | |
do | |
$ANDROID_HOME/platform-tools/adb shell sendevent /dev/input/event1 3 57 18838 | |
$ANDROID_HOME/platform-tools/adb shell sendevent /dev/input/event1 3 53 613 | |
$ANDROID_HOME/platform-tools/adb shell sendevent /dev/input/event1 3 54 512 | |
$ANDROID_HOME/platform-tools/adb shell sendevent /dev/input/event1 3 58 44 | |
$ANDROID_HOME/platform-tools/adb shell sendevent /dev/input/event1 3 48 4 |
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
{ | |
"processed": 587, | |
"failed": 21, | |
"jobs": { | |
"sync": [ | |
{ | |
"message": { | |
"args": 101, | |
"at": 1.431663506e+09, |
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
DFILE="go$VERSION.linux-amd64.tar.gz" | |
wget https://storage.googleapis.com/golang/$DFILE -O /tmp/go.tar.gz | |
tar -C /usr/local -xzf /tmp/go.tar.gz |
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
cd /tmp | |
# Theme Arc | |
sudo sh -c "echo 'deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_15.04/ /' >> /etc/apt/sources.list.d/arc-theme.list" | |
wget http://download.opensuse.org/repositories/home:Horst3180/xUbuntu_15.04/Release.key | |
sudo apt-key add - < Release.key | |
# Nuvola | |
sudo sh -c "echo 'deb https://tiliado.eu/nuvolaplayer/repository/deb/ vivid stable' >> /etc/apt/sources.list.d/tiliado-nuvolaplayer.list" | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 40554B8FA5FE6F6A |
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
require 'celluloid/current' | |
require 'rest-client' | |
require 'benchmark' | |
class ModelX | |
attr_accessor :url | |
def initialize(url) | |
@url = url | |
end | |
end |
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
/tmp $> nvm install iojs [ ruby-2.2.2p95 ] | |
######################################################################## 100,0% | |
WARNING: checksums are currently disabled for io.js | |
Now using io.js v3.0.0 (npm v2.13.3) | |
/tmp $> npm install -g node-sass [ ruby-2.2.2p95 ] | |
/home/duke/.nvm/versions/io.js/v3.0.0/bin/node-sass -> /home/duke/.nvm/versions/io.js/v3.0.0/lib/node_modules/node-sass/bin/node-sass | |
> node-sass@3.2.0 install /home/duke/.nvm/versions/io.js/v3.0.0/lib/node_modules/node-sass | |
> node scripts/install.js |
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
import Ember from 'ember'; | |
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin'; | |
export default Ember.Route.extend(AuthenticatedRouteMixin, { | |
session: Ember.inject.service('session') | |
beforeModel() { | |
const userType = this.get('session.authenticated.type'); | |
if(userType !== 'admin') { | |
this.tranistionTo('login') | |
} |