This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env = sandbox | |
.PHONY: help init test run | |
# HELP sourced from https://gist.github.com/prwhite/8168133 | |
# Add help text after each target name starting with '\#\#' | |
# A category can be added with @category | |
HELP_FUNC = \ | |
%help; \ | |
while(<>) { \ | |
if(/^([a-z0-9_-]+):.*\#\#(?:@(\w+))?\s(.*)$$/) { \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
from BeautifulSoup import * | |
URL = raw_input("Enter the URL:") # Enter main URL | |
link_line = int(raw_input("Enter position:")) - 1 # The position of link relative to first link | |
print URL | |
html = urllib.urlopen(URL).read() | |
soup = BeautifulSoup(html) | |
tags = soup('a') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# because I will never, ever remember | |
git co master | |
git pull | |
git co <branch> | |
git rebase master | |
git pull --rebase | |
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ==== 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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})}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ | |
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ | |
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, |