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
~
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
@deobald
deobald / reorder_txt.clj
Last active April 15, 2021 21:44
Clean up Pariyatti Daily Words translations
#!/usr/bin/env bb
#_( ;; Allow this script to be executed directly
"exec" "bb" -o "--classpath" "." "$0" "$@"
)
;; == How To Use This File ==
;;
;; 0) Copy the English daily words file (`daily_words_one_loop.txt`) and another
;; language (ex. `daily_words_one_loop_espanol.txt`) into the directory where
;; you have downloaded this script.
@deobald
deobald / install-openjdk-macos.sh
Last active October 12, 2022 00:03
How to install OpenJDK 11 on Mac OS Big Sur
# ==== METHOD ONE ====
brew install openjdk@17
# ==== METHOD TWO ====
#!/bin/sh
cd ~/Downloads
# Intel:
wget https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_macos-x64_bin.tar.gz
# ARM: