Skip to content

Instantly share code, notes, and snippets.

Avatar
📡
Send me a message on aprs: KM6LZF

Richard Stanley audstanley

📡
Send me a message on aprs: KM6LZF
View GitHub Profile
@audstanley
audstanley / pyscreen.py
Created December 7, 2022 01:45
my personal little linux screen controller
View pyscreen.py
import os
import re
import subprocess
from time import sleep
class Screen:
def __init__(self):
self.prog = re.compile(r'\s+([-_\w\.]+)')
self.sessions = dict()
self.checkForScreenInstallation()
View media_filter
#!/bin/bash
# run in Media folder, and removes special features.
find . | grep -E '(\.(mkv)|(avi)|(mp4))$' | grep -vE ' - t0[1-9]' | grep -vE ' - t[1-9][0-9]' | grep -vE ' - t00[0-9][1-9]' | grep -vE ' - t01[0-9][1-9]' | grep -vE '\/Ripped\/' | grep -vE '\/TV\/' | sed 's/\.\//\.\.\//g' > tvPlaylist/allMovies.m3u
@audstanley
audstanley / rebuild-postgres.sh
Created January 5, 2022 05:07
podman postgres helper for figuring things out
View rebuild-postgres.sh
#!/bin/bash
podman stop $(podman ps -a | grep 'postgres' | awk '{print $1}') && podman rm $(podman ps -a | grep 'postgres' | awk '{print $1}') && podman rmi $(podman images | grep 'postgres' | awk '{print $3}') && podman build -t postgres .
@audstanley
audstanley / reload-kafka-pod.sh
Last active December 23, 2021 04:31
relaunch a Kafka Pod once docker compose has changed
View reload-kafka-pod.sh
#!/bin/bash
podman pod stop $(podman pod list | grep 'kafka' | awk '{print $1}') && podman pod rm -f $(podman pod list | grep 'kafka' | awk '{print $1}') && podman-compose up -d
@audstanley
audstanley / audstanley-start-server.sh
Last active August 27, 2022 16:56
Project Zomboid Linux Dedicated server beta 41 multiplayer files for systemd
View audstanley-start-server.sh
#!/bin/bash
# this is basically just a helper script for systemd
# This file should be locaed in: /home/audstanley/Zomboid [match to your user's directory]
cd /home/audstanley/.steam/steamapps/common/Project\ Zomboid\ Dedicated\ Server;
./start-server.sh
View breast-cancer-wisconsin.csv
Code ClumpThickness CellSize CellShape Adhesion Epithelial Nuclei Chromatin Nucleoli Mitoses Class
1000025 5 1 1 1 2 1 3 1 1 B
1002945 5 4 4 5 7 10 3 2 1 B
1015425 3 1 1 1 2 2 3 1 1 B
1016277 6 8 8 1 3 4 3 7 1 B
1017023 4 1 1 3 2 1 3 1 1 B
1017122 8 10 10 8 7 10 9 7 1 M
1018099 1 1 1 1 2 10 3 1 1 B
1018561 2 1 2 1 2 1 3 1 1 B
1033078 2 1 1 1 2 1 1 1 5 B
View pima.csv
Preg Glucose BP Skin Insulin BMI Pedigree Age HasDiabetes
2 157 74 35 440 39.4 0.134 30 0
7 159 64 0 0 27.4 0.294 40 0
7 83 78 26 71 29.3 0.767 36 0
0 124 56 13 105 21.8 0.452 21 0
5 99 54 28 83 34 0.499 30 0
0 117 80 31 53 45.2 0.089 24 0
4 83 86 19 0 29.3 0.317 34 0
3 174 58 22 194 32.9 0.593 36 1
7 179 95 31 0 34.2 0.164 60 0
View char1_O.csv
X1 X2
197 298
197 298
187 303
178 299
163 289
148 280
124 257
102 236
71 202
View char1_M.csv
X1 X2
184 409
168 409
154 406
138 397
119 376
104 352
83 316
65 277
46 227
View char1_E.csv
X1 X2
96 150
96 150
96 150
87 149
96 154
105 154
124 166
147 169
176 182