ffmpeg -i input.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
ffmpeg -i input.mp4 \
error_page 404 /assets/error-404.html;
error_page 500 /assets/error-500.html;
location / {
try_files $uri @silverstripe;
}
location @silverstripe {
fastcgi_keep_conn on;| <?php | |
| /** | |
| * Configure SilverStripe from the _ss_environment.php file. | |
| * | |
| * Edit this file and rename from _ss_environment.sample.php to _ss_environment.php. | |
| * Put "require_once('conf/ConfigureFromEnv.php');" into your _config.php file. | |
| * http://doc.silverstripe.org/framework/en/trunk/topics/environment-management | |
| */ |
# update git submodules
git submodule update --init --recursive
# this updates the submodules pointers
git submodule foreach --recursive git submodule sync # count all lines of php files
find . -name '*.php' | xargs wc -l # Get current directory size via command shell line
find . -type f -exec ls -l {} \; | awk '{sum += $5} END {print sum}' git stash save --keep-index defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock # add new tag
git tag -a v1.2 9fceb02 -m "Message here"
# delete tag localy
git tag -d v1.2
# delete tag from remote
git push origin :refs/tags/v1.2
# Or, more expressively, --delete option:
git push --delete origin v1.2| # taken from http://stackoverflow.com/questions/11289551/argument-list-too-long-error-for-rm-cp-mv-commands#answer-11289567 | |
| for f in *.zip; do | |
| # Creating a name for the new directory. | |
| new_dir="${f##*/}" | |
| new_dir="${new_dir%.*}" | |
| # Creating the directory if it doesn't already exist. | |
| mkdir -p "$new_dir" | |
| # Unzip contents of "$f" to "$new_dir" | |
| unzip -d "$new_dir" -- "$f" |