Skip to content

Instantly share code, notes, and snippets.

@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 December 18, 2024 07:03
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 and configure it:

brew install --cask --no-quarantine xquartz
defaults write org.xquartz.X11 nolisten_tcp -bool false
defaults write org.xquartz.X11 no_auth -bool false

mkdir -p ~/.xinitrc.d
@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
@devnoname120
devnoname120 / README.md
Last active January 9, 2024 14:30
Karabiner-Elements — Microsoft Teams — Don't quit when pressing cmd-w on main window

Note: you need to add /Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_console_user_server in System SettingsPrivacy & SecurityAccessibility+

@devnoname120
devnoname120 / powerpoint-force-reapply-note-master.vba
Created January 15, 2023 14:40
PowerPoint — Force to reapply the master note to all the slides
Sub RestoreNotesPages()
Dim oSld As Slide
Dim oShp As Shape
Dim lIdx As Long
On Error Resume Next
With ActivePresentation
For Each oSld In .Slides
With oSld.NotesPage.Shapes