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
| $ rm ~/hs_err_pid*.log |
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/bash | |
| echo -e "\033[0mCOLOR_NC (No color)" | |
| echo -e "\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK" | |
| echo -e "\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE" | |
| echo -e "\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN" | |
| echo -e "\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN" | |
| echo -e "\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED" | |
| echo -e "\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE" | |
| echo -e "\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW" |
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
| for f in *.png; do; mv "$f" "`tr [:lower:] [:upper:] <<< "${f%.*}"`.png"; done |
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/bash | |
| LOCAL=$1 | |
| REMOTE=$2 | |
| MERGE=origin/master | |
| echo -e "\n\e[1;37mCreate new merge branch \e[1;34m$LOCAL\e[1;37m from '\e[0;32m$REMOTE\e[0m'\n" | |
| git checkout -b $LOCAL $REMOTE | |
| # get local and remote hashes |
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
| echo -e "\033[0mCOLOR_NC (No color)\n\033[1;37mCOLOR_WHITE\t\033[0;30mCOLOR_BLACK\n\033[0;34mCOLOR_BLUE\t\033[1;34mCOLOR_LIGHT_BLUE\n\033[0;32mCOLOR_GREEN\t\033[1;32mCOLOR_LIGHT_GREEN\n\033[0;36mCOLOR_CYAN\t\033[1;36mCOLOR_LIGHT_CYAN\n\033[0;31mCOLOR_RED\t\033[1;31mCOLOR_LIGHT_RED\n\033[0;35mCOLOR_PURPLE\t\033[1;35mCOLOR_LIGHT_PURPLE\n\033[0;33mCOLOR_YELLOW\t\033[1;33mCOLOR_LIGHT_YELLOW\n\033[1;30mCOLOR_GRAY\t\033[0;37mCOLOR_LIGHT_GRAY" |
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
| VERSION=${VERSION} | |
| LOCAL=/path/to/ff/folder | |
| FILE=firefox-{VERSION}.tar.bz2 | |
| #URL=ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/{VERSION}/linux-x86_64/en-US/{FILE} | |
| URL=https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/{VERSION}/linux-x86_64/en-US/{FILE} | |
| ## change this | |
| PATH=/path/to/browsers/{VERSION}/firefox/firefox-bin | |
| cd {LOCAL} | |
| wget {URL} |
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
| your_total_commits_on_branch_and_project() { | |
| total=$(git log --author="$1" --pretty=oneline --no-merges | wc -l) | |
| branch=$(git rev-parse --abbrev-ref HEAD) | |
| project=$(git remote -v | head -n1 | sed -e 's/^[a-z]*.[http|ftp|ssh]*\:\/\/[a-Z]*\///' | sed -e 's/ ([fetch]*)//') | |
| echo -e "\033[1;32m$1\033[0;32m has \033[1;32m$total\033[0;32m commits, on branch \033[1;32m$branch\033[0;32m, for project \033[1;32m$project\033[0m" | |
| } |
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 log --format='%an' --no-merges ./ | tr '[:upper:]' '[:lower:]' | sort | uniq -c | sort -rn | less |
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
| s = status -s |
OlderNewer