The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| echo "/usr/local/bin/fish" | sudo tee -a /etc/shells | |
| chsh -s /usr/local/bin/fish |
| sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
| # window animation | |
| defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO | |
| # mail.app animation | |
| defaults write com.apple.Mail DisableReplyAnimations -bool YES | |
| defaults write com.apple.Mail DisableSendAnimations -bool YES | |
| # mission control animation | |
| ## disable | |
| defaults write com.apple.dock expose-animation-duration -int 0 |
| # python | |
| python -m SimpleHTTPServer 8080 | |
| # php | |
| php -S localhost:8080 |
| # sha256 | |
| shasum -a 256 <file> | |
| # sha1 | |
| shasum -a 1 <file> | |
| # md5 | |
| md5 <file> |
| var React = require('react'); | |
| var ReactDOM = require('react-dom'); | |
| var ReactRouter = require('react-router'); | |
| var useRouterHistory = ReactRouter.useRouterHistory; | |
| var History = require('history'); | |
| var createHashHistory = History.createHashHistory; | |
| var histories = useRouterHistory(createHashHistory)({ queryKey: false }); | |
| var Link = ReactRouter.Link; | |
| module.exports = React.createClass({ |
| <?php | |
| /** | |
| * ProcessWire (2.5) InputfieldFile front-end upload form example | |
| * Various workarounds to get it working with Errors for WireUpload | |
| * and removing files upload after error | |
| */ | |
| $sent = false; | |
| $upload_path = $config->uploadTmpDir; |
| #!/bin/bash | |
| find . -name '*.mp3' -exec afplay '{}' \; |
| for name in *; do mv "$name" "${name// /_}"; done |