This file contains hidden or 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 requests | |
| import base64 | |
| import sys | |
| import os | |
| from io import BytesIO | |
| import tempfile | |
| url = "http://llama-cpp.local/v1/chat/completions" | |
| prompt = ( | |
| "Describe this image for use as alt text. " |
This file contains hidden or 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 bash | |
| # Copyright (c) 2026 Seungjin Kim | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is | |
| # furnished to do so, subject to the following conditions: |
This file contains hidden or 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
| # alias the built in ls command so we don't shadow it | |
| alias ls-builtin = ls | |
| # List the filenames, sizes, and modification times of items in a directory. | |
| @category filesystem | |
| @search-terms dir | |
| @example "List the files in the current directory" { ls } | |
| @example "List visible files in a subdirectory" { ls subdir } | |
| @example "List visible files with full path in the parent directory" { ls -f .. } | |
| @example "List Rust files" { ls *.rs } |
This file contains hidden or 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
| Result of YABS, Zap-hostring Lifetime, US West, 4 cores, 8G Ram, 60G SSD NAS, 500 Mbit/S | |
| # curl -sL https://yabs.sh | bash | |
| # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
| # Yet-Another-Bench-Script # | |
| # v2025-04-20 # | |
| # https://github.com/masonr/yet-another-bench-script # | |
| # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## # | |
| Thu Nov 13 04:45:11 AM EST 2025 |
This file contains hidden or 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 bash | |
| LED="/sys/class/leds/platform::micmute/brightness" | |
| wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle | |
| MIC_STAT=$(wpctl get-volume @DEFAULT_SOURCE@ | grep -c MUTED ) | |
| case "$MIC_STAT" in | |
| 0) |
This file contains hidden or 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
| CPU MAXMHZ MINMHZ | |
| 0 557.8950 605.2640 * | |
| 1 557.8950 605.2640 * | |
| 2 557.8950 605.2640 * | |
| 3 557.8950 605.2640 * | |
| 4 389.4741 605.2640 | |
| 5 389.4741 605.2640 | |
| 6 389.4741 605.2640 | |
| 7 389.4741 605.2640 | |
| 8 389.4741 605.2640 |
This file contains hidden or 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
| [keys.normal] | |
| # Emacs flavor: | |
| # Base: https://www.cs.colostate.edu/helpdocs/emacs.html | |
| # Cursor/Screen Movement Commands | |
| C-a = "goto_line_start" | |
| C-e = "goto_line_end" | |
| C-f = "move_char_right" # forward-char | |
| C-b = "move_char_left" # backward-char | |
| C-n = "move_line_down"# next-line | |
| C-p = "move_line_up" # previous-line |
This file contains hidden or 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
| [Unit] | |
| Description=Ferron web server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=ferron | |
| ExecStart=/usr/local/bin/ferron -c /etc/ferron.yaml | |
| ExecReload=kill -HUP $MAINPID | |
| Restart=on-failure |
This file contains hidden or 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
| https://thanosapollo.org/posts/firefox-with-emacs-keybindings/#step-i-aboutconfig | |
| ``` | |
| Step I: about:config | |
| First visit about:config. | |
| To enable Emacs keybindings while editing text in Firefox, make the following changes: | |
| Set ui.key.accelKey to 18 |
This file contains hidden or 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
| function tog-arr -d "toggle arrow keys" | |
| # Check if keycode 111 is currently mapped to 0xff52 | |
| xmodmap -pk | grep '^[[:space:]]*111' | grep 0xff52 >/dev/null 2>&1 | |
| if test $status -eq 0 | |
| # Unmap arrow keys | |
| xmodmap -e "keycode 111 = " # UP | |
| xmodmap -e "keycode 113 = " # LEFT | |
| xmodmap -e "keycode 114 = " # RIGHT | |
| xmodmap -e "keycode 116 = " # DOWN | |
| else |
NewerOlder