Skip to content

Instantly share code, notes, and snippets.

@bbhtt
bbhtt / list.md
Created May 14, 2025 15:23
List of apps with network permission and default OARS or missing all telemetry tags or all set to default none

List

app.authpass.AuthPass
app.bbsync.BlackboardSync
app.bluebubbles.BlueBubbles
app.devsuite.Manuals
app.devsuite.Ptyxis
app.drey.Biblioteca
app.drey.Damask
import argparse
import json
import re
import sys
from dulwich.objects import Tag
from dulwich.repo import Repo
def get_git_describe(path):
@bbhtt
bbhtt / get_builds.py
Last active April 14, 2025 10:42
Get Build information from Flathub buildbot
#!/usr/bin/env python3
import argparse
import json
import logging
import sys
from collections import Counter
from datetime import datetime, timedelta, timezone
import requests
import gi
import requests
gi.require_version("OSTree", "1.0")
from gi.repository import OSTree, GLib
r = requests.get("https://dl.flathub.org/repo/summary.idx", allow_redirects=False, timeout=(120.05, None))
if r.status_code == 200 and isinstance(r.content, bytes):
data = GLib.Variant.new_from_bytes(GLib.VariantType.new("(a{s(ayaaya{sv})}a{sv})"), GLib.Bytes.new(r.content), True)
print(OSTree.checksum_from_bytes(data.get_child_value(0).lookup_value("aarch64", GLib.VariantType.new("(ayaaya{sv})")).get_child_value(0)))
#!/bin/bash
is_git_repo() {
git rev-parse --show-toplevel > /dev/null 2>&1
result=$?
if test $result != 0; then
>&2 echo 'Not a git repo!'
exit $result
fi
}
@bbhtt
bbhtt / screenedit.sh
Last active November 1, 2024 09:42
Screenshot tool (GNOME Screenshot + Satty)
#!/usr/bin/env sh
# License: GNU General Public License v3.0
# Dependencies:
# awk: https://www.gnu.org/s/gawk/manual/gawk.html
# gnome-screenshot: https://gitlab.gnome.org/GNOME/gnome-screenshot
# satty: https://github.com/gabm/Satty
# wl-copy: https://github.com/bugaevc/wl-clipboard