neulab/tldr huggingface dataset:
# print standard input to the terminal, and also pipe it into another program for further processing
echo "example" | tee {{/dev/tty}} | {{xargs printf "[%s]"}}
# create a directory called "example", count the number of characters in "example" and write "example" to the terminal
echo "example" | tee >(xargs mkdir) >(wc -c)
# clone a github repository locally
gh repo clone {{owner}}/{{repository}}
# create a new issue
gh issue create
# view and filter the open issues of the current repository
gh issue list
# view an issue in the browser
gh issue view --web {{issue_number}}
# create a pull request
gh pr create
# view a pull request in the browser
gh pr view --web {{pr_number}}
# locally check out the branch of a pull request, given its number
gh pr checkout {{pr_number}}
# check the status of a repository's pull requests
gh pr status
# display help about formatting json output from `gh` using `jq`
gh formatting
# find files by extension
find {{root_path}} -name '{{*.ext}}'
# find files matching multiple path/name patterns
find {{root_path}} -path '{{**/path/**/*.ext}}' -or -name '{{*pattern*}}'
# find directories matching a given name, in caseinsensitive mode
find {{root_path}} -type d -iname '{{*lib*}}'
# find files matching a given pattern, excluding specific paths
find {{root_path}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'
# find files matching a given size range
find {{root_path}} -size {{+500k}} -size {{-10M}}
# run a command for each file (use `{}` within the command to access the filename)
find {{root_path}} -name '{{*.ext}}' -exec {{wc -l {} }}\;
# find files modified in the last 7 days and delete them
find {{root_path}} -daystart -mtime -{{7}} -delete
# find empty (0 byte) files and delete them
find {{root_path}} -type {{f}} -empty -delete
# read jpeg image from a file and print in ascii
jp2a {{path/to/image.jpeg}}
# read jpeg image from a url and print in ascii
jp2a {{www.example.com/image.jpeg}}
# colorize the ascii output
jp2a --colors {{path/to/image.jpeg}}
# specify characters to be used for the ascii output
jp2a --chars='{{..-ooxx@@}}' {{path/to/image.jpeg}}
# write the ascii output into a file
jp2a --output={{path/to/output_file.txt}} {{path/to/image.jpeg}}
# write the ascii output in html file format, suitable for viewing in web browsers
jp2a --html --output={{path/to/output_file.html}} {{path/to/image.jpeg}}
# list available templates
git ignore-io list
# generate a .gitignore template
git ignore-io {{item_a,item_b,item_n}}
# search for a query on google(default provider)
s {{query}}
# list all providers
s --list-providers
# search for a query with a given provider
s --provider {{provider}} {{query}}
# use a specified binary to perform the search query
s --binary "{{binary}} {{arguments}}" {{query}}
# list all tags
git tag
# create a tag with the given name pointing to the current commit
git tag {{tag_name}}
# create a tag with the given name pointing to a given commit
git tag {{tag_name}} {{commit}}
# create an annotated tag with the given message
git tag {{tag_name}} -m {{tag_message}}
# delete the tag with the given name
git tag -d {{tag_name}}
# get updated tags from upstream
git fetch --tags
# list all tags whose ancestors include a given commit
git tag --contains {{commit}}
# search a single directory
jdupes {{directory}}
# search multiple directories
jdupes {{directory1}} {{directory2}}
# search all directories recursively
jdupes --recurse {{directory}}
# search directory recursively and let user choose files to preserve
jdupes --delete --recurse {{directory}}
# search multiple directories and follow subdirectores under directory2, not directory1
jdupes {{directory1}} --recurse: {{directory2}}
# search multiple directories and keep the directory order in result
jdupes -O {{directory1}} {{directory2}} {{directory3}}
# search the path environment variable and display the location of any matching executables
which {{executable}}
# if there are multiple executables which match, display all
which -a {{executable}}
# format a file and display the result to the console
gofmt {{source.go}}
# format a file, overwriting the original file inplace
gofmt -w {{source.go}}
# format a file, and then simplify the code, overwriting the original file
gofmt -s -w {{source.go}}
# print all (including spurious) errors
gofmt -e {{source.go}}
# list hosts belonging to a group
ansible {{group}} --list-hosts
# ping a group of hosts by invoking the ping module
ansible {{group}} -m ping
# display facts about a group of hosts by invoking the setup module
ansible {{group}} -m setup
# execute a command on a group of hosts by invoking command module with arguments
ansible {{group}} -m command -a '{{my_command}}'
# execute a command with administrative privileges
ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'
# execute a command using a custom inventory file
ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'
# list the groups in an inventory
ansible localhost -m debug -a '{{var=groups.keys()}}'
# unmount a fuse filesystem
fusermount -u {{path/to/mount_point}}
# unmount a fuse filesystem as soon as it becomes unused
fusermount -z {{path/to/mount_point}}
# display version
fusermount --version
# list files and directories, one per line
lsd -1
# list all files and directories, including hidden ones, in the current directory
lsd -a
# list all files and directories with trailing `/` added to directory names
lsd -F
# list all files and directories in long format (permissions, ownership, size, and modification date)
lsd -la
# list all files and directories in long format with size displayed using humanreadable units (kib, mib, gib)
lsd -lh
# list all files and directories in long format, sorted by size (descending)
lsd -lS
# list all files and directories in long format, sorted by modification date (oldest first)
lsd -ltr
# only list directories
lsd -d {{*/}}
# recursively search the current directory for a regular expression
rg {{regular_expression}}
# search for regular expressions recursively in the current directory, including hidden files and files listed in `.gitignore`
rg --no-ignore --hidden {{regular_expression}}
# search for a regular expression only in a certain filetype (e.g. html, css, etc.)
rg --type {{filetype}} {{regular_expression}}
# search for a regular expression only in a subset of directories
rg {{regular_expression}} {{set_of_subdirs}}
# search for a regular expression in files matching a glob (e.g. `readme.*`)
rg {{regular_expression}} --glob {{glob}}
# only list matched files (useful when piping to other commands)
rg --files-with-matches {{regular_expression}}
# show lines that do not match the given regular expression
rg --invert-match {{regular_expression}}
# search a literal string pattern
rg --fixed-strings -- {{string}}
# open a file in write mode without parsing the file format headers
radare2 -nw {{path/to/binary}}
# debug a program
radare2 -d {{path/to/binary}}
# run a script before entering the interactive cli
radare2 -i {{path/to/script.r2}} {{path/to/binary}}
# show help text for any command in the interactive cli
> {{radare2_command}}?
# run a shell command from the interactive cli
> !{{shell_command}}
# dump raw bytes of current block to a file
> pr > {{path/to/file.bin}}
# calculate the sha256 checksum for a file
sha256sum {{path/to/file}}
# calculate sha256 checksums for multiple files
sha256sum {{path/to/file1}} {{path/to/file2}}
# calculate and save the list of sha256 checksums to a file
sha256sum {{path/to/file1}} {{path/to/file2}} > {{path/to/file.sha256}}
# read a file of sha256 sums and verify all files have matching checksums
sha256sum --check {{path/to/file.sha256}}
# only show a message for files for which verification fails
sha256sum --check --quiet {{path/to/file.sha256}}
# convert file to a specific encoding, and print to stdout
iconv -f {{from_encoding}} -t {{to_encoding}} {{input_file}}
# convert file to the current locale's encoding, and output to a file
iconv -f {{from_encoding}} {{input_file}} > {{output_file}}
# list supported encodings
iconv -l
# compress a file to the xz file format
xz {{file}}
# decompress a xz file
xz -d {{file.xz}}
# compress a file to the lzma file format
xz --format={{lzma}} {{file}}
# decompress an lzma file
xz -d --format={{lzma}} {{file.lzma}}
# decompress a file and write to stdout
xz -dc {{file.xz}}
# compress a file, but don't delete the original
xz -k {{file}}
# compress a file using the fastest compression
xz -0 {{file}}
# compress a file using the best compression
xz -9 {{file}}
# apply a patch using a diff file (filenames must be included in the diff file)
patch < {{patch.diff}}
# apply a patch to a specific file
patch {{path/to/file}} < {{patch.diff}}
# patch a file writing the result to a different file
patch {{path/to/input_file}} -o {{path/to/output_file}} < {{patch.diff}}
# apply a patch to the current directory
patch -p1 < {{patch.diff}}
# apply the reverse of a patch
patch -R < {{patch.diff}}
# display the man page for a command
man {{command}}
# display the man page for a command from section 7
man {{7}} {{command}}
# display the path searched for manpages
man --path
# display the location of a manpage rather than the manpage itself
man -w {{command}}
# display the man page using a specific locale
man {{command}} --locale={{locale}}
# search for manpages containing a search string
man -k "{{search_string}}"
# convert tabs in each file to spaces, writing to standard output
expand {{file}}
# convert tabs to spaces, reading from standard input
expand
# do not convert tabs after non blanks
expand -i {{file}}
# have tabs a certain number of characters apart, not 8
expand -t={{number}} {{file}}
# use a comma separated list of explicit tab positions
expand -t={{1,4,6}}
# unlock the bootloader
fastboot oem unlock
# relock the bootloader
fastboot oem lock
# reboot the device from fastboot mode into fastboot mode again
fastboot reboot bootloader
# flash a given image
fastboot flash {{file.zip}}
# flash a custom recovery image
fastboot flash recovery {{file.img}}
# display connected devices
fastboot devices
# display all information of a device
fastboot getvar all
# identify all duplicates in a given directory and output a summary
rdfind -dryrun true {{path/to/directory}}
# replace all duplicates with hardlinks
rdfind -makehardlinks true {{path/to/directory}}
# replace all duplicates with symlinks/soft links
rdfind -makesymlinks true {{path/to/directory}}
# delete all duplicates and do not ignore empty files
rdfind -deleteduplicates true -ignoreempty false {{path/to/directory}}
# open a file
less {{source_file}}
# page down / up
<Space> (down), b (up)
# go to end / start of file
G (end), g (start)
# forward search for a string (press `n`/`n` to go to next/previous match)
/{{something}}
# backward search for a string (press `n`/`n` to go to next/previous match)
?{{something}}
# follow the output of the currently opened file
F
# open the current file in an editor
v
# open a pdf on the first page
mupdf {{filename}}
# open a pdf on page 3
mupdf {{filename}} {{3}}
# open a password secured pdf
mupdf -p {{password}} {{filename}}
# open a pdf with an initial zoom level, specified as dpi, of 72
mupdf -r {{72}} {{filename}}
# open a pdf with inverted color
mupdf -I {{filename}}
# open a pdf tinted red #ff0000 (hexadecimal color syntax rrggbb)
mupdf -C {{FF0000}}
# open a pdf without antialiasing (0 = off, 8 = best)
mupdf -A {{0}}
# switch to superuser (requires the root password)
su
# switch to a given user (requires the user's password)
su {{username}}
# switch to a given user and simulate a full login shell
su - {{username}}
# execute a command as another user
su - {{username}} -c "{{command}}"
# generate a c project with a given name and version
meson init --language={{c}} --name={{myproject}} --version={{0.1}}
# configure the `builddir` with default values
meson setup {{build_dir}}
# build the project
meson compile -C {{path/to/build_dir}}
# show the help
meson --help
# show version info
meson --version
# interactively select a workflow to view the latest jobs for
gh workflow view
# view a specific workflow in the default browser
gh workflow view {{id|workflow_name|filename.yml}} --web
# display the yaml definition of a specific workflow
gh workflow view {{id|workflow_name|filename.yml}} --yaml
# display the yaml definition for a specific git branch or tag
gh workflow view {{id|workflow_name|filename.yml}} --ref {{branch_or_tag_name}} --yaml
# list workflow files (use `all` to include disabled workflows)
gh workflow list
# run a manual workflow with parameters
gh workflow run {{id|workflow_name|filename.yml}} --raw-field {{param1}}={{value1}} --raw-field {{param2}}={{value2}}
# run a manual workflow using a specific branch or tag with json parameters from stdin
echo '{{{"param1":"value1", "param2":"value2"}}}' | gh workflow run {{id|workflow_name|filename.yml}} --ref {{branch_or_tag_name}}
# enable or disable a specific workflow
gh workflow {{enable|disable}} {{id|workflow_name|filename.yml}}
# display general help
gh help
# display help for the `gh help` subcommand
gh help --help
# display a markdown reference of all `gh` commands
gh help reference
# display help for a subcommand
gh help {{subcommand}}
# display help for a subcommand action
gh help {{pr}} {{create}}
# download a torrent
deluge {{url|magnet|path/to/file}}
# download a torrent using a specific configuration file
deluge -c {{path/to/configuration_file}} {{url|magnet|path/to/file}}
# download a torrent and launch the specified user interface
deluge -u {{gtk|web|console}} {{url|magnet|path/to/file}}
# download a torrent and output the log to a file
deluge -l {{path/to/log_file}} {{url|magnet|path/to/file}}
# copy a local file to a remote host
scp {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}
# use a specific port when connecting to the remote host
scp -P {{port}} {{path/to/local_file}} {{remote_host}}:{{path/to/remote_file}}
# copy a file from a remote host to a local directory
scp {{remote_host}}:{{path/to/remote_file}} {{path/to/local_directory}}
# recursively copy the contents of a directory from a remote host to a local directory
scp -r {{remote_host}}:{{path/to/remote_directory}} {{path/to/local_directory}}
# copy a file between two remote hosts transferring through the local host
scp -3 {{host1}}:{{path/to/remote_file}} {{host2}}:{{path/to/remote_directory}}
# use a specific username when connecting to the remote host
scp {{path/to/local_file}} {{remote_username}}@{{remote_host}}:{{path/to/remote_directory}}
# use a specific ssh private key for authentication with the remote host
scp -i {{~/.ssh/private_key}} {{local_file}} {{remote_host}}:{{/path/remote_file}}
# view security context of a file
ls -lZ {{path/to/file}}
# change the security context of a target file, using a reference file
chcon --reference={{reference_file}} {{target_file}}
# change the full selinux security context of a file
chcon {{user}}:{{role}}:{{type}}:{{range/level}} {{filename}}
# change only the user part of selinux security context
chcon -u {{user}} {{filename}}
# change only the role part of selinux security context
chcon -r {{role}} {{filename}}
# change only the type part of selinux security context
chcon -t {{type}} {{filename}}
# change only the range/level part of selinux security context
chcon -l {{range/level}} {{filename}}
# print the value of a git logical variable
git var {{GIT_AUTHOR_IDENT|GIT_COMMITTER_IDENT|GIT_EDITOR|GIT_PAGER}}
# [l]ist all git logical variables
git var -l
# print the hexadecimal representation of a file
hexyl {{path/to/file}}
# print the hexadecimal representation of the first n bytes of a file
hexyl -n {{n}} {{path/to/file}}
# print bytes 512 through 1024 of a file
hexyl -r {{512}}:{{1024}} {{path/to/file}}
# print 512 bytes starting at the 1024th byte
hexyl -r {{1024}}:+{{512}} {{path/to/file}}
# compile a source file
ocamlopt -o {{path/to/binary}} {{path/to/source_file.ml}}
# compile with debugging enabled
ocamlopt -g -o {{path/to/binary}} {{path/to/source_file.ml}}
# display credential information, retrieving the username and password from configuration files
echo "{{url=http://example.com}}" | git credential fill
# send credential information to all configured credential helpers to store for later use
echo "{{url=http://example.com}}" | git credential approve
# erase the specified credential information from all the configured credential helpers
echo "{{url=http://example.com}}" | git credential reject
# list currently running docker containers
docker ps
# list all docker containers (running and stopped)
docker ps -a
# start a container from an image, with a custom name
docker run --name {{container_name}} {{image}}
# start or stop an existing container
docker {{start|stop}} {{container_name}}
# pull an image from a docker registry
docker pull {{image}}
# open a shell inside a running container
docker exec -it {{container_name}} {{sh}}
# remove a stopped container
docker rm {{container_name}}
# fetch and follow the logs of a container
docker logs -f {{container_name}}
# configure for first use
notmuch setup
# add a tag for all messages matching a search term
notmuch tag +{{custom_tag}} "{{search_term}}"
# remove a tag for all messages matching a search term
notmuch tag -{{custom_tag}} "{{search_term}}"
# count messages matching the given search term
notmuch count --output={{messages|threads}} "{{search_term}}"
# search for messages matching the given search term
notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} "{{search_term}}"
# limit the number of search results to x
notmuch search --format={{json|text}} --output={{summary|threads|messages|files|tags}} --limit={{X}} "{{search_term}}"
# create a reply template for a set of messages
notmuch reply --format={{default|headers-only}} --reply-to={{sender|all}} "{{search_term}}"
# move file inside the repo and add the movement to the next commit
git mv {{path/to/file}} {{new/path/to/file}}
# rename file and add renaming to the next commit
git mv {{filename}} {{new_filename}}
# overwrite the file in the target path if it exists
git mv --force {{file}} {{target}}
# start an ssh agent for the current shell
eval $(ssh-agent)
# kill the currently running agent
ssh-agent -k
# show detailed configuration of all mounted zfs zpools
zdb
# show detailed configuration for a specific zfs pool
zdb -C {{poolname}}
# show statistics about number, size and deduplication of blocks
zdb -b {{poolname}}
# start an interactive `yacas` session
yacas
# while in a `yacas` session, execute a statement
{{Integrate(x)Cos(x)}};
# while in a `yacas` session, display an example
{{Example()}};
# quit from a `yacas` session
{{quit}}
# execute one or more `yacas` scripts (without terminal or prompts), then exit
yacas -p -c {{path/to/script1}} {{path/to/script2}}
# execute and print the result of one statement, then exit
echo "{{Echo( Deriv(x)Cos(1/x) );}}" | yacas -p -c /dev/stdin
# start php's builtin web server for the current laravel application
php artisan serve
# start an interactive php commandline interface
php artisan tinker
# generate a new eloquent model class with a migration, factory and resource controller
php artisan make:model {{ModelName}} --all
# rename the branch you are currently on
git rename-branch {{new_branch_name}}
# rename a specific branch
git rename-branch {{old_branch_name}} {{new_branch_name}}
# prettyprint a csv file in a tabular format
mlr --icsv --opprint cat {{example.csv}}
# receive json data and pretty print the output
echo '{"hello":"world"}' | mlr --ijson --opprint cat
# sort alphabetically on a field
mlr --icsv --opprint sort -f {{field}} {{example.csv}}
# sort in descending numerical order on a field
mlr --icsv --opprint sort -nr {{field}} {{example.csv}}
# convert csv to json, performing calculations and display those calculations
mlr --icsv --ojson put '${{newField1}} = ${{oldFieldA}}/${{oldFieldB}}' {{example.csv}}
# receive json and format the output as vertical json
echo '{"hello":"world", "foo":"bar"}' | mlr --ijson --ojson --jvstack cat
# filter lines of a compressed csv file treating numbers as strings
mlr --prepipe 'gunzip' --csv filter -S '${{fieldName}} =~ "{{regular_expression}}"' {{example.csv.gz}}
# download the contents of a url to a file (named "foo" in this case)
wget {{https://example.com/foo}}
# download the contents of a url to a file (named "bar" in this case)
wget --output-document {{bar}} {{https://example.com/foo}}
# download a single web page and all its resources with 3second intervals between requests (scripts, stylesheets, images, etc.)
wget --page-requisites --convert-links --wait=3 {{https://example.com/somepage.html}}
# download all listed files within a directory and its subdirectories (does not download embedded page elements)
wget --mirror --no-parent {{https://example.com/somepath/}}
# limit the download speed and the number of connection retries
wget --limit-rate={{300k}} --tries={{100}} {{https://example.com/somepath/}}
# download a file from an http server using basic auth (also works for ftp)
wget --user={{username}} --password={{password}} {{https://example.com}}
# continue an incomplete download
wget --continue {{https://example.com}}
# download all urls stored in a text file to a specific directory
wget --directory-prefix {{path/to/directory}} --input-file {{URLs.txt}}
# transform a raw html file into a cleaned, indented, and colored format
cat {{index.html}} | pup --color
# filter html by element tag name
cat {{index.html}} | pup '{{tag}}'
# filter html by id
cat {{index.html}} | pup '{{div#id}}'
# filter html by attribute value
cat {{index.html}} | pup '{{input[type="text"]}}'
# print all text from the filtered html elements and their children
cat {{index.html}} | pup '{{div}} text{}'
# print html as json
cat {{index.html}} | pup '{{div}} json{}'
# view documentation for the original command
tldr pio debug
# initialize an elm project, generates an elm.json file
elm init
# start interactive elm shell
elm repl
# compile an elm file, output the result to an `index.html` file
elm make {{source}}
# compile an elm file, output the result to a javascript file
elm make {{source}} --output={{destination}}.js
# start local web server that compiles elm files on page load
elm reactor
# install elm package from https//package.elmlang.org
elm install {{author}}/{{package}}
# query an ldap server for all items that are a member of the given group and return the object's displayname value
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' displayName
# query an ldap server with a nonewline password file for all items that are a member of the given group and return the object's displayname value
ldapsearch -D '{{admin_DN}}' -y '{{password_file}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' displayName
# return 5 items that match the given filter
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' -z 5 displayName
# wait up to 7 seconds for a response
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '{{memberOf=group1}}' -l 7 displayName
# invert the filter
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} -b {{base_ou}} '(!(memberOf={{group1}}))' displayName
# return all items that are part of multiple groups, returning the display name for each item
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(&({{memberOf=group1}})({{memberOf=group2}})({{memberOf=group3}}))' "displayName"
# return all items that are members of at least 1 of the specified groups
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(|({{memberOf=group1}})({{memberOf=group1}})({{memberOf=group3}}))' displayName
# combine multiple boolean logic filters
ldapsearch -D '{{admin_DN}}' -w '{{password}}' -h {{ldap_host}} '(&({{memberOf=group1}})({{memberOf=group2}})(!({{memberOf=group3}})))' displayName
# display the subcommand help
gh api --help
# display the releases for the current repository in json format
gh api repos/:owner/:repo/releases
# create a reaction for a specific issue
gh api --header {{Accept:application/vnd.github.squirrel-girl-preview+json}} --raw-field '{{content=+1}}' {{repos/:owner/:repo/issues/123/reactions}}
# display the result of a graphql query in json format
gh api graphql --field {{name=':repo'}} --raw-field '{{query}}'
# send a request using a custom http method
gh api --method {{POST}} {{endpoint}}
# include the http response headers in the output
gh api --include {{endpoint}}
# do not print the response body
gh api --silent {{endpoint}}
# send a request to a specific github enterprise server
gh api --hostname {{github.example.com}} {{endpoint}}
# list all docker images
docker images
# list all docker images including intermediates
docker images --all
# list the output in quiet mode (only numeric ids)
docker images --quiet
# list all docker images not used by any container
docker images --filter dangling=true
# list images that contain a substring in their name
docker images "{{*name*}}"
# start the interactive console interface
deluge-console
# connect to a deluge daemon instance
connect {{hostname}}:{{port}}
# add a torrent to the daemon
add {{url|magnet|path/to/file}}
# display information about all torrents
info
# display information about a specific torrent
info {{torrent_id}}
# pause a torrent
pause {{torrent_id}}
# resume a torrent
resume {{torrent_id}}
# remove a torrent from the daemon
rm {{torrent_id}}
# delete a ref, useful for soft resetting the first commit
git update-ref -d {{HEAD}}
# update ref with a message
git update-ref -m {{message}} {{HEAD}} {{4e95e05}}
# list layers of a geopackage
ogrinfo {{input}}.gpkg
# get detailed information about a specific layer of a geopackage
ogrinfo {{input}}.gpkg {{layer_name}}
# only show summary information about a specific layer of a geopackage
ogrinfo -so {{input}}.gpkg {{layer_name}}
# open the specified mailbox
mutt -f {{mailbox}}
# send an email and specify a subject and a cc recipient
mutt -s {{subject}} -c {{cc@example.com}} {{recipient@example.com}}
# send an email with files attached
mutt -a {{file1}} {{file2}} -- {{recipient@example.com}}
# specify a file to include as the message body
mutt -i {{file}} {{recipient@example.com}}
# specify a draft file containing the header and the body of the message, in rfc 5322 format
mutt -H {{file}} {{recipient@example.com}}
# list all available plugins
asdf plugin-list-all
# install a plugin
asdf plugin-add {{name}}
# list all available versions for a package
asdf list-all {{name}}
# install a specific version of a package
asdf install {{name}} {{version}}
# set global version for a package
asdf global {{name}} {{version}}
# set local version for a package
asdf local {{name}} {{version}}
# check for typos in all text files in the current directory, recursively
codespell
# correct all typos found inplace
codespell --write-changes
# skip files with names that match the specified pattern (accepts a commaseparated list of patterns using wildcards)
codespell --skip "{{pattern}}"
# use a custom dictionary file when checking (`dictionary` can be used multiple times)
codespell --dictionary {{path/to/file.txt}}
# do not check words that are listed in the specified file
codespell --ignore-words {{path/to/file.txt}}
# do not check the specified words
codespell --ignore-words-list {{words,to,ignore}}
# print 3 lines of context around, before or after each match
codespell --{{context|before-context|after-context}} {{3}}
# check file names for typos, in addition to file contents
codespell --check-filenames
# play a midi file
timidity {{path/to/file.mid}}
# play a midi file in a loop
timidity --loop {{path/to/file.mid}}
# play a midi file in a specific key (0 = c major/a minor, 1 = f major/d minor, +1 = g major/e minor, etc.)
timidity --force-keysig={{-flats|+sharps}} {{path/to/file.mid}}
# convert a midi file to pcm (wav) audio
timidity --output-mode={{w}} --output-file={{path/to/file.wav}} {{path/to/file.mid}}
# convert a midi file to flac audio
timidity --output-mode={{F}} --output-file={{path/to/file.flac}} {{path/to/file.mid}}
# convert a file to a c source file and header and display it to the console
wasm2c {{file.wasm}}
# write the output to a given file (`file.h` gets additionally generated)
wasm2c {{file.wasm}} -o {{file.c}}
# display information about an existing mp4 file
mp4box -info {{filename}}
# add an srt subtitle file into an mp4 file
mp4box -add {{input_subs.srt}}:lang=eng -add {{input.mp4}} {{output.mp4}}
# combine audio from one file and video from another
mp4box -add {{input1.mp4}}#audio -add {{input2.mp4}}#video {{output.mp4}}
# bundle the edges of one or more graph layouts (that already have layout information)
mingle {{path/to/layout1.gv}} {{path/to/layout2.gv ...}} > {{path/to/output.gv}}
# perform layout, bundling, and output to a picture with one command
dot {{path/to/input.gv}} | mingle | dot -T {{png}} > {{path/to/output.png}}
# display help for `mingle`
mingle -?
# log in to your lastpass account, by entering your master password when prompted
lpass login {{username}}
# show login status
lpass status
# list all sites grouped by category
lpass ls
# generate a new password for gmail.com with the identifier `myinbox` and add to lastpass
lpass generate --username {{username}} --url {{gmail.com}} {{myinbox}} {{password_length}}
# show password for a specified entry
lpass show {{myinbox}} --password
# start a tetris game
bastet
# navigate the piece horizontally
{{Left|Right}} arrow key
# rotate the piece clockwise or counterclockwise
{{Spacebar|Up arrow key}}
# soft drop the piece
Down arrow key
# hard drop the piece
Enter
# pause the game
p
# quit the game
Ctrl + C
# print an ascii cow saying "hello, world"
cowsay "{{hello, world}}"
# print an ascii cow saying text from stdin
echo "{{hello, world}}" | cowsay
# list all available art types
cowsay -l
# print the specified ascii art saying "hello, world"
cowsay -f {{art}} "{{hello, world}}"
# print a dead thinking ascii cow
cowthink -d "{{I'm just a cow, not a great thinker...}}"
# print an ascii cow with custom eyes saying "hello, world"
cowsay -e {{characters}} "{{hello, world}}"