I waited for years for a Homebrew formula for MOC. I finally found one today, but it didn't work for me. So I decided to try to compile it from source.
Here is a list of requirements, taken directly from the MOC README:
Pod::Spec.new do |s| | |
s.name = 'CocoaSoundCloudAPI' | |
s.version = '1.0.2' | |
s.summary = 'A simple way to interact with the SoundCloud CocoaSoundCloudAPI.' | |
s.homepage = 'https://github.com/soundcloud/CocoaSoundCloudAPI' | |
s.author = { 'Ullrich Schäfer' => '[email protected]', | |
'Robert Böhnke' => '[email protected]', | |
'Tobias Kräntzer' => '[email protected]', | |
'Rob Siwek' => '[email protected]' } |
scurl() { | |
curl "http://api.soundcloud.com/resolve.json?url=$1&client_id=[SOUNDCLOUD_API_CLIENT_ID]" 2> /dev/null | jq '.location' | awk -F '\?' '{print $1}' | sed 's/\.json$//' | sed 's/^"//' | tr -d '\n' | pbcopy | |
} |
# This is the example kepmap file for MOC. You can define your own key | |
# mappings for MOC commands by creating your own keymap file and setting | |
# the 'Keymap' option in ~/.moc/config. | |
# | |
# The format of this file is: | |
# | |
# - Lines beginning with # are comments. | |
# - Blank lines are ignored. | |
# - Every other line is expected to be in format: | |
# |
# Only show Tweets with links in them | |
Earthquake.init do | |
output_filter do |item| | |
if item["_stream"] && item["text"] | |
item["text"] =~ /https?:\/\//i | |
else | |
true | |
end | |
end | |
end |
# Thank you Gutterslob & pvsage from #! forums! | |
# Example color theme for MOC. | |
# You can use a theme by copying it to ~/.moc/themes directory and using | |
# Theme config option or -T command line option. | |
# | |
# Fill free to make your own themes and send me them. It will be included in | |
# official MOC releases or on the MOC web site. | |
# | |
# The format of this file is: | |
# Lines beginning with # are comments. |
mail() { | |
local option="" | |
if [[ ! -z "$2" ]]; then | |
option=$2 | |
fi | |
if [[ $1 = "account1" ]]; then | |
VMAIL_HOME=~/.vmail/account1 vmail $option | |
elif [[ $1 = "account2" ]]; then | |
VMAIL_HOME=~/.vmail/account2 vmail $option |
brew install imagemagick |
KEYWORDS="FIXME:|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/" |
// | |
// Created by Robert Audi on 07/04/13. | |
// Updated on 08/21/14 | |
// | |
#import <Foundation/Foundation.h> | |
@interface NSString (RAInflections) | |
- (NSString *)slugalize; |