Skip to content

Instantly share code, notes, and snippets.

@sahal
sahal / 01_using-joplin-more-securely.md
Last active April 15, 2025 00:35
Using Joplin More Securely

Using Joplin More Securely

I recently watched a digital security training and I learned a few things about the software that I use on a day to day basis. One of the links listed for further readings included this link Beyond pen and paper: Secure note-taking apps for journalists.

Joplin has geo location information enabled by default and sync is not encrypted end to end by default.

@sahal
sahal / Clean-up-PDF-meta-two-ways.MD
Last active April 11, 2025 01:52
Clean up PDF metadata two ways

Clean up PDF metadata two ways

Using exiftool and qpdf

(not recommended)

$ cp output.pdf output_test-1.pdf
# When using clean_pdf_metadata_v1()
$ pdf-clean.sh output-1.pdf
@sahal
sahal / Free-Up-Disk-Space-On-Arch-Linux.md
Last active April 11, 2025 01:46
My strategies to free up disk space on Arch Linux

My / (i.e. root directory) on my system is 25GB and I intend to keep it only 70% full.

Here are some strategies to do that. Some of the strategies might be useful on other distributions too.

Avoid using / for cache

Package Cache

Keep your pacman/AUR helper cache outside of the root disk

@sahal
sahal / 00_pull-podcast-metadata-from-PocketCasts-DB.md
Last active February 28, 2025 03:58
Generate SQL to pull podcast episode names from pocketcasts sqlite db

PocketCasts makes it hard to migrate

Why are you doing this?

😮‍💨 PocketCasts will save "starred" podcasts in your device storage -- but not let you access them. I want more control over my podcasts than PocketCasts gives me, so I'm probably moving away from using this app.

Before I migrate away, I want to create an archive of saved podcast episodes. Unfortunately, unless you have PocketCasts Plus (which has

@sahal
sahal / 01-my-ghostty-configuration.md
Last active February 27, 2025 21:43
Ghosttty configuraiton

Ghostty configuration

I am a heavy Konsole (KDE) user. I was glad that ghostty had a built in solarized theme.

(ins)sahal@shakuntala[~]$ cat $XDG_CONFIG_HOME/ghostty/config
font-family = "Source Code Pro ExtraLight"
theme = "Builtin Solarized Dark"
font-size = "26"
window-theme = ghostty
@sahal
sahal / 00_backblaze-b2-bucket-duplicator-java11-gradle8.md
Last active January 16, 2025 19:23
Running backblaze-b2-bucket-duplicator in 2025
@sahal
sahal / 01-BUILD-JOPLIN-IN-DOCKER.md
Last active November 18, 2024 20:36
Build Joplin in Docker

Multi build

This will create a whole bunch of node-xx version docker images preloaded with the official Joplin 3.1.24 tarball. Then, we'll try to build it.

Currently, I've tested the build with node 18 19 20 21 22 and 23.

Canvas is seemingly not building on node 20+, this is to validate that theory. See: Automattic/node-canvas#2448

I'll post the results later... my laptop takes about 20 minutes per build, so see you in a few hours.

@sahal
sahal / TiddlyWiki-Revert-to-local-copy-of-external-js.md
Last active November 11, 2024 03:14
Tiddlywiki Revert to local copy of external JS

While browsing this page, How to reduce the size of your Tiddlywiki, I noticed that there were no instructions to revert back to a local copy in case of emergency. I can think of times where I might want to edit my tiddlywiki while offline but since I'm pointing to an external source, this could be a problem.

Normally, by overriding the coreURL variable inside the $:/core/save/offline-external-js ShadowTiddler you can set the external javascript file to be a remote site.

@sahal
sahal / downgrade_arch_packages_using_pacman_log.md
Last active October 31, 2024 13:03
Downgrade Arch Packages Using pacman.log

A shitty way to downgrade the packages you just upgraded

This is great in case you boot into a non-working system after an upgrade.

This recently helped me after one of my KDE packages mirror caused sddm to never display my kde desktop after I logged in. I didn't see any useful error logs in journalctl and I gave up troubleshooting.

Ty to #archlinux on libra chat for their help

@sahal
sahal / 00_Whova_Calendar_Dump.md
Last active September 17, 2024 22:02
Whova Calendar Dump

Whova Calendar Dump

https://whova.com/

This is a shitty bash script to dump an ics file from a whova json agenda dump. For some reason they don't let you download a calendar file with your events. I think they might want you to download their app. Lol...

How to use