I hereby claim:
- I am thulio on github.
- I am thulio (https://keybase.io/thulio) on keybase.
- I have a public key ASDYU5eDNu7isT4Ei_3Pv-Elpmfa1veXhkmCrLXAyo_vIQo
To claim this, I am signing this object:
pip freeze -l | cut -d'=' -f 1 | xargs pip install -U |
#!/bin/sh | |
# Print the gcc cpu specific options tailored for the current CPU | |
# Author: | |
# http://www.pixelbeat.org/ | |
# Notes: | |
# This script currently supports Linux,FreeBSD,Cygwin | |
# This script is x86 (32 bit) specific | |
# It should work on any gcc >= 2.95 at least |
class True(object): | |
def __init__(self, iterations=1): | |
self.iterations = iterations | |
self.current_iteration = 0 | |
def __nonzero__(self): | |
if self.current_iteration < self.iterations: | |
self.current_iteration += 1 | |
return 1 |
import requests | |
url = "http://guitarshop.com.br/prod,idloja,5372,idproduto,3575917,cordas-amp-guitarra-g5--15w-c--drive" | |
headers = {"User-Agent": "python/urllib"} | |
r = requests.get(url, headers=headers) | |
print(r.status_code) | |
headers = {"User-Agent": "python/splinter"} | |
r = requests.get(url, headers=headers) | |
print(r.status_code) | |
headers = {"User-Agent": "splinter"} | |
r = requests.get(url, headers=headers) |
#!/usr/bin/env ipython | |
import splinter | |
import subprocess | |
b = splinter.browser.Browser() | |
subprocess.Popen(["pkill", "-f", "ipython"]) |
#!/usr/bin/env python | |
# based on cb-exit used in CrunchBang Linux <http://crunchbanglinux.org/> | |
import pygtk | |
pygtk.require('2.0') | |
import gtk | |
import os | |
import getpass |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, | |
// @KarlHillesland, @rexguo, @tom_forsyth, @bkaradzic, @MikeNicolella | |
// and myself. | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
I hereby claim:
To claim this, I am signing this object: