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 splinter.browser import Browser | |
from selenium.common.exceptions import StaleElementReferenceException | |
class SpamRemover(object): | |
"""This script will attempt to delete until no more mail from | |
given sender is found in view.""" | |
def __init__(self, mail_url): | |
"""After browser is open, you need to login by yourself.""" |
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/sh | |
# CUSTOM version by Gabriel Lima (http://www.github.com/gabriellima) (@glima5) | |
# * Check portuguese (pt_BR) apt-get output | |
# * support '--force-yes' param to pass through user response | |
# * pass '-n10' to axel, to use 10 connections instead of default number | |
# * show packages installed or upgraded in the end of command execution | |
# apt-fast v0.02 by Matt Parnell http://www.mattparnell.com, this thing is fully open-source | |
# if you do anything cool with it, let me know so I can publish or host it for you |
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
# by Gabriel Lima (http://github.com/gabriellima) (@glima5) | |
# dependency: xterm | |
# ALERT: this will probably use a lot of processing, depending on how many themes (*.zsh-theme) are present | |
cd $HOME/.oh-my-zsh/themes | |
for theme in $(ls | sed s'/.zsh-theme$//'); do | |
ZSH_THEME=$theme xterm -hold -bc -geometry 120x30 -bg #333 -fg #999 -e "echo $theme; cd ~/.oh-my-zsh; zsh" &; | |
done |
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
# Based on gnzh theme | |
# load some modules | |
autoload -U colors zsh/terminfo # Used in the colour alias below | |
colors | |
setopt prompt_subst | |
# make some aliases for the colours: (coud use normal escap.seq's too) | |
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do | |
eval PR_$color='%{$fg[${(L)color}]%}' |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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
upstream uwsgi { | |
ip_hash; | |
server 127.0.0.1:40000; | |
} | |
server { | |
listen 80; | |
server_name www.domain.com; | |
root /sites/mysite/; | |
access_log /sites/mysite/log/nginx/access.log; |