Skip to content

Instantly share code, notes, and snippets.

View apavamontri's full-sized avatar

Anusidh Pavamontri apavamontri

View GitHub Profile
@apavamontri
apavamontri / gist:5283547
Created April 1, 2013 06:54
Error installing debugger-linecache in Ruby 1.9.3
gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/[ruby 1.9.3 path]
@apavamontri
apavamontri / cleanup-osx-open-with-sub-menu.sh
Created March 8, 2013 17:11
Clean up OSX "Open with" submenu
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
@apavamontri
apavamontri / gist:5028249
Last active December 14, 2015 04:29
ImportError: dlopen(/Users/[username]/.virtualenvs/polls/lib/python2.7/lib-dynload/_sqlite3.so, 2): Library not loaded: /usr/local/lib/libsqlite3.0.8.6.dylib Referenced from: /Users/[username]/.virtualenvs/polls/lib/python2.7/lib-dynload/_sqlite3.so Reason: image not found
ln /usr/local/Cellar/sqlite/3.7.15/lib/libsqlite3.0.8.6.dylib /usr/local/lib/libsqlite3.0.8.6.dylib
@apavamontri
apavamontri / app.py
Last active December 12, 2015 08:59 — forked from mattupstate/app.py
os
from flask_extended import Flask
app = Flask(__name__)
app.config.from_yaml(os.join(app.root_path, 'config.yml'))
@apavamontri
apavamontri / bash_prompt.sh
Last active December 11, 2015 06:58 — forked from insin/bash_prompt.sh
Add the current time at the beginning in purple color.
#!/bin/bash
#
# DESCRIPTION:
#
# Set the bash prompt according to:
# * the active virtualenv
# * the branch/status of the current git repository
# * the return value of the previous command
# * the fact you just came from Windows and are used to having newlines in
# your prompts.
@apavamontri
apavamontri / python-virtualenv-virtualenvwrapper-brew
Last active December 15, 2019 08:22
Install Python + virtualenv + virtualenvwrapper with brew on Mac OS X 10.8 Mountain Lion
# installation
brew doctor
brew install python
pip install virtualenv virtualenvwrapper
# Add following to .bash_profile
export PATH=/usr/local/bin:/usr/local/mysql/bin:/usr/local/share/python:$PATH:~/bin
export WORKON_HOME=$HOME/.virtualenvs
@apavamontri
apavamontri / .gitconfig
Created December 26, 2012 03:29
Git config file to use Beyond Compare 3 as Difftool in Windows
[user]
name = Anusidh Pavamontri\n
email = apavamontri@gmail.com\n
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
dt = difftool
mt = mergetool
[core]
autocrlf = true
@apavamontri
apavamontri / gist:4239429
Created December 8, 2012 09:08
Google Chrome developer tool theme
/**********************************************/
/*
/* Tomorrow Skin by Ben Truyman - 2011
/*
/* Based on Chris Kempson's Tomorrow Theme:
/* https://github.com/ChrisKempson/Tomorrow-Theme
/*
/* Inspired by Darcy Clarke's blog post:
/* http://darcyclarke.me/design/skin-your-chrome-inspector/
/*
@apavamontri
apavamontri / gist:3856717
Last active October 11, 2015 12:07
Sublime Text Windows User Settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Base16/base16-default.dark.tmTheme",
"font_face": "Droid Sans Mono",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
@apavamontri
apavamontri / remove all gem
Created August 31, 2012 04:48
Remove/uninstall all gems
gem list | cut -d" " -f1 | xargs gem uninstall -aIx