reminder-am-pm-times.rst
: a cheatsheet for the unintuitive AM/PM timesstreet-numbers/
: find in what direction street number increase by looking at a single number
borgbackup-samples.md
: examples of how to use borgbackupcommands-with-sub-manual-pages.yml
: commands which have dedicated sub manual pages for subcommandshowto-do-shellextension-with-qt
: an old tutorial on how to implement windows shell extension in qt, for example to overlay icons inexplorer.exe
reminder-ssh-controlmaster-option.md
: reminder for ssh's ControlMasterxdg-variables-cheatsheet.md
:XDG_*
variables cheatsheetxscreensaver-theme-colors/
: cheatsheet of theme configuration resources for xscreensaver
asciitree.cpp
: C++ example to hardcode tree structures that look like trees in sourcediy-QReadWriteLock.cpp
: for qt, DIY implementation of qreadwritelockdiy-strong-ptr-and-weak-ptr.cpp
: DIY implementation of strong and weak pointers
todotxt.nanorc
:nano
syntax coloring fortodo.txt
format
cache-for-debian-based-images.gitlab-ci.yml
: snippet for caching Debian packages to avoid re-downloading themcache-for-python.gitlab-ci.yml
: snippet for caching pip packages to avoid re-downloading them
break-url-bar.html
: somehow break URL bar displaygreasemonkey/deliveroo
: in greasemonkey/violentmonkey js, various scripts to make deliveroo site a bit less painfulgreasemonkey/round-prices.user.js
: in greasemonkey/violentmonkey js, round numeric values on any web page, for example replace "9.99€" to "~10€"greasemonkey/reddit-ignoreusers.user.js
: in greasemonkey/violentmonkey js, hide topics created by some (configurable) users
always_sorted_list.py
: a list data structure whose values are always sorted (if the values are immutable)ansi_box.py
: toy library for drawing stuff with ansi sequencesautoimport-pyqt5.toml
: autoimport config for PyQt5 imports and its generator scriptbetter_sum.py
: improving on python'ssum
builtin to accept non number types, like lists or timedeltascheap_sqlite_schema_migration.py
: for python sqlite, cheap snippet of how to performed versioned database migrations (schema or not)collections-abc-classes.md
: Mermaid diagram showingcollections.abc
classes with abstract methods and mixinsenum-reminder.py
: reminder on enumsgfs-backup-rotation-algorithm.py
: GFS (Grandfather-father-son) backup rotation schemegitlab-delete-your-comments.py
: delete all of your MR comments on a Gitlab instancegraphql-queries.py
: perform GraphQL queries/mutationshuman_sorted_filenames.py
: sort filenames "for humans", not merely with ASCII orderintervals.py
: data structure to hold intervalsmerge-docker-compose-files.py
: merge several docker-compose.yml files togethermerge_iterables.py
: python function to merge several sorted iterables into a single big sorted iterable, on the flyos_walk_no_xdev.py
: wrapsos.walk()
but doesn't enter mountpoints/other filesystemspyproject-snippets.md
:pyproject.toml
snippetspytest-kludgy-parametric-fixtures
: for python's pytest, snippet of an alternate way to do parametric fixtures, within different directoriesre-empty-none.py
: there
module can sometimes return matches with empty values or Nonerequests-get-server-ip-in-response.py
: for requests lib, how to get the server ip address in the Response objectunpack-dict-params-to-pydantic.py
: for pydantic lib, decorator to convert json arguments to objects automaticallyuuidv7-range.py
: range of UUIDv7 values between 2 timestamps, for example for partitioning
add-containers-in-hosts-file.sh
: add docker container addresses in/etc/hosts
, with the container namesdate-in-email-header-format-rfc2822.sh
: print date in rfc2822 format (suitable for email headers), also useful for any strftime implementationexample-chezmoi-conf-in-docker.sh
: how to export your chezmoi dotfiles and import them easily in a docker containerexamples-of-how-cool-is-sponge.sh
: examples of how cool is sponge(1)find-permissions.sh
: small GNUfind(1)
snippets for dealing with permissionsgrep-exit-codes.md
: what exit code will grep use?guru-meditation.sh
: generate colored ANSI "guru meditation" banner using POSIX sh andtput
interactive-topydo-with-fzf.sh
: create an interactive UI for topydo with fzfrefresh-topydo-auto-with-entr.sh
: refresh automatically topydo (todo.txt) display using entrremove-all-osx-cache-dirs.sh
: remove all__MACOSX
cache dirs with locate and xargssysexits-values.sh
: standardexit(1)
code constantsttrss-to-shaarli.sh
: script to export ttrss starred articles and import them in Shaarlixclip-or-xsel.sh
: mini-cheatsheet toxclip
andxsel
(manipulate X11 clipboard from command-line)
find-termcap-name.zsh
: take a key as input, then print the corresponding termcap nameoptions-status.zsh
: show current status of all options (think setopt/unsetopt)print-all-termcaps.zsh
: print all termcap names and values (in hex, withxxd(1)
, for readability)print-associative.zsh
: print keys and values of an associative array zsh variableremove-empty-files-with-glob-quals.zsh
: using glob quals (metadata matching), remove empty fileszmv-rename-files-keeping-their-extension.zsh
: using zmv, rename files and keeping their extension
All content here is licensed under the UNLICENSE. See UNLICENSE file.