Skip to content

Instantly share code, notes, and snippets.

View deobald's full-sized avatar
🧀
eating cheese and being afraid

Steven Deobald deobald

🧀
eating cheese and being afraid
View GitHub Profile
@deobald
deobald / book.toml
Created April 7, 2023 14:02
book.toml for failing `mdbook-pdf-outline` build
[book]
authors = ["Steven Deobald", "Håkan Råberg"]
language = "en"
multilingual = false
src = "src"
title = "The Endatabas Book"
# chapter-level ToC ... perhaps not necessary,
# but it's here if we want it.
[preprocessor.toc]
@deobald
deobald / mdbook_trace.txt
Created April 7, 2023 13:59
Trace of failing `mdbook-pdf-output` gen
$ RUST_BACKTRACE=full RUST_LOG=trace mdbook build
2023-04-07 10:57:25 [DEBUG] (mdbook::book): Loading config from /home/steven/work/endatabas/endb-book/book.toml
2023-04-07 10:57:25 [DEBUG] (mdbook::config): Updating the config from environment variables
2023-04-07 10:57:25 [TRACE] (mdbook::book): Config: Config {
2023-04-07 10:57:25 [TRACE] (mdbook::book): book: BookConfig {
2023-04-07 10:57:25 [TRACE] (mdbook::book): title: Some(
2023-04-07 10:57:25 [TRACE] (mdbook::book): "The Endatabas Book",
2023-04-07 10:57:25 [TRACE] (mdbook::book): ),
2023-04-07 10:57:25 [TRACE] (mdbook::book): authors: [
2023-04-07 10:57:25 [TRACE] (mdbook::book): "Steven Deobald",
~
Udakañhi nayanti nettikā,
Usukārā namayanti tejanaṃ,
Dāruṃ namayanti tacchakā,
Attānaṃ damayanti paṇḍitā.
Listen: https://download.pariyatti.org/dwob/dhammapada_6_80.mp3
Irrigators direct the water,
Fletchers fashion the shaft,
Carpenters bend the wood,
~
Irrigators direct the water,
Fletchers fashion the shaft,
Carpenters bend the wood,
The wise control themselves.
~
Irrigators regulate the rivers;
fletchers straighten the arrow shaft;
carpenters shape the wood;
the wise control themselves.
;; i want this:
[:time_value
{:tag :cat,
:parsers
'({:tag :nt, :keyword :hours_value}
{:tag :nt, :keyword :colon, :hide true}
{:tag :nt, :keyword :minutes_value}
{:tag :nt, :keyword :colon, :hide true}
{:tag :nt, :keyword :seconds_value})}]
@deobald
deobald / no-screens-sleep.txt
Created October 21, 2022 17:21
gnome: turn off screen sleep
[steven@terasa ~]$ gsettings get org.gnome.desktop.session idle-delay
uint32 300
[steven@terasa ~]$ gsettings set org.gnome.desktop.session idle-delay 0
[steven@terasa ~]$ gsettings get org.gnome.desktop.session idle-delay
uint32 0
@deobald
deobald / words_of_buddha.json
Created August 25, 2022 22:41
Sample "Daily Words" Translation
{
"original_audio_url": "https://download.pariyatti.org/dwob/samyutta_nikaya_1_150.mp3",
"citepali": "Saṃyutta Nikāya 1.150",
"bookmarkable": true,
"words": "Hitānukampī sambuddho\nyadaññamanusāsati,\nanurodhavirodhehi\nvippamutto tathāgato.",
"type": "words_of_buddha",
"header": "Words of the Buddha",
"shareable": true,
"published_at": "2022-08-25T12:01:00.828338231000Z",
"citebook_url": "https://store.pariyatti.org/Gemstones-of-the-Good-Dhamma-WH342-4_p_1679.html",
@deobald
deobald / how-to-rebase.sh
Created October 16, 2021 00:11
how-to-rebase
# because I will never, ever remember
git co master
git pull
git co <branch>
git rebase master
git pull --rebase
git push
@deobald
deobald / write-the-readme.adoc
Last active November 7, 2023 21:08
Write The Readme

Write The Readme

You must write a README. This is not optional. It is where everyone begins to understand your software. Yourself included.

Who: You are writing the README for future readers. Yourself included. "Who is responsible for the README?" is a question which will be answered in the end.

HOW

@deobald
deobald / follow_link.py
Created April 29, 2021 20:14
Follow a link with Beautiful Soup