Skip to content

Instantly share code, notes, and snippets.

View guiscaranse's full-sized avatar

Guilherme Scaranse guiscaranse

  • São Paulo, Brazil
View GitHub Profile
@andresmachado
andresmachado / import_banks.py
Created April 17, 2017 02:23
Import all active banks in Brazil
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 5 15:50:49 2017
@author: andre
"""
import json
from bs4 import BeautifulSoup
@netojoaobatista
netojoaobatista / gitcowsay.sh
Last active January 4, 2021 18:58
Random commit messages
git config --global alias.cowsay '!git commit -m "`fortune | cowsay -f tux`"'
@akatch
akatch / xboxdrv.service
Created October 24, 2014 01:54
systemd script for xboxdrv
# Systemd unit to enable xboxdrv driver for Xbox 360 controller
# Usage:
# save to /lib/systemd/system/xboxdrv.service
# to start: sudo service xboxdrv start
# to enable on boot: sudo systemctl enable xboxdrv
[Unit]
Description=Xbox controller driver daemon
[Service]
@jojobyte
jojobyte / ContextCmder-Disable.reg
Last active February 8, 2025 01:56
Cmder Context (Right-Click) Menu for Windows 7, 8, 10 & 11
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@isaacs
isaacs / node-and-npm-in-30-seconds.sh
Last active April 14, 2025 11:07
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh