Skip to content

Instantly share code, notes, and snippets.

View Taubin's full-sized avatar

Taubin

View GitHub Profile
@Taubin
Taubin / aprs.txt
Created August 20, 2023 09:00
APRS Codes
APRS SSID Recommendations 6 Feb 2012
---------------------------------------------------------------------
Updated 6 Feb 2012 to clarify the title of this document to be
SSID RECOMMENDATIONS not to imply any kind of
decoding "standard". That original NMEA
decodign standard is covered in the original spec
Updated 9 June 2010 for more flexibility using 1,2,3,4 and 15
Revised 2 June 2004 to add -10, -11, 12 and -15
@Taubin
Taubin / filters.txt
Created July 13, 2023 22:26
Hide youtube shorts June 2023 - ublock origin
!This line removes all the shorts videos. just copy the entire contents and paste it into your extension (including the comments since they start with an exclamation point)
youtube.com##:xpath(//ytd-rich-item-renderer[descendant::span[contains(@aria-label,"Shorts")]])
!This part removes the "New Row" object. kind of like removing the new paragraph in word editors.
youtube.com##ytd-rich-grid-row, #contents.ytd-rich-grid-row:style(display:contents !important;)
!This part limits the number of videos per row. go ahead and play with the number.
@Taubin
Taubin / docker.yml
Created July 8, 2023 10:18
Matrix watchtower notification
docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
-e WATCHTOWER_NOTIFICATION_URL=matrix://username:password@domain.org/?rooms=!ROOMID:domain.org \
-e WATCHTOWER_NOTIFICATION_TEMPLATE="{{range .}}[WatchTower] ({{.Level}}): {{.Message}}{{println}}{{end}}" \
containrrr/watchtower
# This file contains common pin mappings for the BIGTREETECH SKR mini
# E3 v2.0. To use this config, the firmware should be compiled for the
# STM32F103 with a "28KiB bootloader" and USB communication. Also,
# select "Enable extra low-level configuration options" and configure
# "GPIO pins to set at micro-controller startup" to "!PA14".
# The "make flash" command does not work on the SKR mini E3. Instead,
# after running "make", copy the generated "out/klipper.bin" file to a
# file named "firmware.bin" on an SD card and then restart the SKR
# mini E3 with that SD card.
<?php
include_once $_SERVER['DOCUMENT_ROOT'].'/config/config.php'; // MMDVMDash Config
include_once $_SERVER['DOCUMENT_ROOT'].'/mmdvmhost/tools.php'; // MMDVMDash Tools
include_once $_SERVER['DOCUMENT_ROOT'].'/mmdvmhost/functions.php'; // MMDVMDash Functions
include_once $_SERVER['DOCUMENT_ROOT'].'/config/language.php'; // Translation Code
// Check if the config file exists
if (file_exists('/etc/pistar-css.ini')) {
// Use the values from the file
$piStarCssFile = '/etc/pistar-css.ini';
@Taubin
Taubin / install-rtl-sdr-ubuntu.sh
Created December 14, 2022 05:19 — forked from bilson/install-rtl-sdr-ubuntu.sh
Install script for rtl-sdr for ubuntu
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install curl git cmake libusb-1.0-0.dev build-essential
cat <<EOF >no-rtl.conf
blacklist dvb_core
blacklist dvb_usb_rtl28xxu
@Taubin
Taubin / seagate.txt
Created March 27, 2022 22:32
Seagate errors
Server:~# smartctl -a -v 1,raw48:54 /dev/sdc
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.15.30-Unraid] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Seagate BarraCuda 3.5 (SMR)
Device Model: ST8000DM004-2CX188
Serial Number: WSC07DMT
LU WWN Device Id: 5 000c50 0d598bb4b
Firmware Version: 0001
@Taubin
Taubin / ls-la.txt
Last active February 23, 2022 19:09
BAP WSJTX installation log
~/.bap-source-files/wsjtx-2.5.4 $ ls -la
total 144
drwxr-xr-x 6 pi pi 4096 Feb 24 08:04 .
drwxr-xr-x 11 pi pi 4096 Feb 24 08:04 ..
-rw-r--r-- 1 pi pi 1031 Nov 4 13:41 AUTHORS
-rw-r--r-- 1 pi pi 2644 Nov 4 13:41 BUGS
-rw-r--r-- 1 pi pi 15437 Feb 23 14:14 CMakeCache.txt
drwxr-xr-x 20 pi pi 4096 Feb 24 08:04 CMakeFiles
-rw-r--r-- 1 pi pi 1674 Feb 23 14:14 cmake_install.cmake
-rwxr-xr-x 1 pi pi 9977 Dec 31 04:24 '#CMakeLists.txt#'
@Taubin
Taubin / bookstack_docker.md
Created January 20, 2022 23:55
Unraid + Mariadb + Bookstack
docker run -d --name='bookstack' --net='proxynet' -e TZ="Pacific/Auckland" -e HOST_OS="Unraid" -e HOST_HOSTNAME="myhost" -e HOST_CONTAINERNAME="bookstack" -e 'APP_URL'='http://192.168.0.10:6875' -e 'DB_HOST'='mariadb' -e 'DB_USERNAME'='bookstack' -e 'DB_PASSWORD'='notmypass' -e 'DB_DATABASE'='bookstack_db' -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='http://[IP]:[PORT:80]' -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/bookstack-logo.png' -p '6875:80/tcp' -v '/mnt/user/appdata/bookstack':'/config':'rw' 'lscr.io/linuxserver/bookstack' 

Fix for AMD Series 1 processors

Add the disable cstate in the go file

/usr/local/sbin/zenstates --c6-disable

So the go file would look like this:

#!/bin/bash
#Start the Management Utility