Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
@dayne
dayne / readme.md
Last active January 11, 2022 11:51
tmux-launcher | simply on reboot tmux session launches

Simple tmux-launcher.sh for a script or command that can check to see if the session name exists yet or not before launching.

Put somewhere, like $HOME/.local/bin

Use it like this: crontab -e

@reboot $HOME/.local/bin keyword scriptname
@dayne
dayne / readme.md
Created November 7, 2020 22:40
home dir as git

Managing your home's dot files as git repo an approach well documented by @durdn.

initial setup

git init --bare $HOME/.cfg
alias cfg='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
cfg config --local status.showUntrackedFiles no
echo ".cfg" >> .gitignore
$ENV:PATH="$ENV:PATH;C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64"
cd C:\Users\$ENV:UserName\Downloads
javaw -jar .\OptiFine_1.16.3_HD_U_G3.jar
@dayne
dayne / setup notes
Created August 17, 2020 20:57
streamsheets
https://github.com/cedalo/streamsheets#installation
```
mkdir ~/streamsheets
docker run -v ~/streamsheets:/streamsheets cedalo/streamsheets-installer:1.5-linux
cd ~/streamsheets
./start
```
http://localhost:8081
@dayne
dayne / radar-setup.md
Created December 4, 2019 03:30
radar setup notes

secure pi

  • change password
  • change hostname

stuff

  • enable node-red autostart
  • install mosquitoo
  • rtl2mqtt

install docker

@dayne
dayne / t3-screen-hotfix.sh
Last active November 18, 2019 22:55
t3 screen hotfix
#!/bin/bash
REP_FILE='/usr/share/dispsetup.sh'
AUTOLAUNCH='/etc/xdg/lxsession/LXDE-pi/autostart'
echo "T3 screen hotfix script starting"
sleep 1
if [ -f $REP_FILE.orig ]; then
echo "found $REP_FILE.orig - skipping application of t3 screen hot fix"
@dayne
dayne / keybase.md
Created October 31, 2019 21:20
keybase.md

Keybase proof

I hereby claim:

  • I am dayne on github.
  • I am dayne (https://keybase.io/dayne) on keybase.
  • I have a public key ASCfAqF-4Z-fxbKwHA0wf9GBKcDe22Q-2iXzNtHubFZJRQo

To claim this, I am signing this object:

@dayne
dayne / modzer0-discord-coc.md
Last active August 27, 2019 03:26 — forked from didichanoch/sample-discord-coc.md
ModZer0 discord code of conduct

ModZer0 Discord Server Code of Conduct

Welcome!

The ModZer0 Discord Server is for the Mod0 community and associates to come together to chat, game, and stay connected. You can consider this code of conduct to be the same for the ModZer0 Minecraft and other shared gaming servers.

The current admins are:

  • Ferrio
@dayne
dayne / lorawan-readme.md
Last active September 11, 2019 19:25
lorawan notes

Great introduction to LoRaWAN by Andreas Spiess: LoRaWAN De-Mystified

LoRa is a Low Power Wide Area Network (LPWAN).

  • Network - Multiple devices communicating between each other
  • Wide Area - Longer range than WiFi (and less power) and much longer range than Bluetooth
  • Low Power - Comes at cost of bandwidth

Not a replacement for wifi. Great for low bandwidth sensor networks.

[{"id":"f60f0a99.5906c8","type":"Bme280","z":"fba67b76.39a018","name":"","bus":"1","address":"0x76","topic":"bme280","extra":false,"x":400,"y":60,"wires":[["377e604a.4c94e","b74f0f92.d5eb9","b834c5cf.3c4288"]]},{"id":"b9c6f89.10e1908","type":"debug","z":"fba67b76.39a018","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":80,"wires":[]},{"id":"384a3755.8e8a88","type":"inject","z":"fba67b76.39a018","name":"trigger every 2 seconds","topic":"","payload":"","payloadType":"date","repeat":".1","crontab":"","once":false,"onceDelay":"2","x":170,"y":120,"wires":[["f60f0a99.5906c8"]]},{"id":"377e604a.4c94e","type":"change","z":"fba67b76.39a018","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.temperature_C","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":160,"wires":[["b9c6f89.10e1908","74c6eeea.4f6cd"]]},{"id":"74c6eeea.4f6cd","type":"ui_chart","z":"fba67b76.39a018","name":"","group":"400dc1b.dc7e04","order":0,"w