This file contains 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
#!/bin/sh | |
# Feel free to create a bash alias to this file or place it in /usr/local/bin | |
# | |
# Usage: dex php to run "bash" in interactive mode on any container that contains php in it's name | |
CONTAINER="$(docker ps -f name=$1 | sed -n 2p)" | |
CONTAINER_NAME=`echo $CONTAINER | awk '{ print $NF }'` | |
# Make sure some argument is set |
This file contains 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
truncate catalog_product_flat_cl; | |
truncate catalog_category_product_index_cl; | |
truncate catalog_category_product_cat_cl; | |
truncate catalog_category_flat_cl; | |
truncate catalogsearch_fulltext_cl; | |
truncate cataloginventory_stock_status_cl; | |
truncate catalog_product_flat_cl; | |
truncate catalog_product_index_price_cl; | |
truncate enterprise_url_rewrite_category_cl; | |
truncate enterprise_url_rewrite_product_cl; |
This file contains 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
#!/bin/bash | |
# Add Vagrant's NFS setup commands to sudoers, for `vagrant up` without a password | |
# Updated to work with Vagrant 1.3.x | |
# Stage updated sudoers in a temporary file for syntax checking | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. |
This file contains 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
sudo cp /private/etc/php.ini.default /private/etc/php.ini; | |
sudo php /usr/lib/php/install-pear-nozlib.phar; | |
pear config-set php_ini /private/etc/php.ini; | |
pecl config-set php_ini /private/etc/php.ini; | |
sudo pear upgrade-all; | |
sudo pear install PHP_CodeSniffer; | |
---- | |
nano /private/etc/php.ini; | |
include_path Zeile einkommentieren & umändern in: |
This file contains 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 | |
/** | |
* Validate JSONP Callback | |
* | |
* https://github.com/tav/scripts/blob/master/validate_jsonp.py | |
* https://github.com/talis/jsonp-validator/blob/master/src/main/java/com/talis/jsonp/JsonpCallbackValidator.java | |
* http://tav.espians.com/sanitising-jsonp-callback-identifiers-for-security.html | |
* http://news.ycombinator.com/item?id=809291 | |
* |