Skip to content

Instantly share code, notes, and snippets.

@hobgoblina
hobgoblina / update-robots.yml
Last active May 31, 2024 11:34
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
@hobgoblina
hobgoblina / gitpod-fullscreen-fira-code.js
Last active July 24, 2022 19:55
Gitpod Tampermonkey script for Full Screen & Fira Code
// ==UserScript==
// @name Gitpod Fullscreen
// @namespace https://gitpod.io/
// @version 0.1
// @description Make Gitpod fullscreen, for Android-based development
// @author Lina
// @match https://*.gitpod.io/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitpod.io
// @grant GM_getResourceText
// @grant GM_addStyle
@hobgoblina
hobgoblina / fira-code.css
Created July 24, 2022 19:35
Fira Code font css
@font-face {
font-family: 'Fira Code';
src: url('https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/woff2/FiraCode-Light.woff2') format('woff2'),
url("https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/woff/FiraCode-Light.woff") format("woff");
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'Fira Code';
{
"Board": "raytac_mdbt50q_rx",
"Shield": "slicemk_ergodox_dongle",
"Layers": [
{
"Name": "Pop",
"Notes": "",
"Keys": [
{
"Name": "",
@hobgoblina
hobgoblina / anti-capital.sh
Last active February 18, 2024 09:03
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'