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/php | |
<?php | |
/** | |
* Error code when file was not found | |
*/ | |
define('EXIT_NOTFOUND', 11); | |
require_once 'Console/CommandLine.php'; |
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
<?xml version="1.0"?> | |
<!DOCTYPE MODE SYSTEM "xmode.dtd"> | |
<MODE> | |
<PROPS> | |
<PROPERTY NAME="lineComment" VALUE="//" /> | |
</PROPS> | |
<RULES> |
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 findNewestFile { | |
FN=`find /srv/www/htdocs -name "$1" -printf "%T+ %p\n" | sort -r | cut -f 2 -d " " | head -n 1` | |
echo $FN | |
} | |
# copy newest robot report config | |
RR_CONFIG=$(findNewestFile "robotreportconfig.ini") |
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 | |
# Copy Asterisk call file template and put it into the default Asterisk call file directory | |
# Doing just a "cp" may not work in some instances, hence this script | |
if [ -x "$1" ]; then | |
echo "Usage: $0 callfile_name" | |
exit | |
fi | |
if [ ! -f "$1" ]; then | |
echo "File $1 not found" |
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 Example_Customer { | |
// Some properties | |
protected $name = "Joe Schmoe"; | |
protected $street = "1st St NW"; | |
protected $city = "Washington"; | |
protected $zipcode = "20008"; | |
protected $spamLikeThereIsNoTomorrow = true; |
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
# You can copy this file to your computer with the following command: | |
# wget https://gist.github.com/raw/1082842/.gitconfig | |
[user] | |
name = Gabriel Birke | |
email = gb@birke-software.de | |
[core] | |
quotepath = false | |
[color] | |
ui = auto | |
[color "branch"] |
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
# You can copy this file to your computer with the following command: | |
# wget https://gist.github.com/raw/1267907/.alias | |
# include in your .bash_profile with "source .alias" or do the following: | |
# ln -s .alias .bash_aliases | |
alias ll="ls -al" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias pu=pushd |
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 | |
$hauptstaedte = array("Schweiz" => "Bern", | |
"Frankreich" => "Paris", | |
"Deutschland" => "Berlin", | |
"Spanien" => "Madrid"); | |
// Das geht nicht!! | |
//echo "Die Stadt heißt $hauptstaedte["Schweiz"]"; |
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
#container li { | |
line-height:18px; | |
} | |
#container li ins { | |
display: inline-block; | |
width:18px; | |
height:18px; | |
text-decoration:none; | |
background-image:url('images/d.png'); // sprite image from jsTree |
OlderNewer