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
#Eng Eder de Souza 01/12/2011 | |
#Speech Recognizer prototype ... | |
#Real time VAD implementation using Google Speech Api | |
from tempfile import mkstemp | |
from subprocess import call | |
from os import remove, listdir | |
from matplotlib.mlab import find | |
import pyaudio | |
import numpy as np |
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
# To install the Python client library: | |
# pip install -U selenium | |
# Import the Selenium 2 namespace (aka "webdriver") | |
from selenium import webdriver | |
# iPhone | |
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub') | |
# Android |
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
# My stuff :3 | |
export PS1="[\u@\h at \t in -> \W] : " | |
export HISTTIMEFORMAT="%d/%m/%y %T " | |
export set PATH=/usr/local/bin:$PATH | |
export set PATH=/Users/filipecifalistangler/Downloads/scala-2.10.0/bin:$PATH | |
export set PATH=$PATH:$MYSQL_HOME/bin | |
export set MYSQL_HOME=/usr/local/mysql | |
alias judite="echo JUDITE ; sleep 1 ; echo JUDITE ; sleep 1 ; echo JUDITE ; sleep 1 ; echo JUDITE ; sleep 1 ; echo JUDITE ; sleep 1 ; echo JUDITE ; sleep 1 ; echo NAO FODE COMIGO JUDITE" | |
alias mysql=/usr/local/mysql/bin/mysql | |
alias mysqladmin=/usr/local/mysql/bin/mysqladmin |
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
$ cat teste.py | |
#!/usr/bin/env python | |
import sys | |
for a in sys.argv: | |
print a |
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
base_url = 'http://gendou.com/' | |
username = '********' # derp dy | |
password = '********' # herp | |
def login(): | |
cj = cookielib.CookieJar() | |
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) | |
urllib2.install_opener(opener) | |
login_data = urllib.urlencode({'name':username, 'pass':password}) | |
request = urllib2.Request(base_url+'/forum/login.php', login_data) |
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
class Hotel(object): | |
def __init__(self, name, ranking, price): | |
self.name = name | |
self.ranking = ranking | |
self.price = price | |
def show_price(self, date): | |
if date is Saturday or date is Sunday: | |
self.price = self.price * 0.2 | |
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
root@wiki:/home/pythonbrasil2015# apt-get install ruby | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
libffi5 libruby1.9.1 ruby1.9.1 | |
Suggested packages: | |
ri ruby-dev ruby1.9.1-examples ri1.9.1 graphviz ruby1.9.1-dev ruby-switch | |
The following NEW packages will be installed: | |
libffi5 libruby1.9.1 ruby ruby1.9.1 |
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
set comments= | |
set noai | |
set nu | |
set tabstop=4 | |
shiftwidth=4 | |
expandtab | |
syntax on |
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
[10:00:17 root@ohhh redis-3.0.2]# make | |
cd src && make all | |
make[1]: Entering directory `/usr/local/install/System-packages/redis-3.0.2/src' | |
rm -rf redis-server redis-sentinel redis-cli redis-benchmark redis-check-dump redis-check-aof *.o *.gcda *.gcno *.gcov redis.info lcov-html | |
(cd ../deps && make distclean) | |
make[2]: Entering directory `/usr/local/install/System-packages/redis-3.0.2/deps' | |
(cd hiredis && make clean) > /dev/null || true | |
(cd linenoise && make clean) > /dev/null || true | |
(cd lua && make clean) > /dev/null || true | |
(cd jemalloc && [ -f Makefile ] && make distclean) > /dev/null || true |
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
from tcolors import bcolors | |
from dns.resolver import Resolver | |
sys_r = Resolver() | |
dns1 = ['a.sec.dns.br', 'b.sec.dns.br'] | |
dns2 = ['dns1.stabletransit.com', 'dns2.stabletransit.com'] | |
domain = 'python.org.br' | |
queries = { | |
# '':'a', | |
# '':'mx', | |
# '':'txt', |
OlderNewer