bash snippet
Basic bash loop
Iterate through files and print their names.
for file in *.txt; doecho "Processing $file"# do work herecat "$file"done
bash snippet
Iterate through files and print their names.
for file in *.txt; doecho "Processing $file"# do work herecat "$file"done
Throttle rapid calls to run only after the delay.
Pragmatic email pattern for most forms.
Tiny wrapper for JSON requests with error handling.
Create nested directories safely with -p.
Safely read a UTF-8 file with context managers.
Create or overwrite a UTF-8 file with a newline.