brew update brew link yasm brew link x264 brew link lame brew link xvid
brew install ffmpeg
ffmpeg wiki: https://trac.ffmpeg.org/wiki/Encode/MP3
| Bash File Testing | |
| -b filename - Block special file | |
| -c filename - Special character file | |
| -d directoryname - Check for directory Existence | |
| -e filename - Check for file existence, regardless of type (node, directory, socket, etc.) | |
| -f filename - Check for regular file existence not a directory | |
| -G filename - Check if file exists and is owned by effective group ID | |
| -G filename set-group-id - True if file exists and is set-group-id | |
| -k filename - Sticky bit |
brew update brew link yasm brew link x264 brew link lame brew link xvid
brew install ffmpeg
ffmpeg wiki: https://trac.ffmpeg.org/wiki/Encode/MP3
| #sudo sysctl -w net.inet.ip.portrange.first=32768 | |
| sudo sysctl -w net.inet.ip.portrange.first=12000 | |
| sudo sysctl -w net.inet.tcp.msl=1000 | |
| sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000 |
I've had a Python script that makes an HTML Bookmarks file for LaunchBar.
Now that I use Alfred 2, I modified it to make XML for Alfred.
This allows me to search my bookmarks with GREP SPEED!
First, add your token (from pinboard.in/settings/password) to ~/.netrc
| machine github.com | |
| login technoweenie | |
| password SECRET | |
| machine api.github.com | |
| login technoweenie | |
| password SECRET |
| Patch to `/usr/libexec/path_helper` to prevent hangs with long `PATH`s. | |
| --- path_helper_bak 2009-05-07 15:54:37.000000000 +0200 | |
| +++ path_helper 2009-06-04 10:51:39.000000000 +0200 | |
| @@ -15,7 +15,7 @@ | |
| for f in "$DIR" "$DIR".d/* ; do | |
| if [ -f "$f" ]; then | |
| for p in $(< "$f") ; do | |
| - [[ "$NEWPATH" = *(*:)${p}*(:*) ]] && continue | |
| + egrep -q "(^|${SEP})${p}($|${SEP})" <<<"$NEWPATH" && continue | |
| [ ! -z "$NEWPATH" ] && SEP=":" |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>com.demo.daemon.plist</string> | |
| <key>RunAtLoad</key> | |
| <true/> |
| #!/bin/bash | |
| mkdir -p ~/Library/Desktop\ Pictures | |
| cd ~/Library/Desktop\ Pictures | |
| find /Library/Desktop\ Pictures/ -size +1M -name "*.jpg" -exec ln -s "{}" . \; 2>/dev/null | |
| find /Library/Screen\ Savers/ -size +1M -name "*.jpg" -exec ln -s "{}" . \; 2>/dev/null |
| -- copy selected text | |
| tell application "System Events" | |
| keystroke "c" using command down | |
| end tell | |
| -- switch to nvAlt | |
| tell application "nvALT" | |
| activate | |
| tell application "System Events" | |
| keystroke "l" using command down -- Create or Search |
| # --------------------------------------------------------------------------- | |
| # | |
| # 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 |