This file contains 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
# ALIASES | |
alias gitl="git log --oneline --decorate" | |
alias gits="git status -sb" | |
alias gu="git-up" | |
alias flushdns="dscacheutil -flushcache" | |
alias removesvn="find . -name .svn -print0 | xargs -0 rm -rf" | |
alias restartfinder="killall Finder && open /System/Library/CoreServices/Finder.app" | |
alias rrr="QUEUE=report_queue bundle exec rake environment resque:work" | |
alias ll="ls -alG" | |
alias show_library="chflags nohidden ~/Library/" |
This file contains 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 | |
XIBS="*.xib | |
app/*.xib | |
interfaces/*.xib | |
resources/*.xib" | |
for i in $XIBS | |
do | |
echo "Compiling `basename $i`..." | |
ibtool --compile resources/`basename -s .xib $i`.nib $i |
This file contains 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
Tweetbot for Mac Super Secret Settings | |
You will need to use the Terminal app to change these settings: | |
# these all affect the text in a DM or new tweet - the default is yes for all of them | |
defaults write com.tapbots.TweetbotMac TextAutomaticQuoteSubstitution -bool NO | |
defaults write com.tapbots.TweetbotMac TextAutoCorrect -bool NO | |
defaults write com.tapbots.TweetbotMac TextContinuousSpellChecking -bool NO | |
defaults write com.tapbots.TweetbotMac TextAutomaticTextReplacement -bool NO |
This file contains 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
/* top and bottom */ | |
background: | |
linear-gradient(hsla(0,0%,100%,0) 15px, white 40px), | |
linear-gradient(to top, hsla(0,0%,100%,0) 15px, white 40px) bottom; | |
radial-gradient(at 50% 0, rgba(0,0,0,.2), transparent 70%), | |
radial-gradient(at 50% 100%, rgba(0,0,0,.2), transparent 70%) bottom; | |
background-repeat: no-repeat; | |
background-size: 100% 50%, 100% 50%, 100% 14px, 100% 14px; | |
background-attachment: local, local, scroll, scroll; |
This file contains 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
.section { | |
width: 700px; | |
padding: 1em calc(50% - 350px); | |
} |
This file contains 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
.lightbox { transition: 1s width, 1s 1s height; } | |
.lightbox.current { transition: 1s height, 1s 1s width; } |
This file contains 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
/* lined paper example */ | |
line-height: 1.2; | |
background-image: linear-gradient(rgba(0,0,0,.3) 1px, transparent 1px); | |
background-size: 100% 1.2em; | |
background-position: 0 .8em; | |
background-origin: content-box; | |
padding: 1em; | |
/* code editor example */ | |
line-height: 1.5; |
This file contains 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
diff --git a/bin/riak b/bin/riak | |
index 2936025..54f801b 100755 | |
--- a/bin/riak | |
+++ b/bin/riak | |
@@ -4,12 +4,19 @@ | |
# installed by node_package (github.com/basho/node_package) | |
-# Pull environment for this install | |
-. "$(cd ${0%/*} && pwd)/../lib/env.sh" |
This file contains 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
diff --git a/lib/env.sh b/lib/env.sh | |
index 17d6ee0..35cfe12 100755 | |
--- a/lib/env.sh | |
+++ b/lib/env.sh | |
@@ -15,10 +15,16 @@ if [ `uname -s` = 'SunOS' -a "${POSIX_SHELL}" != "true" ]; then | |
fi | |
unset POSIX_SHELL # clear it so if we invoke other scripts, they run as ksh as well | |
-RUNNER_SCRIPT_DIR=$(cd ${0%/*} && pwd) | |
+if [ -L $0 ]; then |
This file contains 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
diff --git a/bin/riak-admin b/bin/riak-admin | |
index 4235002..d18a234 100755 | |
--- a/bin/riak-admin | |
+++ b/bin/riak-admin | |
@@ -3,7 +3,7 @@ | |
# ex: ts=4 sw=4 et | |
# Pull environment for this install | |
-. "$(cd ${0%/*} && pwd)/../lib/env.sh" | |
+. "$(cd ${0%/*} && pwd)/$(dirname $(readlink $0))/../lib/env.sh" |