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 | |
# https://retropie.org.uk/forum/topic/2295/runcommand-warning-if-voltage-temperature-throttling | |
# https://github.com/mschlenstedt/Loxberry/issues/952 | |
#Flag Bits | |
UNDERVOLTED=0x1 | |
CAPPED=0x2 | |
THROTTLED=0x4 | |
HAS_UNDERVOLTED=0x10000 |
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
ptbtime1.ptb.de 192.53.103.108 | |
ptbtime2.ptb.de 192.53.103.104 | |
ptbtime3.ptb.de 192.53.103.103 | |
ntp0.fau.de 131.188.3.220 | |
ntp1.fau.de 131.188.3.221 | |
ntp2.fau.de 131.188.3.222 | |
time.esa.int 192.171.1.150 |
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
import paho.mqtt.client as mqtt | |
import time,os, json | |
brokerHost = "localhost" | |
def on_connect(client, userdata, flags, rc): | |
print("Connected to MQTT Broker with result code "+str(rc)) | |
client = mqtt.Client() | |
client.on_connect = on_connect |
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
version: "3.6" | |
services: | |
statping: | |
container_name: statping | |
image: adamboutcher/statping-ng:latest | |
restart: always | |
depends_on: | |
- postgres | |
ports: | |
- 8080:8080 |
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
# sudo useradd --system -s /usr/sbin/nologin iperf | |
# sudo nano /etc/systemd/system/iperf3.service | |
[Unit] | |
Description=iperf3 Server Service | |
After=syslog.target network.target auditd.service | |
[Service] | |
ExecStart=/usr/bin/iperf3 -s | |
User=iperf |
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
### | |
# https://gist.github.com/lmzdev | |
### | |
# Others | |
alias cls='clear -x' | |
alias svi='sudo vi' | |
#alias svi='sudo vim' | |
# IP command |
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 | |
# | |
### | |
# https://gist.github.com/lmzdev | |
### | |
C=`tput setaf 6` | |
NC=`tput sgr0` | |
cd ~ | |
echo |
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/sh | |
# copy to /etc/profile.d/ or /etc/update-motd.d/ | |
### | |
# https://gist.github.com/lmzdev | |
### | |
COL_PRIM=`tput setaf 78` | |
COL_SEC=`tput setaf 84` | |
COL_DARK=`tput setaf 239` | |
NC=`tput sgr0` |
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
# Source this file from your .bashrc | |
### | |
# https://gist.github.com/lmzdev | |
### | |
COL_PRIM="\[`tput setaf 4`\]" | |
COL_SEC="\[`tput setaf 42`\]" | |
COL_DARK="\[`tput setaf 239`\]" | |
COL_DANGER="\[`tput setaf 125`\]" | |
COL_UL="\[`tput sgr 0 1`\]" |
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
# This file gets sourced by .bashrc or .zshrc | |
### | |
# 2023/03 https://gist.github.com/lmzdev | |
### | |
# Optional aliases | |
alias py='python3' | |
alias clock='tty-clock -f "%d.%m.%Y" -S -c' | |
alias btop='bpytop' | |
#alias t='grc sensors' |
NewerOlder