Skip to content

Instantly share code, notes, and snippets.

View Phhere's full-sized avatar

Philipp Helo Rehs Phhere

  • HHU Düsseldorf
  • Düsseldorf, Germany
View GitHub Profile
@Phhere
Phhere / graph_aggegated.diff
Created April 27, 2016 12:20
Observium graph definition for aggregated graph of sensor group
Index: html/includes/graphs/generic_multi_aggregated.inc.php
===================================================================
--- html/includes/graphs/generic_multi_aggregated.inc.php (Revision 0)
+++ html/includes/graphs/generic_multi_aggregated.inc.php (Arbeitskopie)
@@ -0,0 +1,141 @@
+<?php
+
+/**
+ * Observium
+ *

Keybase proof

I hereby claim:

  • I am phhere on github.
  • I am phhere (https://keybase.io/phhere) on keybase.
  • I have a public key whose fingerprint is E96D 53BA C571 3421 5518 3C74 4AA1 60A7 33CB 0F5E

To claim this, I am signing this object:

#! /usr/bin/env python2
import sys
import datetime
import subprocess
import os
networks = ['eduroam','HHUD-W']
interface = 'wlp3s0'
logFile = '/var/log/wlan.txt'
wifiLogFile = '/var/run/wifi'
@Phhere
Phhere / views.py
Created August 16, 2012 21:36
add_url überschreiben
@login_required
def add_url(request):
url = request.POST['url']
if url == '':
raise ValidationError("url must not be empty")
if url.find("youtube"):
test_str = subprocess.check_output("youtube-dl","-g", url)
if test_str.find("http://"):
UserSong(owner=request.user, url=test_str).save()
else
#!/bin/bash
SOURCE_FILE=`ls *.c`
COUNT=$(echo "$SOURCE_FILE" | wc -w)
if [ $COUNT=0 ]; then
echo "Source File: $SOURCE_FILE"
gcc -o carcassonne $SOURCE_FILE
for ((i=1;i<=14;i++))
do
echo "Beispiel $i"
./carcassonne play "Tests/beispiel_$i/karten.txt" > /dev/null