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 | |
# /etc/init.d/xvfb_daemon | |
# Debian-compatible Xvfb startup script. | |
# Tom Meier <[email protected]> | |
# Jeffery Fernandez <[email protected]> | |
# | |
### BEGIN INIT INFO | |
# Provides: xvfb_daemon | |
# Required-Start: $remote_fs $syslog $network | |
# Required-Stop: $remote_fs $syslog $network |
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 | |
# TODO: http://wiki.debian.org/LSBInitScripts | |
DESC="Selenium server" | |
RUN_AS=root | |
JAVA_BIN=/usr/bin/java | |
SELENIUM_DIR=/etc/selenium | |
PID_FILE="$SELENIUM_DIR/selenium.pid" |
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 | |
# | |
# This is a helper script to trigger the build of a debian package for a | |
# project which is in Git SCM and integrated via Jenkins CI | |
# | |
# The trigger used for the package build is a string "bump for release" | |
# which is part of the commit message for the Git repository. | |
# | |
# The Changelog is then parsed to obtain the release version and then | |
# the repository is exported for package building |
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 | |
class GeoLocator | |
{ | |
/** | |
* @var string | |
*/ | |
public static $tableGeoPostcodeSuburbState = 'geoAustralianLocations'; |
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 -e | |
#### | |
# Helper script to update the Last modified timestamp of files in a Git SCM | |
# Projects working Copy | |
# | |
# When you clone a Git repository, it sets the timestamp of all the files to the | |
# time when you cloned the repository. | |
# | |
# This becomes a problem when you want the cloned repository, which is part of a | |
# Web application have a proper cacheing mechanism so that it can re-cache files |
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 | |
/** | |
* Usage: | |
* pdepend --jdepend-xml=/tmp/jdepend.xml /path/to/source | |
* | |
* ./dependencies.php /tmp/jdepend.xml -o /tmp/jdepend.svg | |
*/ | |
class Dependencies | |
{ |
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 | |
/** | |
* Usage: | |
* pdepend --summary-xml=/tmp/summary.xml /path/to/source | |
* | |
* ./inspekt.php /tmp/summary.xml --metric0 | |
*/ | |
class Inspect | |
{ |
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 | |
/** | |
* Analyzes the output of an XDebug script trace | |
* | |
* The original version can be found here: | |
* http://svn.xdebug.org/cgi-bin/viewvc.cgi/xdebug/trunk/contrib/tracefile-analyser.php?root=xdebug | |
* | |
* This version was created to work in PHP 5.2 | |
*/ |
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 | |
for repo in `zypper repos --uri | tail -n+3 | awk -F ' ' '{ print $1 }'` | |
do | |
zypper se -sir "$repo" | |
echo | |
echo | |
done |
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
function add_dom_javascript(scriptFile, callBackFunction, callBackParams) | |
{ | |
var fileAdded = false; | |
var script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.src = scriptFile; | |
if ( (callBackFunction) && (arguments.length >= 2) ) | |
{ |
OlderNewer