Skip to content

Instantly share code, notes, and snippets.

View hersonls's full-sized avatar

Herson Leite hersonls

View GitHub Profile
@hersonls
hersonls / Preferences.sublime-settings
Created August 26, 2012 21:36
Personal Sublime Text 2 Settings
{
"font_size": 8,
"tab_size": 2,
"word_wrap": false,
"translate_tabs_to_spaces": true,
"rulers": [80, 120]
}
@hersonls
hersonls / lesscommand.py
Created August 3, 2012 20:09
Submlime plugin for less and css header doc
import sublime, sublime_plugin
import datetime
class Command(sublime_plugin.TextCommand):
def run(self, edit):
doc = """/*
Author: <Auhtor name>
Date: %s
Description:
*/
@hersonls
hersonls / .bashrc
Last active October 7, 2015 23:47
Show git branch on bash prompt
## My alias
# mkpass - Generate random string with 12 chars
alias mkpass='python -c "import random, string; print \"\".join(random.choice(string.ascii_letters + string.digits + \"[]\") for x in range(12))"'
## Virtualenvwrapper Settings
VIRTUALENVWRAPPER=`which virtualenvwrapper.sh`
export WORKON_HOME=$HOME/.virtualenvs
if [ -f ${VIRTUALENVWRAPPER} ]; then