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 | |
# put me in /usr/bin/auto-dev-hosts | |
HOSTSDIR=/tmp/auto-dev-hosts | |
# create dir | |
install -d "$HOSTSDIR" | |
RELOADFLAG=/tmp/auto-dev-hosts.flag | |
SCRIPTNAME=$(basename "$0") |
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 | |
## | |
## save to "shell" dir and call every few hours from cron | |
## | |
## find root dir of Magento site, do not rely on current dir | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
DIR=$(dirname $DIR) | |
LOCAL_XML=$DIR/app/etc/local.xml |
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
{ | |
"_readme": [ | |
"Save this file in project root and change the capitalised placeholders.", | |
"Now run 'mkdir -p htdocs && composer install' on each server.", | |
"Optionally change 'htdocs' to something else like './'" | |
], | |
"name": "clockworkgeek/PROJECT-NAME-HERE", | |
"description": "BRIEF DESCRIPTION HERE", | |
"license": "MIT", | |
"require": { |
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
#!/usr/bin/env php | |
<?php | |
/** | |
* Place this script in your Magento root and optionally set the executable flag. | |
* | |
* chmod +x forgetSessions.php | |
* | |
* For a dry run set "DEBUG = true" below and watch all the session names go by. | |
* For cron use consider setting "OUTPUT = false" to suppress success message, | |
* only errors will be reported. |
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
/** | |
* Some built-in browser types cannot be subclassed normally. | |
* The following snippet demonstrates a perfect Date replacement. | |
* | |
* Example use: | |
* CustomDate = Class.create(BaseDate, { | |
* // custom methods here... | |
* }); | |
*/ |