Skip to content

Instantly share code, notes, and snippets.

View armno's full-sized avatar
🎯
Focusing

Armno P. armno

🎯
Focusing
View GitHub Profile
@armno
armno / gist:9318657
Created March 3, 2014 04:57
mac apps
- apps in app store
- iterms
- brew
- git
- zsh & oh-my-zsh
- vim
- sublime-text
- adobe cc
- xcode with command line tools
- spectacle
@armno
armno / gist:9678129
Last active August 29, 2015 13:57
change author name and email for old commits
# updated: i'm always fucked up with this command.
# from http://stackoverflow.com/questions/750172/how-do-i-change-the-author-of-a-commit-in-git
# or better, use this shell script from GitHub https://help.github.com/articles/changing-author-info
git filter-branch -f --env-filter "GIT_AUTHOR_NAME='<newname>'; GIT_AUTHOR_EMAIL='<newemail>'; GIT_COMMITTER_NAME='<oldname>'; GIT_COMMITTER_EMAIL='<oldemail>';" HEAD
@armno
armno / php-pdo.php
Created March 15, 2012 18:04
Simple Data Insertion using PHP PDO
<?php
$hostname = 'localhost';
$username = 'root';
$password = 'root';
try {
$dbh = new PDO("mysql:host=$hostname;dbname=prod", $username, $password);
echo 'Connected to database';
@armno
armno / gist:2760611
Last active October 5, 2015 05:58
.bash_profile/.bashrc
# rewrite prompt prefix
PS1=''
# from nettuts
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
@armno
armno / .vimrc
Last active October 6, 2015 01:07
my .vimrc for gvim and (maybe) macvim at home
" no compatible with VI
set nocompatible
" start pathogen
execute pathogen#infect()
" Look and Feel
syntax on
colorscheme Tomorrow-Night
set guifont:Inconsolata\ for\ Powerline:h20
@armno
armno / todo-after-install-ubuntu.md
Last active October 12, 2015 13:57
Things to do after I install Ubuntu
@armno
armno / packages-list.md
Last active October 13, 2015 09:17
Sublime Text 2 Packages
@armno
armno / armno.zsh-theme
Last active December 13, 2015 18:59
my zsh them
PROMPT='$fg_bold[red]~: $fg[yellow]$(get_pwd) $(git_prompt_info)
$reset_color➜ '
function get_pwd() {
echo "${PWD/$HOME/~}"
}
ZSH_THEME_GIT_PROMPT_PREFIX="$reset_color$fg[green]["
ZSH_THEME_GIT_PROMPT_SUFFIX="]"
ZSH_THEME_GIT_PROMPT_DIRTY="$fg_bold[red]+$reset_color$fg[green]"
@armno
armno / Preferences.sublime-settings
Last active December 19, 2015 11:09
My Sublime Text (3) User Settings
{
"bold_folder_labels": true,
// "theme": "Spacegray.sublime-theme",
"caret_style": "phase",
"detect_slow_plugin": false,
"fade_fold_buttons": false,
"folder_exclude_patterns":
[
".svn",
".git",
@armno
armno / vim-plugins.md
Last active December 19, 2015 14:59
Vim plugins