Skip to content

Instantly share code, notes, and snippets.

View philipp-spiess's full-sized avatar

Philipp Spiess philipp-spiess

View GitHub Profile
//uebbayer.cpp - Übung zu den Bayer Bäumen
//Philipp Spieß
//28.05.2009
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#define MAX 4
@philipp-spiess
philipp-spiess / fan-control
Last active October 5, 2015 16:09
Fan Control for NAS
#!/bin/bash
# case is closed
echo 0 > /sys/class/hwmon/hwmon2/device/intrusion0_alarm
# space seperated list of hdd's
HDDS="/dev/sdb"
CASE_FAN=0
for disk in $HDDS
do
@philipp-spiess
philipp-spiess / statement.txt
Created June 20, 2012 15:14
Startup Live Klagenfurt Postponed
Liebe Startup Live Klagenfurt-Teilnehmer,
leider müssen wir das Startup Live Wochenende von 22.-24. Juni auf den Herbst verschieben. Grundsatz der Veranstaltung ist, Investoren bereit zu stellen, die eure Ideen nicht nur Unterstützen und euch Tipps geben, sondern auch darüber Gedanken machen, eure Idee finanziell zu unterstützen. Da uns krankheitsbedingt wertvolle Mentoren kurzfristig ausgefallen sind und wir den Anspruch haben, euch das bestmögliche Umfeld zu garantieren, haben wir uns für eine Verschiebung auf Herbst entschieden.
Der Startup Live Klagenfurt #1 wurde somit auf das Wochenende 16.-18. November 2012 verschoben.
Wir freuen uns, dass ihr eure Zeit für eure Idee investieren bereits seid und hoffen, dass ihr im Hebst mit derselben, wenn nicht mehr Motivation mit dabei seid. Nicht nur wir, sondern auch unsere Investoren und Mentoren halten ihre Tipps bereit und hoffen und freuen sich auf eure Ideen und auf das kommende Event im Herbst mit euch.
Selbstverständlich werden wir die Unkostenbeträ
@philipp-spiess
philipp-spiess / demo.json
Created November 7, 2015 08:57
API Demo
[
{
"id": "4de26e06814df7ebdc14af8b",
"name": "Vineapple Cafe",
"contact": {
"phone": "+13477991701",
"formattedPhone": "+1 347-799-1701",
"twitter": "VineappleCafe"
},
"location": {
@philipp-spiess
philipp-spiess / nginx.conf
Created November 20, 2015 00:38
RTMP2RTMP Proxy
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
live on;
meta copy;
push rtmp://live91.eu-dl.zencoder.io:1935/live/foobar;
}
# Description:
# Brauchst eh lei...
#
# Dependencies:
# None
#
# Configuration:
# None
#
# Commands:
@philipp-spiess
philipp-spiess / .rubocop.yml
Created December 17, 2015 11:16
Rubocop Config
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Metrics/LineLength:
@philipp-spiess
philipp-spiess / script.js
Created June 2, 2013 21:30
A script we use to find potential customers on the http://500px.com/popuar page.
/*
A script we use to find potential customers on the http://500px.com/popuar page.
*/
jQuery('.photo').each(function(_, data) {
var photo = jQuery(data);
var profile = photo.find('.info a').attr('href');
jQuery.get(profile, function(data) {
var user_page = jQuery(data);
var find = function(v) {
return user_page.find(v).attr('href');
@philipp-spiess
philipp-spiess / gist:e886251a3cd14adb7ee6
Created February 8, 2016 21:07
OSX Disable Auto Mounting
diskutil info /Volumes/HDD_NAME | grep "UUID"
sudo echo "UUID=12345678-1ABC-1CDE-1FGH-123456789012 none hfs rw,noauto" > /etc/fstab
@philipp-spiess
philipp-spiess / .gitignore
Last active June 23, 2016 16:23
PSPDFKit Chrome Theme
Cached Theme.pak