The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
#!/bin/bash | |
for i in *.m4a; do | |
ffmpeg -i "$i" -codec:a libmp3lame -qscale:a 2 `basename "$i" .m4a`.mp3 | |
done |
for name in *; do mv "$name" "${name// /_}"; done |
#!/bin/bash | |
find . -name '*.mp3' -exec afplay '{}' \; |
<?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; |
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({ |
# sha256 | |
shasum -a 256 <file> | |
# sha1 | |
shasum -a 1 <file> | |
# md5 | |
md5 <file> |
# python | |
python -m SimpleHTTPServer 8080 | |
# php | |
php -S localhost:8080 |
# 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 |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |