Skip to content

Instantly share code, notes, and snippets.

View dayne's full-sized avatar

Dayne Broderson dayne

View GitHub Profile
#!/bin/bash
# Script to download and then install latest .deb Discord client.
# Created 2024-01-29 by Dayne Broderson
#
# Script Overview
# 1. Sends a request to the Discord URL to get the headers and extract the
# location header, which contains the final download URL.
# 2. It extracts the desired filename from the final download URL and cleans
# up any trailing whitespace or carriage return characters.
# 3. It checks if the file with the extracted filename already exists in the
@dayne
dayne / SD-Discord.md
Created October 15, 2022 23:55
Steam Deck

Installing Discord on Steam Deck

How to install Discord on Steam Deck tutorial

  • Steam Button -> Power -> Switch to Desktop
  • Discover App (Launcher -> System Discover)
    • Applications -> Internet -> Chat
    • Scroll to Discord -> Install
  • Launcher -> Internet -> Discord
    • Scan QR code to login
  • Steam Icon (bottom right) -> Library
@dayne
dayne / loraWAN.md
Created August 23, 2022 16:43
LoraWAN

Andreas Spiess

LoRa / LoRaWAN De-Mystified

LoRa: Wireless linklayer - very low bandwidth - low battery - license free band (similiar to wifi) - no license needed to build a network (thingsnetwork). There are rules (regulations).

LoRaWAN is a protocol that uses LoRa as physical layer.

3 Parts: (Low Power) (Wide Area) (Network) = LPWAN

@dayne
dayne / dots-readme.md
Created June 20, 2022 23:12
$HOME 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
@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"