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
| mkdir -p {test1,test2}/{test3,test4} | |
| gives me test1/test3, test1/test4, test2/test3 and test2/test4 | |
| mkdir -p {test1,test2}/{test3,test4/{test5,test6}} |
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
| FILENAME=/Users/apple/Desktop/`date "+%c"`.jpg | |
| #echo $FILENAME | |
| /Users/apple/Downloads/ImageSnap-v0.2.5/imagesnap "$FILENAME" |
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
| /* ------------------------------------------------- | |
| SIMPLENOTE IN YOUR MENUBAR / FLUID.APP USERSTYLES | |
| Than Tibbetts | |
| http://thanland.com/notes/put-simplenote-in-your-menubar-with-fluid | |
| ------------------------------------------------- */ | |
| .wrapper { top: 20px !important; height: 92%; } | |
| .sidebar { float: left; width: 100% !important; height: 50%; background: none !important; border-right: none !important; border-bottom: 2px solid rgba(0, 0, 0, 0.398438); border-bottom-left-radius: 0 !important; } |
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
| tell application "Finder" | |
| get bounds of window of desktop | |
| end tell | |
| --> Result: {0, 0, 1440, 900} | |
| --> Source: http://stackoverflow.com/questions/11488126/get-bounds-of-desktop-with-applescript |
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
| ----- F_LB-Display POSIX Path in Large Type ----- | |
| tell application "Finder" | |
| set the_selection to the selection | |
| set item_1 to item 1 of the_selection | |
| set current_path to (POSIX path of (item_1 as alias)) | |
| set the clipboard to current_path | |
| set heading to "POSIX Path Copied to Clipboard" & return & "——————————————" & return | |
| end tell |
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
| growlnotify -n "Jekyll" -s -t "Jekyll" -m "#{msg}" |
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
| osascript -e 'tell app id "com.Growl.GrowlHelperApp" to close all notifications' |
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="da" lang="en"> | |
| <head> | |
| <title>Login</title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| function CheckPassword() { |
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
| /usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g' |
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 href_value to value of XML attribute "href" of XML element "foo" |