sudo find . -name "*.pdf" -print0 | sudo xargs -0 rm
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
# 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" |
# 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
defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
killall Dock
git stash save --keep-index
# Get current directory size via command shell line
find . -type f -exec ls -l {} \; | awk '{sum += $5} END {print sum}'
# count all lines of php files
find . -name '*.php' | xargs wc -l
# update git submodules
git submodule update --init --recursive
# this updates the submodules pointers
git submodule foreach --recursive git submodule sync
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
<?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 | |
*/ |
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;