Skip to content

Instantly share code, notes, and snippets.

View ysard's full-sized avatar
😉
I may be slow to respond.

ysard

😉
I may be slow to respond.
View GitHub Profile
@ysard
ysard / psd_wrapper.py
Created December 17, 2025 02:05
Filter Firefox profiles for Profile-Sync-Daemon (PSD)
#!/usr/bin/env python3
"""
Search Firefox profiles that are only enabled for Profile-Sync-Daemon (PSD)
Installation: Put this script into this folder: $HOME/.mozilla/firefox/
Usage from shell: eval "$(python /tmp/test.py)"
Usage in profiles.ini: Set IsPsdEnabled=1/true/yes to enable PSD on this profile,
set 0/false/no or nothing to disable PSD on this profile.
Modify /usr/share/psd/browsers/firefox internal loop with:
eval "$(python $HOME/.mozilla/firefox/psd_wrapper.py)"
@ysard
ysard / build_calameo_pdf.sh
Created September 13, 2020 11:39
Dump and rebuild books from Calameo website
#!/bin/bash
URL="https://p.calameoassets.com/200424144000-11e93cd5206820f83e75e58a9b1e4652/p%page_number%.svgz"
function get_images {
# download svg files
for i in {1..196}
do
echo "page $i..."
VAR="${URL/\%page_number\%/$i}"