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 lastd='echo ~/Downloads/$(ls -t ~/Downloads/ | head -n 1)' |
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
| #-------------------------------------------------------- | |
| # Simple search and replace utility for git repositories. | |
| # @note Use w/ GNU sed. | |
| # (c) Nathan Nobbe 2014 | |
| # quickshiftin@gmail.com | |
| # http://quickshiftin.com | |
| # $1 - Search | |
| # $2 - Replace | |
| # $3 - Subdirectory (optional, defaults to cwd) | |
| #-------------------------------------------------------- |
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 mysqldbs='_() { local h=""; if [ ! -z "$2" ]; then h="-h$2"; fi; echo "show databases;" | mysql -u "$1" "$h" -p; }; _' |
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
| function php_lint | |
| { | |
| for arg in $(seq $#) | |
| do | |
| # Use find to iterate over directories recursively | |
| if [ -d "${!arg}" ]; then | |
| find "${!arg}" -name '*.php' -exec php -l "{}" ";" | |
| # Just run normal files and symlinks through php -l individually | |
| elif [ -f "${!arg}" -o -h "${!arg}" ]; then | |
| php -l "${!arg}" |
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 | |
| # ----------------------------------------------------------------------------------- | |
| # jetty-hash-pass.sh | |
| # (c) Nathan Nobbe 2014 | |
| # quickshiftin@gmail.com | |
| # http://quickshiftin.com | |
| # | |
| # See the Password Issues section of the below link | |
| # http://docs.codehaus.org/display/JETTY/How+to+configure+SSL#HowtoconfigureSSL-step3 | |
| # |
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 | |
| # ----------------------------------------------------------------------------------- | |
| # pem2pkcs12.sh | |
| # (c) Nathan Nobbe 2014 | |
| # quickshiftin@gmail.com | |
| # http://quickshiftin.com | |
| # | |
| # Use this script to convert a set of apache ssl certificates to a format suitable | |
| # for Jetty. | |
| # |
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
| # update locate database, linux style | |
| alias updatedb='sudo /usr/libexec/locate.updatedb' | |
| # mdfind is the locate equivalent on OSX, | |
| # so this is probly more useful for you | |
| alias locate='mdfind -name' |
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
| _lse_filter='~|#.*#' | |
| alias lse='_() { ls -1 $1 | egrep -v $_lse_filter; }; _' |
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 | |
| alias reboot='sudo reboot && exit' | |
| alias shutdown='sudo shutdown -h now && exit' |
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 thisdir='basename "$(pwd)"' |
OlderNewer