Skip to content

Instantly share code, notes, and snippets.

View kha-dinh's full-sized avatar

khadinh kha-dinh

View GitHub Profile
@fardjad
fardjad / taming-an-onyx-tablet.md
Last active November 4, 2025 09:57
[Taming an Onyx Tablet] The documented process of securing my Onyx Boox tablet #blog #onyx #boox

Taming an Onyx Tablet

Onyx tablets reportedly phone home and send "data" to some servers in China. The manufacturer apparently refuses to publish the source-code modifications to the OS and the open-source apps they are using and they even go as far as violating GPL.

Of course I learned all that after buying this tablet. To ease my mind, I spent some time debloating it and then blocked the outgoing traffic to

@Pangoraw
Pangoraw / pdf_zotero.sh
Last active January 6, 2025 13:12
Open zotero files from a selector like rofi, dmenu, fzf,...
#!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
ZOTERO_DIR="$HOME/snap/zotero-snap/common/Zotero"
ZOTERO_DB="${ZOTERO_DIR}/zotero.sqlite"
PDF_READER="$HOME/Projects/piz/target/debug/piz"
@danbe
danbe / zotero.py
Last active October 7, 2025 11:44
Library for creating Zotero items from Python. Connects to a local Zotero repository running in Firefox through MozRepl.
# -*- coding: utf-8 -*-
from collections import namedtuple
import json
import urllib.parse
#import telnetlib
import time
import os.path
import filecmp
import random
import string