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 | |
# example filename: RecS03_DST20250409_182755_183258_8B28808_EAA218.mp4 | |
# example usage from folder: ./ffmpeg_ssh.sh 192.168.1.5 RecS03 | |
set -euo pipefail | |
IFS=$'\n\t' | |
# Configuration | |
SRC_DIR="$PWD" |
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 | |
# - - - - - | |
webui="/media/3crip/ML/stable-diffusion-webui/models" | |
comfy="/media/kayos/crucial/crip/Workshop/ComfyUI/models" | |
# - - - - - | |
set -e |
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 time | |
from enum import Enum | |
from pyftdi.spi import SpiController, SpiPort | |
from pyftdi.usbtools import UsbTools | |
from pyftdi.ftdi import Ftdi | |
status_register = 0x00 | |
status_payload = 0x07 |
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
#!/usr/bin/python3 | |
# pylint: disable=W0614 | |
import sys | |
import os | |
import subprocess | |
import time | |
import signal | |
import random |
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
#!/usr/bin/env bash | |
_model="/usr/local/share/whisper.cpp/models/ggml-small.en-q5_1.bin" | |
_threads=3 | |
declare -f _grep | |
export _grep | |
declare -g _csv="/media/unsafe/pr0n/counts.csv" | |
declare -g _sql="/media/unsafe/pr0n/counts.db" | |
declare -a -g _merged |
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 | |
_router="[email protected]" | |
_remote_suri_dir="/mnt/sdb/var/log/suricata/" | |
_local_suri_dir="/media/data/router_logs/" | |
_date_fmt="+%m-%d-%YT%H:%M:%S%Z" | |
xferlog="${_local_suri_dir}xferlogs/log_fetch_$(date +%s).log" | |
export xferlog |
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
#!/usr/bin/expect -f | |
# mounts a list of sshfs targets | |
# compensates for lack of ssh-agent for batch unlocking of the configured ssh key | |
# ----- Config ------------- | |
set src "kayos@fhjones" | |
set pairs { |
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
package main | |
import ( | |
"errors" | |
"fmt" | |
"os" | |
"slices" | |
"strconv" | |
"strings" | |
) |
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
(defn yeet | |
[input] | |
(if (= input "yeet") | |
(print "yeet!") | |
(print "be gone, " input "!") | |
) | |
) | |
(defn main |
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 | |
_target="$1" | |
if ! ip link show dev "$_target" >> /dev/null; then | |
echo "device $_target does not exist"; exit 1 | |
fi | |
echo "resetting $_target" |
NewerOlder