This file contains hidden or 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 | |
# This script is intended to be used as a replacement for vglrun -d ? program - the display is auto selected | |
# it can also be included in a game launcher script to automatically get virtualgl if needed and fix LD_PRELOAD order issues with Steam games | |
# if you have a preffered GPU put name here as it appears on glxinfo renderer string - a partial string is fine if it matches more than one | |
# GPU the result will be randomly selected | |
PREFFERED_CARD="GTX 650 Ti" | |
# ------------------------------------------------------------------------------------------------------------------------------------ | |
# This portion of the script checks libdlfaker.so and libvglfaker.so are at the END of the LD_PRELOAD string |
This file contains hidden or 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 | |
# Get a list of sessions from loginctl - filtered to ones with a DISPLAY set then filter DISPLAY number | |
DISPLAYS=$(loginctl list-sessions | grep -v "SESSION" | grep -v "listed" | tr -s " " | sed '/^$/d' | cut -d " " -f2 | xargs loginctl show-session | grep "Display=" | cut -d "=" -f 2) | |
# Iterate found list of DISPLAYS - attempt to determine which are GLX capable, add them to the GLX_DISPLAYS list when found | |
for CUR_DISPLAY in $DISPLAYS; do | |
if [ "$( DISPLAY=$CUR_DISPLAY glxinfo 2>&1 | grep "Error:" )" = "" ]; then | |
HAS_GLX="HASGLX" | |
else | |
HAS_GLX="NOGLX" |
This file contains hidden or 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
#/etc/systemd/system/bluetoothbulb_connector.service | |
[Unit] | |
Description=BluetoothBulbConnector | |
After=network.target | |
[Path] | |
PathExists=/run/user/1000 | |
[Install] | |
WantedBy=multi-user.target |
This file contains hidden or 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
/* | |
RCSwitch - Arduino libary for remote control outlet switches | |
Copyright (c) 2011 Suat Özgür. All right reserved. | |
Contributors: | |
- Andre Koehler / info(at)tomate-online(dot)de | |
- Gordeev Andrey Vladimirovich / gordeev(at)openpyro(dot)com | |
- Skineffect / http://forum.ardumote.com/viewtopic.php?f=2&t=46 | |
- Dominik Fischer / dom_fischer(at)web(dot)de | |
- Frank Oltmanns / <first name>.<last name>(at)gmail(dot)com |
This file contains hidden or 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 | |
# Function to translate camera serial into zoneminder monitor id | |
function serialToID() { | |
MONITORID=0 | |
if [ "$1" == '"383c49531157b1b1"' ]; then | |
MONITORID=9 | |
fi | |
echo $MONITORID | |
} | |
# Netcat persistent listen |
This file contains hidden or 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
>>>>>>>>>>>>>>>>>>>>> BIG UPDATE <<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
On zoneminder version 1.35.16 and later there is a DecodingEnabled setting for each monitor - this script is therefore of little use anymore | |
>>>>>>>>>>>>>>>>>>>>> ORIGINAL README <<<<<<<<<<<<<<<<<<<<<<<<<<<< | |
The original Zoneminder Forum thread about all this is here: | |
https://forums.zoneminder.com/viewtopic.php?f=9&t=27537&p=107235#p107235 |
This file contains hidden or 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
# Example broadcast command triggered in my case by the RPi doorbell | |
echo "doorbell" | socat - UDP-DATAGRAM:255.255.255.255:12345,broadcast |
This file contains hidden or 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
future==0.18.2 | |
mysql-connector==2.2.9 | |
pkg-resources==0.0.0 |
This file contains hidden or 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
codes = { | |
0xFF0000 : { "Event": "RED1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF720DF","DataLSB":"0xEF04FB","Repeat":0} }, | |
0x00FF00 : { "Event": "GRN1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF7A05F","DataLSB":"0xEF05FA","Repeat":0} }, | |
0x0000FF : { "Event": "BLU1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF7609F","DataLSB":"0xEF06F9","Repeat":0} }, | |
0xFFFFFF : { "Event": "WHT", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF7E01F","DataLSB":"0xEF07F8","Repeat":0} }, | |
0xBFFF00 : { "Event": "GRN1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF7A05F","DataLSB":"0xEF05FA","Repeat":0} }, | |
0xFF9100 : { "Event": "ORG1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF708F7","DataLSB":"0xEF10EF","Repeat":0} }, | |
0xAD670A : { "Event": "ORG2", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF730CF","DataLSB":"0xEF0CF3","Repeat":0} }, | |
0x88EBE4 : { "Event": "CYA1", "IRSend": {"Protocol":"NEC","Bits":32,"Data":"0xF7B04F","DataLSB":"0xEF0DF2","Repeat":0} }, | |
0x |
This file contains hidden or 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 | |
# Name this file cleanspreadsheet.sh | |
# run as ./cleanspreadsheet.sh > data2.csv | |
echo "Mins Elapsed,DateTime,Temp C,Pressure mbar,Humidty %,BAT" | |
START_TIME="2021-10-10 17:51:24" | |
START_TIME_UNIXTIME="$(date -d "${START_TIME}" +%s)" | |
tail -n +2 data.csv | awk -F',' '{printf "%s %s,%.2f,%.2f,%.2f,%s\n",$1,$2,$3,$4,$5,$6}' | while read LN; do | |
LINE_TIME="$(echo $LN | cut -d ',' -f 1)" | |
LINE_TIME_UNIXTIME="$(date -d "${LINE_TIME}" +%s)" |
OlderNewer