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
#!/bin/bash | |
pidfile=/path/to/the/pidfile | |
function stopDomain { | |
echo "Sutting down domain." | |
/path/to/bin/asadmin stop-domain name | |
} | |
function startDomain { |
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 | |
// path where the files should be deleted | |
define('PATH', '/.'); | |
// delete only files older than OLDER_THAN_DAYS days | |
define('OLDER_THAN_DAYS', 14); | |
// delete only files that match MATCH_NAME | |
define('MATCH_NAME', '/some regexp/i'); | |
// do NOT actually delete the files | |
define('DRYRUN', false); | |
// sleep SLEEP_USEC microsecconds after each delete |
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
/** | |
* Ex: | |
* | |
* Object = function () {} | |
* Object.prototype = new AbstractEventsDispatcher; | |
* | |
* Object.trigger("event", arguments); | |
*/ | |
var AbstractEventsDispatcher = function () { |
NewerOlder