Skip to content

Instantly share code, notes, and snippets.

View gleeblezoid's full-sized avatar
👻

Arthur gleeblezoid

👻
View GitHub Profile
@gleeblezoid
gleeblezoid / gitgrep
Created August 14, 2025 08:42
Search the local git repos in the current dir for a string pattern
#!/bin/sh
if [ -f /opt/local/bin/ripgrep ]; then
for dir in */; do (cd "$dir" && git rev-parse --is-inside-work-tree 1>/dev/null && ripgrep "$@") 2>/dev/null ; done
exit 0
fi
echo You need to install ripgrep
@gleeblezoid
gleeblezoid / proof.md
Created August 2, 2025 20:32
Keyoxide proof

openpgp4fpr:E20D1FF81F4991D5D43F3C318B4CF8020206A758

git config --global alias.duff '!f(){ base64 -d<<</Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4BZuBYJdABBuEi7B7j+c3vor3lHwy8/Qy8aeCQgp+xKwnoYdynnOPjSg4jnmw5oWPFO1tXovAUxuEuGUyS7IDfQTMho6iLkQ7eOak0occChW9kBQ8v5L8vlWXo5U6zpINc1xAJJA6vTZ2+2WTPHxhS9JcB3NSSb4iBER2N8qTjoTYOyEXgSaWuYYmPJBsQZZ18WMlzF6TGbvo50bHWNK5axJ91VT4x4q0VVXoo+l1/w6X5s23VUj9cRNrQ0wUVKP4/he51d9XO9pdggnL4iH8Knwr8iLYxqzCQjLrFxZf1PglITxmAH17hPc9A28o5YAImXLFR11sT0B2CjTn4xU/ulm/qQRrnxrRCOxcQ/ezak6DgKtU7NURpCEnDkz2kxhvl6olFo9UMmF8gx623w7VKr1Yod7J5vkYMJeo2cn5ULWJtKNQdh88oAwXuHmdyA881havulWofCeoymkuK94xtGHy1qIl5PlASwggZhD2+g/jf3eO1LJ0FPUw8bpTFgTaq2Zxcu+DEhlNCJAbpTDyUsCKntCEwr0d40zdxPMnABWfl+pChmO63QBVQ9hobdPRsAB5094SjXi5DwmpGzyip7b5HwaXkwtcnM9lOWUTaMkUTltS6S+VFLkRje9TS21BAOkdfSh4W15GiqvkrxKELs/OzwegH7zZ2DnKnHLYl4cDSdRyPhXay7bVv7lowidY7lEtyUlDIpt3RBeu0Eoqxjm/yQ4xesLm4KgQ37EsulCY0YBmGkfa9/Uxoc081V3aN9cn7dT63GA3qIhfdITbQHjHMPcsv2dWqIRsZQUZtEH5r0i8mFlYGqv0bIZuJfEhLOD6rwfcoW3jbTuhLMk/S0Mk91B2IhgDZQiU/PDaHHlabbYRxAfGgesIXgEdTdT7oGkkg6lMpzP0Xf3emdU8Y3N5zapgZZ1RQ6naIutOQoWRX
@gleeblezoid
gleeblezoid / brag.sh
Last active August 5, 2024 09:53
Tiny posix script that lets you shove brags into version control
#! /bin/sh
if [ -z "${BRAG_PATH}" ]; then
echo You need to set a path to a local git repo with the env var BRAG_PATH
fi
day="$(date '+%Y-%m-%d')"
branch_name="brag-${day}"
git -C "${BRAG_PATH}" switch main
git -C "${BRAG_PATH}" pull
if [ "$(git -C "${BRAG_PATH}" branch --list "$branch_name")" ]; then
@gleeblezoid
gleeblezoid / MultiSearch.go
Created August 26, 2021 09:01
For searching with multiple search engines at once from your terminal
/* The idea of this tool is to run multiple web searches at the same time - say several shopping sites or knowledge bases */
package main
import (
"fmt"
"github.com/pkg/browser"
"strings"
)
# The purpose of this Python script is to pull the forecast of starters and leavers from form responses and send a summary forecast for the starters/leavers in the next 2 weeks
# Include scopes for GMail API
# Any data you need to customise yourself has been placeholdered with <replace>
import gspread
import datetime
import ezgmail
gc = gspread.service_account(filename='service_account.json')
# Function for getting spreadsheet data and returning filtered lists of leavers and starters
@gleeblezoid
gleeblezoid / auto_archive.py
Created June 14, 2021 20:59
Slack channel archive and unarchive tool
import os
import requests
import datetime
import csv
import sys
# Authentication variables
bot_token = os.environ['SLACK_BOT_TOKEN']
user_token = os.environ['SLACK_USER_TOKEN']

Keybase proof

I hereby claim:

  • I am gleeblezoid on github.
  • I am gleeblezoid (https://keybase.io/gleeblezoid) on keybase.
  • I have a public key ASAN0wHtA9plCqAs8Srqv8oEmmn3rfg9klow4VsnfGBsTgo

To claim this, I am signing this object:

@gleeblezoid
gleeblezoid / MultiBuild.go
Last active June 21, 2020 19:50
MultiBuild - Command strings for running `go build` for multiple platforms
/* For setting up executables for multiple OS's */
package main
import(
"fmt"
"strings"
)
func main(){