Skip to content

Instantly share code, notes, and snippets.

@devnoname120
devnoname120 / fb-android-uri-strings.txt
Last active February 12, 2025 23:23
List of accepted fb:// URIs in Android Facebook (470.0.0.61.82)
fb://
fb://))?((www\\.)|(m\\.))?((fb)|(fb\\.com)|(facebook\\.com))(/[^/]+/shop/)
fb://))?((www\\.)|(m\\.))?((fb\\.gg)|(fb\\.com/gaming)|(facebook\\.com/gaming))(/|$)
fb://.*$
fb:///page/whatsapp/verification/?whatsapp_number=<q$1>&page_id=<q$2>&verification_code=<q$3>&request_source=<q$4>
fb:///videochannel?id=<p$2>&playerOrigin=external_deeplink::permalink
fb://[^?]+)(\\?.*)?
fb://about
fb://about_info
fb://account-kit/confirmation_code/?confirmation_code={confirmation_code}
@devnoname120
devnoname120 / approve_all_pr_review_requests.md
Created January 16, 2025 14:27
Approve all pull requests where someone requested a review from me
  1. Go to https://github.com/issues?q=review-requested%3A%40me
  2. Open the dev console, run this, and copy the output:
const pulls = Array.from(document.querySelectorAll('a[id^=issue_]'))
const links = pulls.map(i => i.href.replace('//github.com/', '//api.github.com/repos/').replace('/pull/', '/pulls/') + '/reviews')
const curls = links.map(l => `curl -H "Authorization: Bearer $GITHUB_TOKEN" --data '{"event": "APPROVE"}' ${l}`)
console.log(curls.join("\n"))
  1. Run this in the terminal:
@devnoname120
devnoname120 / README.md
Created December 16, 2024 18:38
Fix Docker rclone plugin

This script aims to fix the following error:

$ docker compose up -d --build
Error response from daemon: get audiobookshelf_audiobooks: error while checking if volume "audiobookshelf_audiobooks" exists in driver "rclone:latest": error looking up volume plugin rclone:latest: plugin rclone:latest found but disabled
$ docker plugin enable rclone
Error response from daemon: dial unix /run/docker/plugins/7c5c781c3b705d4caf5418cc5ed462b8e1b81596df43129b0eac55ea2047ad2b/rclone.sock: connect: no such file or directory
@devnoname120
devnoname120 / macos_docker_xorg_forwarding.md
Last active February 23, 2025 16:25
Xorg/X11 forwarding on macOS and docker

Xorg/X11 forwarding on macOS and docker

In order to run Xorg apps on macOS you will need to install xquartz:

brew install --cask --no-quarantine xquartz

And then configure it

@devnoname120
devnoname120 / aREADME.md
Last active August 8, 2024 12:27
fix-aliexpress-unsubscribe.user.js

How to install on Google Chrome

  1. Install the Tampermonkey extension.
  2. Do a right-click on the Tampermonkey icon and press Options.
  3. Click on Settings, and then in the General section change the Config mode to Advanced.
  4. In the Experiments section at the bottom of the page, change the Inject Mode to Instant.
  5. You can close this settings page now.
  6. Click on this link and press on Install in the Tampermonkey tab that just opened.
@devnoname120
devnoname120 / Caddyfile
Last active November 26, 2024 08:09
frp — Example of TLS termination in Caddy on the client side
{
https_port 44312
auto_https disable_redirects
admin localhost:2020
}
testcert.your.domain {
templates
file_server
tls {
@devnoname120
devnoname120 / .zsh_plugins.txt
Last active November 26, 2024 08:15
Antidote — .zsh_plugins.txt
Aloxaf/fzf-tab
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
# Cache `autoload -Uz compinit` for faster speedup (IO installed it for that) + many zsh customizations
sorin-ionescu/prezto path:modules/completion
# Select text when shift + arrow keys is pressed. Works to delete a part of the current command, contrary to iTerm's selection
jirutka/zsh-shift-select
@devnoname120
devnoname120 / Calendar.getInstance.json
Last active April 28, 2024 22:09
XPrivacyLua hooks — Fake.DateTime
{
"script": [
{
"name": "Privacy.Calendar.getInstance",
"code": "function after(hook, param)\n local cal = param:getResult()\n cal:set(2024, 4, 27)\n param:setResult(cal)\n return true\nend\n"
}
],
"definition": [
{
"builtin": false,
@devnoname120
devnoname120 / Locale.getDefault.json
Last active March 14, 2024 21:50
XPrivacyLua Pro — Override system locale/language — java.util.Location.getDefault()
{
"script": [
{
"name": "Privacy.Locale.getDefault",
"code": "function after(hook, param)\n local myLocale = luajava.newInstance(\"java.util.Locale\", \"fr\", \"FR\")\n\tparam:setResult(myLocale)\n\treturn true\nend"
}
],
"definition": [
{
"builtin": false,
@devnoname120
devnoname120 / temp-mail-fake-loading-bypass.user.js
Last active February 23, 2024 12:08
Userscript — temp-mail.org fake loading bypass
// ==UserScript==
// @name temp-mail.org fake loading bypass
// @namespace devnoname120
// @version 2024-02-23
// @description Get rid of the fake 7s loading time that temp-mail.org puts on mailboxes
// @author devnoname120
// @match *://temp-mail.org/*
// @icon https://temp-mail.org/images/favicon.ico
// @run-at document-end
// @grant none