Skip to content

Instantly share code, notes, and snippets.

I am hereby requesting immediate erasure of personal data concerning me according to Article 17 GDPR.
If I have given consent to the processing of my personal data, I am hereby withdrawing said consent for the entire process.
In case you have disclosed my personal data to third parties, you have to communicate my request for erasure of the affected personal data, as well as any references to it, to each recipient as laid down in Article 19 GDPR. Please also inform me about those recipients.
Yours sincerely,
@wheresalice
wheresalice / HOPEXV.md
Last active July 15, 2024 17:44
Notes from #HOPEXV (will add links to recommended videos when available)

Links

@wheresalice
wheresalice / main.go
Last active April 16, 2024 19:39
Decode meshtastic messages from mqtt using meshtastic-go
package main
import (
"encoding/base64"
"encoding/hex"
"fmt"
"github.com/charmbracelet/log"
pb "github.com/meshnet-gophers/meshtastic-go/meshtastic"
"github.com/meshnet-gophers/meshtastic-go/mqtt"
"github.com/meshnet-gophers/meshtastic-go/radio"
package main
import (
pb "buf.build/gen/go/meshtastic/protobufs/protocolbuffers/go/meshtastic"
"crypto/aes"
"crypto/cipher"
"encoding/base64"
"encoding/binary"
"encoding/hex"
"fmt"
@wheresalice
wheresalice / import.py
Created November 4, 2023 16:17
Create a markdown file for every arms company that CAAT know about
import json
import os.path
import frontmatter
from slugify import slugify
path_to_json_files = 'arms-and-security-fair-exhibitors/data/'
json_file_names = [filename for filename in os.listdir(path_to_json_files) if filename.endswith('.json')]
for json_file_name in json_file_names:
@wheresalice
wheresalice / gist:937d03dd5b11f14c87a95cb33e638f57
Created August 14, 2023 05:01
Obsidian style settings for Blue Topaz
{
"obsidian-default-theme@@color-user-request@@dark": "#6272A4",
"blue-topaz-theme@@font-text-theme": "Archivo,Bookerly,'Inter', 'Segoe UI','霞鹜文楷 GB', 'LXGW WenKai', 'Segoe UI Emoji',var(--font-interface)",
"blue-topaz-theme@@font-family-h5": "Archivo,Bookerly, 'LXGW WenKai', var(--font-interface)",
"blue-topaz-theme@@font-family-h6": "Archivo,Bookerly, 'LXGW WenKai', var(--font-interface)",
"blue-topaz-theme@@font-family-folder-file-title": "Archivo,Arlrdbd, 'Source Han Sans', 'Noto Sans CJK', 'Source Sans Pro', 'Segoe UI Emoji', sans-serif",
"blue-topaz-theme@@font-monospace-theme": "'FiraCode Nerd Font','JetBrains Mono', Consolas, Monaco, '等距更纱黑体 SC', 'Source Han Mono', 'Microsoft Yahei Mono', 'Segoe UI Emoji', 'Microsoft YaHei', 'Source Code Pro', monospace",
"blue-topaz-theme@@font-family-tag": "Archivo,Bookerly, 'Microsoft YaHei', STzhongsong, STSong, 'Segoe UI Emoji', Serif",
"blue-topaz-theme@@font-family-strong": "Archivo,Bookerly,'Inter', 'Segoe UI', 'LXGW WenKai Screen', 'LXGW WenKa
@wheresalice
wheresalice / main.go
Created August 14, 2023 04:38
create a markdown file for each GitHub repo you have starred (no pagination support)
package main
import (
"encoding/json"
"io"
"net/http"
"os"
"path"
"text/template"
"time"
@wheresalice
wheresalice / imgur-to-rimgo.user.js
Last active February 10, 2023 19:43
Redirect Imgur links to rimgo to avoid endless hate scrolling. Working version as of January 2023
/*
DESCRIPTION: This is a file that after installing a greasemonkey
extension can be used to convert imgur to any rimgo instance.
NOTE: I might change this really often because instances may fail.
----
Copyright (C) 2021 Zortazert and other contributors
This program is free software: you can redistribute it and/or modify
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
if [[ "${1-}" =~ ^-*h(elp)?$ ]]; then
@wheresalice
wheresalice / settings.yml
Created March 13, 2022 10:56
Searxh settings
general:
debug : False # Debug mode, only for development
instance_name : "searx" # displayed name
contact_url: False # mailto:contact@example.com
enable_stats: False # activate /stats page - note: it may leak usage data
brand:
git_url: https://github.com/searx/searx
git_branch: master
issue_url: https://github.com/searx/searx/issues