Skip to content

Instantly share code, notes, and snippets.

View fmartingr's full-sized avatar

Felipe Martin fmartingr

View GitHub Profile
@fmartingr
fmartingr / muddyboots-events.patch
Created October 31, 2026 09:22
Muddy Boots Patches for an External API and more events
diff --git a/Data/Kinds.lua b/Data/Kinds.lua
index 6b42a32..5d2e393 100644
--- a/Data/Kinds.lua
+++ b/Data/Kinds.lua
@@ -116,4 +116,21 @@ R("ss", "Screenshot taken", { "why", "result" })
R("af", "Away from keyboard", { "on" })
R("hc", "Hardcore character died (journey ends)", { "killer" })
R("ac", "Accolade earned", { "id" })
+R("pt", "Tamed a beast", { "family", "name", "#level" }) -- name: the beast's name as the pet bar first shows it
+R("rc", "Learned a recipe", { "name", "#spell" }) -- also written as "lr": this line marks it as a recipe
blueprint:
name: "Repeating Alert Notifications"
description: >
Repeating Alert Notifications ideal for doors, windows, locks, etc
🚀 Version 2025.11.08.1
Author : fmartingr
Forked from: https://gist.github.com/Ltek/0d88ed720f635a7579849aac93b9ff93
@fmartingr
fmartingr / pocket2shiori.sh
Last active September 27, 2026 06:18 — forked from dchakro/pocket2shiori.sh
script to import pocket entries into shiori with text, images etc. instead of plain bookmarks.
#!/bin/sh
# Extracting URLs from the exported HTML from getpocket.com/export
# In the following line $1 is the exported HTML from pocket
# which will be passed to this script as a CLI parameter
grep -Eoi '<a [^>]+>' $1 | grep -Eo 'href="[^\"]+"' | cut -d'=' -f 2- | tr -d '"' | tac > pocket2shiori.txt
# Reading the URLs one by one and adding to shiori
while IFS= read -r line; do
shiori add $line
B7ED7A66C80B4B008BAF7F0589C08224
All the cool kids post mysterious RNG seeds.
This isn't anything particularly useful or important, uncovered ages ago but apparently there are still 0 google search results for it.
First, I guess.

Keybase proof

I hereby claim:

  • I am fmartingr on github.
  • I am fmarting (https://keybase.io/fmarting) on keybase.
  • I have a public key ASD16cP6OjNtkvzWMFIDr3VpJRY8WDlXPZntn64dJC6Rjwo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am fmartingr on github.
  • I am fmarting (https://keybase.io/fmarting) on keybase.
  • I have a public key ASD16cP6OjNtkvzWMFIDr3VpJRY8WDlXPZntn64dJC6Rjwo

To claim this, I am signing this object:

@fmartingr
fmartingr / github_remove_forked.py
Created October 7, 2019 19:48
Remove all forked repositories on the user account that is nor archived
# pip install github3
import github3
USERNAME = ""
TOKEN = ""
gh = github3.login(username=USERNAME, token=TOKEN)
# Youtube ads
ad.youtube.com
ads.youtube.com
r4---sn-vgqs7nez.googlevideo.com
r4.sn-vgqs7nez.googlevideo.com
www.youtube-nocookie.com
i1.ytimg.com
r17---sn-vgqsenes.googlevideo.com
r2---sn-vgqs7n7k.googlevideo.com
clients6.google.com
import re
class BashDict(dict):
variable_regex = r'(\$\{([\w\d\_]+)\})'
default_return = ''
def _parse_variables(self, value):
if '${' in value:
def replace(match):
@fmartingr
fmartingr / dotask.sh
Created December 25, 2016 21:02
Taskwarrior helper for rofi
#!/bin/bash
TMPFILE='/tmp/rofi-dmenu-taskwarrior'
task rofi rc.verbose=nothing > $TMPFILE
TASK=`rofi -dmenu -p "Task: " -i -input $TMPFILE`
TASK_ID=`echo $TASK | cut -f1 -d' '`