INDEX.md (6585 bytes)
1 # Index 2 3 Generated by `make index`. Do not edit by hand. 4 5 | Template | Summary | 6 |---|---| 7 | `c/main.c` | main with argc and argv | 8 | `c/mqueues.c` | | 9 | `cl/block-return-from` | name, body, return from name | 10 | `cl/class` | defclass with one slot | 11 | `cl/defmethod-specialized` | defmethod specialized on two arguments | 12 | `cl/defpackage` | defpackage with every common option | 13 | `cl/defstruct` | defstruct with options and one slot | 14 | `cl/defsystem` | ASDF defsystem with its own package | 15 | `cl/do` | do or do* loop with two variables | 16 | `cl/dolist` | dolist over a list | 17 | `cl/dotimes` | dotimes counted loop | 18 | `cl/handler-case` | handler-case with a :no-error clause | 19 | `cl/hash-table-loop` | Hash table loop patterns | 20 | `cl/lambda-list` | in this order | 21 | `cl/mapping` | | 22 | `cl/plists-hint` | | 23 | `cl/quicklisp-in-file` | Yep! | 24 | `cl/quickproject` | Create a new project with quickproject | 25 | `cl/read-time-eval` | Read-time evaluation - computed at read time, not runtime | 26 | `cl/restart-case` | restart-case with a report and an interactive function | 27 | `cl/slot` | defclass slot with every option | 28 | `cl/string-adjustable-array` | | 29 | `cl/tagbody-go` | tagbody with go labels | 30 | `cl/with-open-file` | with-open-file with direction and if-exists options | 31 | `cl/with-simple-restart` | with-simple-restart around a body | 32 | `epub.css` | | 33 | `git-config-branch` | git remote section for a GitHub repository | 34 | `html/template.html` | HTML5 page skeleton | 35 | `make/conditionals/conditional-variable` | Set a variable only when it is not set already | 36 | `make/conditionals/ifeq-endif` | ifeq/ifneq conditional block | 37 | `make/expansions/substitute-wordending` | Replace the word ending in every word of a variable | 38 | `make/functions/call-fn` | call: expand a variable as a function with parameters | 39 | `make/functions/conditionals` | if, or, and: conditional functions | 40 | `make/functions/file-fn` | file: read or write a file | 41 | `make/functions/filenames` | dir, notdir, suffix, basename: file name functions | 42 | `make/functions/foreach-complex` | foreach: expand text once per list item | 43 | `make/functions/foreach-simple` | foreach over a list (see foreach-complex for more) | 44 | `make/functions/text` | subst, patsubst, strip, findstring: text functions | 45 | `make/golf/if-pkgconfig-exists` | Use pkg-config for a library when it is installed (example: ncursesw) | 46 | `make/macros/macros` | | 47 | `make/mapping/map-fn` | Define a map function from a one-argument function | 48 | `make/mapping/origins` | see map-fn for the definition of map and use it | 49 | `make/mapping/wildcards` | see map-fn and import that too | 50 | `make/origin-values` | origin: the values it can return | 51 | `make/output/error` | error: stop make with a message | 52 | `make/output/info` | info: print a message | 53 | `make/output/warning` | warning: print a message and continue | 54 | `make/pedantic-phony` | Declare the standard phony targets | 55 | `make/pedantic-posix` | | 56 | `make/pointer` | you use computed variable names as pointers | 57 | `make/pointer-array` | | 58 | `make/rules/ordered-mkdir` | use ordered prereqs in a recipe to make a folder | 59 | `make/rules/ordered-prereqs` | targets : normal-prereqs | order-only-prereqs [; recipe] | 60 | `make/rules/var-globbed` | NOTE: You can do multiple globs too with clever mapping | 61 | `make/shell` | Run a shell command and capture its output | 62 | `make/templates/config.mk` | config.mk with version, shell and install prefixes | 63 | `make/templates/dist` | Minimal makefile that builds a release tarball | 64 | `make/templates/scripts` | include PROJECT=name in your config.mk | 65 | `make/variables/globbing` | globbing not done in variable declarations | 66 | `openrc.init` | OpenRC service script | 67 | `sed/TLDR` | | 68 | `sed/append-after-match` | Append a line after the first line that matches | 69 | `sed/bin-sh` | Swap first line for #!/bin/sh naively | 70 | `sed/d` | Delete matching lines with D (keeps the newline) or d | 71 | `sh/README` | | 72 | `sh/absolute-path` | | 73 | `sh/alias-function-args` | alias argsinmiddle='f(){ echo "$1" "$2" etc. }; f' | 74 | `sh/charcount` | cheap hack | 75 | `sh/dirname` | dirname clobbers multiple trailing newlines | 76 | `sh/dotglob` | not: . .. | 77 | `sh/echo-arg` | Echo, fixed so only the first argument can be flags. | 78 | `sh/echo-noarg` | Portable echo. No arguments. | 79 | `sh/epochsec` | date +%s not portable | 80 | `sh/find-big-files` | GNU only: since du -h is a GNU extension | 81 | `sh/find-exec-fn` | can't use -exec on shell functions, so do this | 82 | `sh/find-print` | | 83 | `sh/find-xargs` | -print0/-0 is a GNU extension | 84 | `sh/for-array` | Iterate over a saved argument list in POSIX sh | 85 | `sh/for-find` | Yes, it really is this hard to do | 86 | `sh/globber` | Same as Bash [[ ... ]] | 87 | `sh/here-string` | BASHISM: | 88 | `sh/isempty` | | 89 | `sh/join-lines` | Removes all newlines from the input stream, like holding J on line 1 in vi. | 90 | `sh/newlocale` | | 91 | `sh/path` | Three methods here: | 92 | `sh/pushd-popd-directory-switch` | LLM generated this genius thing for a Makefile uninstaller | 93 | `sh/pwd` | fixup $PWD | 94 | `sh/quote` | Safe quoting, safe trailing newlines. | 95 | `sh/random` | 'gawk' can produce random numbers using srand(). In this example, 10 integers between 1 and 500: | 96 | `sh/readbyte` | also see: writebyte | 97 | `sh/readline` | Read into variables | 98 | `sh/redirection` | Cursed shell redirection | 99 | `sh/remove-duplicates` | sort the lines, then remove duplicates that are next to eachoter | 100 | `sh/str-fn` | Shell function that returns a string by reference | 101 | `sh/trap/background-jobs` | Clean up background jobs | 102 | `sh/trap/cleanup-multiple` | Clean up multiple temporary files/directories | 103 | `sh/trap/cleanup-temp` | Clean up temporary files on exit | 104 | `sh/trap/debug-trace` | Enable debug tracing with cleanup | 105 | `sh/trap/error-handler` | Exit on error with context | 106 | `sh/trap/lock-file` | Exclusive lock using trap | 107 | `sh/trap/progress-cleanup` | Show progress and clean up on interruption | 108 | `sh/trap/restore-settings` | Save and restore shell settings | 109 | `sh/trap/signal-handler` | Handle specific signals gracefully | 110 | `sh/trap/timeout-handler` | Timeout handler | 111 | `sh/tree-exec` | Alternative to find | 112 | `sh/unexport` | | 113 | `sh/userhome` | | 114 | `sh/varprint` | Don't use echo, it isn't portable. | 115 | `sh/whiletruessh` | | 116 | `sh/writebyte` | also see the other direction: readbyte | 117 | `uad.json` | | 118 | `vim/sh-into-buffer` | | 119 | `vim/sh-quiet` | | 120 | `vim/use-g-v` | | 121 | `wpa_supplicant-verbose-example.conf` | Example wpa_supplicant configuration file ############################### |