Skip to content
View seeds_new.rb
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
# Examples:
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
Spree::Core::Engine.load_seed if defined?(Spree::Core)
Spree::Auth::Engine.load_seed if defined?(Spree::Auth)
View .gvimrc.after
colorscheme railscasts
" hide toolbar
set guioptions-=T
" set lines=55 columns=100
set guifont=DejaVu\ Sans\ Mono:h13
set nonumber
set hidden
xnoremap p pgvy
View gitconfig
co = checkout
c = config --list
b = branch
d = diff --color
ds = diff --stat --color
s = status
l = log --graph --pretty=format:'%C(yellow)%h%Creset%C(blue)%d%Creset %C(white bold)%s%Creset %C(white dim)(by %an %ar)%Creset'
ls = log --summary --color --oneline
remove = rm --cached --ignore-unmatch
View vim macros
public void BuildReport(string gridID)
if (((DataSet)Session["DaftarLaporLebih1Kali"]).Tables.Contains(gridID))
string HTMLoutput;
String xml = ((DataSet)Session["DaftarLaporLebih1Kali"]).GetXml();
xml = "<?xml version='1.0' encoding='utf-8'?>\n" + xml;
View ajaxify-html5.js
// Prepare our Variables
History = window.History,
$ = window.jQuery,
document = window.document;
// Check to see if History.js is enabled for our Browser
View my_gvimrc
name = Fajri Fachriansyah
email =
co = checkout
c = config --list
b = branch
d = diff --color
ds = diff --stat --color
s = status
View gist:1328735
# remove file from stage
git rm --cached --ignore-unmatch <filename>
# to remove the file from the entire repo history
git filter-branch --index-filter 'git rm --cached --ignore-unmatch <filename>' HEAD
# to force update to remote repo, so the remote repo have the same history
View gist:1265203
git clone <repo-address>
git tag -l
git checkout <tag-name>
git branch -D master
git checkout -b master
View gist:1222825
git remote add <remote_name> <original-repo>
# => add remote refs named (whatever) to targeted the original repo
git fetch <remote_name>
git merge <remote_name>/<branch-name>
# => safely gathers any commits from original repo and stores them in your local repo
** if auto-merging conflict, use `git diff --color` to check/edit the files
and commit it first before push to the remote repo
View my usual git command
git init
# => initialize local repository
git add .
# => add all files/folders into the staging area
git add -A
# => add all files/folders into the staging area
# => (include the changes in the entire tree)
Something went wrong with that request. Please try again.