Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔

Duke dukex

🤔
View GitHub Profile
View libsass-iojs-3.0.0
/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
View gist:d5280f00aff305e0f5e8
require 'celluloid/current'
require 'rest-client'
require 'benchmark'
class ModelX
attr_accessor :url
def initialize(url)
@url = url
end
end
View install.sh
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
View golang
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
View gist:8a5053bd7b0252df426a
{
"processed": 587,
"failed": 21,
"jobs": {
"sync": [
{
"message": {
"args": 101,
"at": 1.431663506e+09,
@dukex
dukex / gist:4463360f7a4ac997290b
Created Apr 12, 2015
AutoClicker Android Example infinite click
View gist:4463360f7a4ac997290b
#!/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
View gist:c7f9ca629139535fd8f5
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
View gist:9bc54810a4cba54d94c2
# 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
View Makefile
# 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))
View gist:23239f75d7e7840a49b5
### Keybase proof
I hereby claim:
* I am dukex on github.
* I am dukex (https://keybase.io/dukex) on keybase.
* I have a public key whose fingerprint is D795 DD77 98F1 2DD8 0C8C B000 C326 7706 5124 BF2B
To claim this, I am signing this object: