This file contains 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
clear | |
# Grunt aliases | |
alias g="grunt" | |
alias gr="grunt" | |
alias gw="grunt watcher" | |
alias gwb="grunt watcher | node_modules/.bin/bunyan" # Runs grunt watcher with pretty formatted bunyan output | |
alias gcb="grunt concurrent | ./node_modules/.bin/bunyan" # Runs grunt concurrent task (usually nodemon and watch tasks bundled) | |
echo "Grunt aliases loaded." | |
# Nodemon aliases |
This file contains 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
<html> | |
<head> | |
</head> | |
<body> | |
<!-- The first element in the body --> | |
<script> | |
function inIframe() { | |
try { | |
return window.self !== window.top; | |
} catch (e) { |
This file contains 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 STUFF | |
GREEN=$(tput setaf 2); | |
YELLOW=$(tput setaf 3); | |
WHITE=$(tput setaf 7) | |
function git_branch { | |
# Shows the current branch if in a git repository | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \(\1\)/'; | |
} |
This file contains 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
javascript:function() { | |
var input; | |
var branch; | |
var anchorEl; | |
if(!window.jQuery){ | |
return; | |
} | |
branch = jQuery('.aui-iconfont-devtools-branch-small:eq(0)').next().attr('title') || jQuery('.aui-iconfont-devtools-branch-small:eq(0)').next().text(); |
This file contains 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
Host * | |
StrictHostKeyChecking no |
This file contains 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/bash | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
fi | |
echo Loading ssh keys... | |
for file in $(find ~/.ssh/id_rsa* ! -name '*.*'); | |
do | |
ssh-add $file | |
done |
This file contains 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/bash | |
BASHRC=http://git.io/vlaIW | |
echo Downloading .bashrc ... | |
curl -sL $BASHRC -o ~/.bashrc | |
echo ...done. Make sure to run "source ~/.bashrc" to add to this session. |
This file contains 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/bash | |
BASH_PROFILE=http://git.io/vntan | |
echo Downloading .bash_profile ... | |
curl -sL $BASH_PROFILE -o ~/.bash_profile | |
echo ...done. |
This file contains 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
rand() { | |
printf $(( $1 * RANDOM / 32767 )) | |
} | |
rand_element () { | |
local -a th=("$@") | |
unset th[0] | |
printf $'%s\n' "${th[$(($(rand "${#th[*]}")+1))]}" | |
} | |
#Default Prompt | |
PS1="${YELLOW}\w${GREEN}\$(git_branch)${WHITE}\n$(rand_element 🔥 🚀 👻 ⛄ 👾 🍔 😄 🍰 🐑 💩 😎 📛) $ "; |
This file contains 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
bash <(curl -sL http://bit.ly/bash-setup) # Initializes bash shortcuts | |
bash <(curl -sL http://bit.ly/ssh-setup) # Registers your ssh keys | |
bash <(curl -sL http://bit.ly/bash-emoji) # Adds some flare to your default prompt |
OlderNewer