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
<? | |
class DanskeBank { | |
private $_magicKey; | |
private $_curlHandle; | |
public function __construct() | |
{ | |
$this->_curlHandle = curl_init(); | |
$data = array( | |
'os' => 'Android', //hmmf tried with php_uname('s') but then the service rejects logins | |
'model' => php_uname('m'), |
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 | |
SITES="dr.dk 1.1.1.1 8.8.8.8 google.com aau.dk tv2.dk" | |
ERRORSUM=0 | |
for i in $SITES | |
do | |
ping -q -i 10 -c 10 ${i} & | |
done |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
"strings" |
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
import RPi.GPIO as GPIO | |
import time | |
from threading import Timer | |
import subprocess | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(11, GPIO.IN) | |
timer = False | |
monitor_is_on = 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
#include "FastLED.h" | |
FASTLED_USING_NAMESPACE | |
#define DATA_PIN 10 | |
//#define CLK_PIN 4 | |
#define LED_TYPE WS2812B | |
#define COLOR_ORDER GRB | |
#define NUM_LEDS 6 | |
CRGB leds[NUM_LEDS]; |
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
<? | |
class DBA { | |
/** | |
example params: | |
'q' => 'yamaha mixer', | |
'ps' => 20, | |
'pn' => 1, | |
'f' => 'json', | |
'filters' => 1 | |
*/ |
OlderNewer