View .bash_profile
1 2 3 4 5
PATH="/usr/local/bin:$PATH"
 
if [ -f `brew --prefix`/etc/bash_completion.d/git-prompt.sh ]; then source `brew --prefix`/etc/bash_completion.d/git-prompt.sh; fi # for Git completion
 
export PS1="\[\033[01;34m\]\$(rbenv version-name) \[\033[01;32m\]\w\[\033[01;35m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\$\[\033[00m\] "
View find_duplicate_adjacent_words.pl
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env perl
# Finds duplicate adjacent words.
use strict ;
my $DupCount = 0 ;
if (!@ARGV) {
print "usage: $0 <file> ...\n" ;
View gist:2894205
1 2 3 4 5 6 7 8 9 10
# go to your repository
cd my_project
 
# check your existing remote
git remote -v
# origin git@mydomain.tld:my_project.git (fetch)
# origin git@mydomain.tld:my_project.git (push)
 
# Add a new remote, a github.com private repository for example
# the --mirror flag is what's different from a simple new remote
View devise.id.yml
1 2 3 4 5 6 7 8 9 10
id:
errors:
messages:
not_found: "tidak ditemukan"
already_confirmed: "sudah di konfirmasi"
not_locked: "tidak dikunci"
 
devise:
failure:
unauthenticated: 'Anda harus mendaftar atau sign in sebelum melanjutkan .'
View .gitconfig
1 2 3 4 5 6 7 8 9 10
[user]
name = MY_NAME
email = MY_EMAIL_ADDRESS
[git-tmbundle]
gitnub-path = /Applications/GitNub.app
gitx-path = /Applications/GitX.app
show-diff-check = yes
[github]
user = GITUB_USER
token = GITHUB_TOKEN
View .screenrc
1 2 3 4 5 6 7
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
 
shell -${SHELL}
 
screen -t shell1 0
screen -t shell2 1
View install-gem-mysql.bat
1
gem install mysql --platform=ruby -- --with-mysql-include=C:\xampplite\mysql\include --with-mysql-lib=C:\xampplite\mysql\lib\opt
View .bashrc
1 2 3
# http://collectiveidea.com/blog/archives/2011/08/02/command-line-feedback-from-rvm-and-git/
#
export PS1="\[\033[01;34m\]\$(~/.rvm/bin/rvm-prompt) \[\033[01;32m\]\w\[\033[00;33m\]\$(__git_ps1 \" (%s)\") \[\033[01;36m\]\n$\[\033[00m\] "
View git-training.md

Git and Github training topics

  • What's Version Control
  • What's Git
  • Downloading and Installing Git
  • Create your local repository folder
  • Create your SSH Key
  • What's GitHub?
  • Set up your GitHub account
  • Creating a new repository
Something went wrong with that request. Please try again.