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 "$@" | |
| do | |
| echo $f | while IFS= read file | |
| do | |
| filename=$(basename $file) | |
| ext=$(echo ${filename##*.} | tr "[:upper:]" "[:lower:]") | |
| if [ -f $file ] | |
| then | |
| if ( [ $ext == "png" ] || [ $ext == "jpg" ] || [ $ext == "jpeg" ] ) |
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
| ********* RemoveSymantecMacFiles.command 7.0.49 ********* | |
| WARNING: This script will remove all files and folders created by Symantec | |
| Mac OS X products (LiveUpdate Administration Utility files) and | |
| any files within those folders. Therefore, you will lose ALL files | |
| that reside in those folders, including any that you have created. | |
| Usage: RemoveSymantecMacFiles.command [-CcdeFfghIikLlmpQqRrV] [-QQ] [-re] [volume ...] | |
| Summary: If no option or volume is specified, then all Symantec files are |
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
| # ===================================================================== | |
| ## SHADY APPS FROM CHINA HOSTS | |
| ## BLOCK LIST v2.2.6 Work in Progress (May 2016) | |
| ## By Megaton | |
| # |
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 | |
| # | |
| # This is sp, the command-line Spotify controller. It talks to a running | |
| # instance of the Spotify Linux client over dbus, providing an interface not | |
| # unlike mpc. | |
| # | |
| # Put differently, it allows you to control Spotify without leaving the comfort | |
| # of your command line, and without a custom client or Premium subscription. | |
| # |
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
| Run AppleScript | |
| on run {input, parameters} | |
| set output to "https://translate.google.com/m/translate#ko/en/" & urldecode(input as string) | |
| return output | |
| end run | |
| on urldecode(x) | |
| set cmd to "'require \"cgi\"; puts CGI.escape(STDIN.read.chomp)'" | |
| do shell script "echo " & quoted form of x & " | ruby -e " & cmd |
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
| c=$(echo $@ | xargs) | |
| urlFixer='(https?|ftp|file)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]' | |
| if [[ "$c" =~ $urlFixer ]]; then | |
| open "$c" | |
| else | |
| open http://"${c//[[:space:]]}" | |
| fi |
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
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
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 | |
| for arg in "$@" | |
| do | |
| if [[ -d "$arg" ]] | |
| then | |
| find "$arg" \( -name "*.aiff" -o -name "*.mp3" -o -name "*.m4a" \) -exec afplay --rQuality 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
| # Set architecture flags | |
| export ARCHFLAGS="-arch x86_64" | |
| # Ensure user-installed binaries take precedence | |
| PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin | |
| # Setting PATH for Python 2.7 | |
| PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" | |
| export PATH | |
| # Changing the colors so the terminal isn't so bland |