This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # git alias to initialize and create an initial GitHub repository | |
| # git init | |
| # touch README | |
| # git add . | |
| # git commit -m 'first commit' | |
| # git remote add origin git@github.com:<account>/<name> | |
| # git push origin master | |
| git config --global alias.prep '!sh -c "echo \"GitHub Account:\"" && read ACCOUNT && echo "GitHub Repo Name:" && read REPONAME && mkdir $REPONAME && cd $REPONAME && git init && touch README.textile && git add . && git commit -m "first commit" && git remote add origin git@github.com:$ACCOUNT/$REPONAME.git && git push origin master' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # [alias] | |
| # ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore | |
| git config --global alias.ignore '!([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Searches for the argument as a file name accross the file system returning the file name found | |
| mdfind $1 | xargs -0 basename |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // got object id (page, user, etc.) | |
| // connect to facebook | |
| // get notes on object id | |
| // foreach note | |
| // get subject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git init | |
| touch README | |
| git add . | |
| git commit -m 'first commit' | |
| #git remote add origin git@github.com:<account>/<name> | |
| #git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In CodeIgniter 1.7.2 | |
| // - The controller | |
| // o Loading my Css library | |
| // ---------------------------- | |
| $this->load->library( 'css' ); | |
| // - The view | |
| // o In constructor | |
| // - Get CodeIgniter instance | |
| // ------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // In CodeIgniter 1.7.2 | |
| // - The controller | |
| // o Loading my Xhtml library | |
| // ---------------------------- | |
| $this->load->library( 'xhtml' ); | |
| // - The view | |
| // o In constructor | |
| // - Get CodeIgniter instance | |
| // ------------------------------ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [alias] | |
| ignore = !([ ! -e .gitignore ] && touch .gitignore) | echo $1 >>.gitignore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git config --global alias.make '!sh -c "echo \"Project:\" && read PROJECT && mkdir $PROJECT && cd $PROJECT && git init && touch README.md && git add README.md && git commit -m \"Initial commit\" && git remote add git@github.com:Cyb3rNet/$PROJECT.git && git push origin master"' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Prompt | |
| # ###### | |
| parse_git_branch() { | |
| git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[git:\1]/' | |
| } | |
| export PS1=" \n\[\e[;32m\]$ \[\e[;33m\]\d \t \[\e[1;35m\] \$(parse_git_branch) \n\[\e[;32m\]$ \[\e[1;31m\]\u\[\e[;32m\]@\H \[\e[0;34m\]\w\[\e[;32m\]\n$ \[\e[m\]" |
NewerOlder