View parse_austria.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
<?php | |
$infile = 'austria.csv'; | |
$outfile = 'austria.ips'; | |
$fp = fopen($outfile,'w'); | |
$handle = fopen($infile, "r"); | |
if ($handle) | |
{ | |
while (($line = fgets($handle)) !== false) { | |
$line = trim($line); |
View easybank.class.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
<?php | |
/* | |
* EasyBank.at client lib | |
* Reverse engineered by looking at the API calls of the app | |
* | |
* Example usage: | |
* | |
* <?php | |
* include_once('easybank.class.php'); |
View raspi-security.py
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
from ctypes import * | |
import math | |
import random | |
import time | |
import os | |
def sample(probs): | |
s = sum(probs) | |
probs = [a/s for a in probs] | |
r = random.uniform(0, 1) |
View raspi_preparestream.sh
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 | |
apt-get update | |
apt-get install -y git cmake autoconf bc libvpx-dev libx264-dev libjpeg-dev build-essential libtool autoconf ffmpeg #raspberrypi-kernel-headers | |
wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz -O - | tar xvzf - | |
cd live | |
./genMakefiles linux | |
sudo make CPPFLAGS=-DALLOW_RTSP_SERVER_PORT_REUSE=1 install |
View fishtank.ino
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
const int pin_all = D0; | |
const int pin_blue = D2; | |
#include <ESP8266WiFi.h> | |
const char* ssid = "your_wifi_name_here"; | |
const char* password = "your_wifi_password_here"; | |
int fade_delay = 2; //how many milliseconds between pulses (the lower, the faster the light changes) | |
//code starts here |
View grafana_crypto_dashboard.json
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
{ | |
"annotations": { | |
"list": [] | |
}, | |
"editable": true, | |
"gnetId": null, | |
"graphTooltip": 1, | |
"hideControls": false, | |
"id": 18, | |
"links": [], |
View coindata.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
<?php | |
/** | |
* Coin Dashboard by Christian Haschek | |
* https://blog.haschek.at | |
* | |
* Donations always welcome | |
* BTC: 1ChrisHMgr4DvEVXzAv1vamkviZNLPS7yx | |
* ETH: 0x1337C2F18e54d72d696005d030B8eF168a4C0d95 | |
* | |
* Read more at |
View ethpay.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
<?php | |
define('RPC_IP','127.0.0.1'); | |
define('RPC_PORT',8545); | |
require 'libs/ethereum-php/ethereum.php'; | |
$e = new EthPay(); | |
class EthPay | |
{ |
NewerOlder