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
alias -- -ex=extract_archive | |
## extract files | |
extract_archive () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjfv $1 ;; | |
*.tar.gz) tar xzfv $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) rar x $1 ;; | |
*.gz) gunzip $1 ;; |
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
alias -- -ex=extract_archive | |
## extract files | |
extract_archive () { | |
if [ -f $1 ] ; then | |
case $1 in | |
*.tar.bz2) tar xjfv $1 ;; | |
*.tar.gz) tar xzfv $1 ;; | |
*.bz2) bunzip2 $1 ;; | |
*.rar) rar x $1 ;; | |
*.gz) gunzip $1 ;; |
Orientiert sich an: http://taigaio.github.io/taiga-doc/dist/setup-production.html mit Anpassungen für Uberspace
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
asdfs |
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 | |
# Usage: Make a symbolic link to this script and call then. | |
# get current script path | |
SCRIPTPATH="$(test -L "$0" && readlink "$0" || echo "$0")" | |
SCRIPTREALPATH="`readlink -f ${SCRIPTPATH}`" | |
# if readlink dosnt work | |
if [ ! -d $SCRIPTREALPATH ] ; then | |
SCRIPTREALPATH="$(dirname $SCRIPTPATH)" |
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 | |
if($argv[1] == '-d') { | |
echo "start daemon\n"; | |
while(true) { | |
if(file_exists('message.txt')) { | |
$oMessage = json_decode(file_get_contents('message.txt')); | |
if($oMessage->action == 'sayHello') { | |
echo "Hello...\n"; | |
} |
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 ruby | |
require 'rubygems' | |
require 'xmlsimple' | |
require 'date' | |
require 'fileutils' | |
require "pp" | |
time = Time.new | |
CURRENTDIR=Dir.getwd | |
ownpid=$$ |
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" encoding="UTF-8"?> | |
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"> | |
<channel> | |
<title><![CDATA[sport.de Top-News]]></title> | |
<link>http://www.sport.de/feed/579/telegramm.xml</link> | |
<description><![CDATA[Alle Top-News zu Fußball, Formel 1, Boxen, Handball, Basketball, Eishockey, Motorsport, Radsport, Tennis, Leichtathletik, Golf und Wintersport sowie den großen Sport-Events wie Welt- und Europameisterschaften und Olympischen Spielen.]]></description> | |
<pubDate>Mon, 04 Jun 2012 08:51:02 +0000</pubDate> | |
<lastBuildDate>Mon, 04 Jun 2012 08:51:02 +0000</lastBuildDate> | |
<copyright>2010 RTL interactive GmbH</copyright> |
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 | |
ini_set('display_errors', 1); | |
error_reporting (E_ALL); | |
class MyObject { | |
public $points; | |
protected $_points; |