Skip to content

Instantly share code, notes, and snippets.

@hobgoblina
hobgoblina / update-robots.yml
Last active October 9, 2024 16:22
Update robots.txt github action via Dark Visitors
name: Update robots.txt
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
env:
# the path to your robots.txt file
ROBOTS_PATH: robots.txt
{
"Board": "raytac_mdbt50q_rx",
"Shield": "slicemk_ergodox_dongle",
"Layers": [
{
"Name": "Pop",
"Notes": "",
"Keys": [
{
"Name": "",
@hobgoblina
hobgoblina / anti-capital.sh
Last active March 22, 2025 11:44
anti-capital shell script ... lowercase + convert camel to snake_case for everything in the current or provided directory and recursively in all subdirectories without discretion. will break binaries and hashes - this is intended because they were a function of capital
#!/bin/bash
dir=$(pwd)/$1
if [[ $1 = /* ]]; then
dir=$1
fi
regex='s/\([a-z0-9]\)\([A-Z]\)/\1_\2/g;s/\([A-Z0-9]\)\([A-Z0-9]\)\([a-z]\)/\1_\2\3/g;s/\(.*\)/\L\1/g'