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 | |
SVC_NAME='"LiFePo4weredPI"' | |
MPREF="$(hostname)" | |
OUT_STATUS='0' | |
OUT_TEXT="External power active" | |
lifepo4wered-cli get > /dev/null 2>&1 | |
if [ ! $? -eq 0 ] |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Robin | |
* Date: 09.04.2018 | |
* Time: 14:23 | |
*/ | |
class HTTPAPI | |
{ |
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
/** | |
* Takes a AutoScan as input and gives back an array with infos | |
* @param $path | |
* @return array The data [ECU#, PartNo, ComponentVersion] | |
* @note This code is part of vag-flashinfo.de ;) | |
*/ | |
public static function processVCDSFile($path) { | |
$vcdsData = []; |
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
/** | |
Apache configured via mod_fcgi default. No special config | |
**/ | |
$padSize = ini_get('output_buffering'); | |
header("Content-Type: text/event-stream"); | |
header("Cache-Control: no-cache"); | |
ob_implicit_flush(true); // flush auto |
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 | |
RVER=$1 | |
if [ "$RVER" == "" ]; then | |
echo "No R version specified" | |
exit 1 | |
fi | |
echo "Killing sessions..." |
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 | |
$pkgs = []; | |
$libs = 'R/x86_64-pc-linux-gnu-library'; | |
chdir('/home'); | |
$users = glob('*.*'); |
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 | |
HTTPADDR=http://rstudio-webpage/ | |
HELPADDR=http://helppage/ | |
#Skeleton to use (put Renviron in there for example | |
SKEL=/opt/ruser-skel | |
MAILSENDER=rsupport@domain.tld |
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 | |
class VaillantAPI | |
{ | |
private $_ch; | |
private $_lastCurlError; | |
private $_lastCurlInfo; | |
private $_lastCurlErrno; | |
private $_proxyPort; |
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 <SPI.h> | |
#include <lmic.h> | |
#include <hal/hal.h> | |
int waitForSerial = 10000; //10s | |
unsigned long currentMillis = 0; | |
/** | |
################################################ LoRa stuff | |
*/ |
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 | |
## eDAL! Helper | |
## add to crontab like: | |
## eDAL | |
##@reboot edal /opt/runedal.sh | |
## | |
## IMPORTANT! |
NewerOlder