Skip to content

Instantly share code, notes, and snippets.

@jpgreenwald
jpgreenwald / gist:5897289
Last active December 19, 2015 04:28
OSX Defaults
defaults write com.apple.dashboard mcx-disabled -boolean YES
defaults write NSGlobalDomain AppleShowScrollBars -string "Always"
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder QLEnableTextSelection -bool true
killall Dock
#To fix Apache Benchmark (ab):
brew install pcre
#!/bin/bash
# NOTE: this is an OSX launchd wrapper shell script for Tomcat (to be placed in $CATALINA_HOME/bin)
CATALINA_HOME=/Users/username/tomcat
function shutdown() {
date
echo "Shutting down Tomcat"
$CATALINA_HOME/bin/catalina.sh stop
@jpgreenwald
jpgreenwald / gist:5178897
Created March 16, 2013 23:59
Reasonable Defaults for os x
~/.bash_profile
alias ll='ls -aFhlG'
PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
PATH="/usr/local/mysql/bin:$PATH"
alias psql='psql -d postgres'
#PS1="\[\033[G\]$PS1"
### Added by the Heroku Toolbelt