Skip to content

Instantly share code, notes, and snippets.

View tgdnt's full-sized avatar

Tiago Donato tgdnt

  • Kansas City, MO
View GitHub Profile
@tgdnt
tgdnt / inland-mk47.org
Last active March 26, 2026 00:53
How to flash qmk on the Inland Mk47 keyboard on Debian 13

How to flash QMK on the Inland Mk47 keyboard on Debian 13

Building wb32-dfu-updater

This is a dependency that is not in the Debian repository, but it is easy to build it.

Requires cmake and libusb-1.0-0-dev, from the Debian repository.

Get the source code:

@tgdnt
tgdnt / org-jekyll.sh
Last active February 23, 2019 23:11
Script to convert Org files into HTML for a Jekyll site
git clean -df
mkdir _posts _drafts
find ./_orgsource -name "*.org" | while read -r filename; do
sed -e 's/\(\#\+BEGIN\_SRC \)\(.*\)/\#\+BEGIN_HTML\
{\% highlight \2 \%}/' -e 's/\#\+END\_SRC/{\% endhighlight \%}\
\#\+END_HTML/' $filename > $filename.temp.org
newfilename=$(echo $filename | sed -e "s/\(\.\/\)\(\_orgsource\/\)\(.*\)\(.org\)/\1\3\.html/g")
pandoc -t html -o $newfilename $filename.temp.org
rm $filename.temp.org
done
@tgdnt
tgdnt / org-mobile-sync.el
Last active January 20, 2024 10:15
org-mobile-sync
;; org-mobile-sync
(defun org-mobile-clean-pre-push()
(with-temp-buffer
(shell-command "rm ~/mobileorg/*" t)))
(defun org-mobile-rclone-sync-post-push()
(with-temp-buffer
(shell-command "rclone sync ~/mobileorg Dropbox:Apps/MobileOrg --exclude \.DS_Store" t)))
(defun org-mobile-rclone-sync-pre-pull()
(with-temp-buffer
(shell-command "rm ~/mobileorg/*" t)