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/env bash | |
# 2D dock | |
defaults write com.apple.dock no-glass -boolean YES | |
# highlight on mouse over | |
defaults write com.apple.dock mouse-over-hilte-stack -boolean yes | |
# spring load all dock items | |
defaults write com.apple.dock enable-spring-load-actions-on-all-items -boolean yes | |
# recent items stack | |
defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' |
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/env bash | |
sudo cp -R $1 /usr/local/mysql/data/$1 | |
sudo chown -R _mysql /usr/local/mysql/data/$1 | |
sudo chmod -R 660 /usr/local/mysql/data/$1 | |
sudo chmod 750 /usr/local/mysql/data/$1 |
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
config.action_controller.asset_host = Proc.new { |source| | |
if source.starts_with?('/javascripts') || source.starts_with?('/stylesheets') | |
nil # bundle_fu friendly | |
else | |
"http://asset%d.domain.com" % ( (source.hash % 4) ) | |
end | |
} |
NewerOlder