Skip to content

Instantly share code, notes, and snippets.

View apavamontri's full-sized avatar

Anusidh Pavamontri apavamontri

View GitHub Profile
@apavamontri
apavamontri / zshrc
Created January 30, 2017 05:01
zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/apavamontri/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="powerlevel9k/powerlevel9k"
@apavamontri
apavamontri / gist:72cf6fac87cfb5d08bd6
Created October 25, 2014 00:39
Rails server launcher wasn’t found in project
Rails server launcher wasn’t found in project
When you see this info when trying to start the server (usually the button would have a red cross icon) try doing this:
1. close the project
2. remove .idea folder
3. open project
@apavamontri
apavamontri / heroku deployment to production script
Created August 1, 2014 05:43
heroku deployment to production script
echo
echo 'Heroku push to PRODUCTION...'
git push production master:master
echo
echo 'Run migration to PRODUCTION...'
heroku run rake db:migrate --app [your-heroku-app-name]
echo
echo 'Restarting PRODUCTION...'
@apavamontri
apavamontri / heroku deployment to staging script
Last active August 29, 2015 14:04
heroku deployment to staging script
#!/bin/bash
if [ -z "$1" ]
then
echo
echo "Missing branch parameter e.g. dev:master or master:master"
echo
exit 1
fi
echo
#!/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 / .rspec
Last active December 17, 2015 15:29
~/.rspec file
--color --format progress --order default
@apavamontri
apavamontri / gist:5538007
Created May 8, 2013 03:36
Uninstall Postgresql (binary install)
URL: http://stackoverflow.com/a/9240197
The following is the un-installation for PostgreSQL 9.1 installed using the EnterpriseDB installer. You most probably have to replace folder /9.1/ with your version number. If /Library/Postgresql/ doesn't exist then you probably installed PostgreSQL with a different method like homebrew or Postgres.app.
To remove the EnterpriseDB One-Click install of PostgreSQL 9.1:
Open a terminal window
Utilities->Terminal
@apavamontri
apavamontri / gist:5411229
Last active December 16, 2015 09:09
Sublime Text 3 + Base 16 Scheme + Soda Dark 3 + Custom Settings
{
"always_show_minimap_viewport": true,
"close_windows_when_empty": true,
"color_scheme": "Packages/User/base16-default.dark (SL).tmTheme",
"draw_minimap_border": true,
"fade_fold_buttons": false,
"font_face": "SourceCodePro-Light",
"font_size": 15,
"highlight_line": true,
"highlight_modified_tabs": true,
@apavamontri
apavamontri / gist:5402470
Created April 17, 2013 07:42
Import SVN repository to Git (in git-svn branch)
svn2git gem: https://github.com/nirvdrum/svn2git
Command:
svn2git [path to svn] --no-minimize-url --username [username] --verbose --notrunk --nobranches --notags
@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]