neulab/tldr huggingface dataset:
# read and execute commands from stdin
bash -s
# print the bash version (`$bash_version` contains the version without license information)
bash --version
# exit the shell with the exit code of the last command executed
exit
# exit the shell with the specified exit code
exit {{exit_code}}
# list all accepted, unaccepted and rejected minion keys
salt-key -L
# accept a minion key by name
salt-key -a {{MINION_ID}}
# reject a minion key by name
salt-key -r {{MINION_ID}}
# print fingerprints of all public keys
salt-key -F
# view documentation for the original command
tldr python
# time "ls"
time ls
# bundle a node.js application
ncc build {{path/to/file.js}}
# bundle and minify a node.js application
ncc build --minify {{path/to/file.js}}
# bundle and minify a node.js application and generate source maps
ncc build --source-map {{path/to/file.js}}
# automatically recompile on changes to source files
ncc build --watch {{path/to/file.js}}
# bundle a node.js application into a temporary directory and run it for testing
ncc run {{path/to/file.js}}
# clean the `ncc` cache
ncc clean cache
# check tags for a gpg signature
git verify-tag {{tag1 optional_tag2 ...}}
# check tags for a gpg signature and show details for each tag
git verify-tag {{tag1 optional_tag2 ...}} --verbose
# check tags for a gpg signature and print the raw details
git verify-tag {{tag1 optional_tag2 ...}} --raw
# remove the top directory from the stack and cd to it
popd
# remove the nth directory (starting from zero to the left from the list printed with `dirs`)
popd +N
# remove the nth directory (starting from zero to the right from the list printed with `dirs`)
popd -N
# open a new alacritty window
alacritty
# run in a specific directory
alacritty --working-directory {{path/to/directory}}
# run a command in a new alacritty window
alacritty -e {{command}}
# specify alternative configuration file (defaults to `$xdg_config_home/alacritty/alacritty.yml`)
alacritty --config-file {{path/to/config.yml}}
# run with live config reload enabled (can also be enabled by default in `alacritty.yml`)
alacritty --live-config-reload --config-file {{path/to/config.yml}}
# stop a storage pool specified by name or uuid (determine using `virsh poollist`)
virsh pool-destroy --pool {{name|uuid}}
# archive a file, replacing it with a 7zipped compressed version
p7zip {{path/to/file}}
# archive a file keeping the input file
p7zip -k {{path/to/file}}
# decompress a file, replacing it with the original uncompressed version
p7zip -d {{compressed.ext}}.7z
# decompress a file keeping the input file
p7zip -d -k {{compressed.ext}}.7z
# skip some checks and force compression or decompression
p7zip -f {{path/to/file}}
# start ed, editing an empty document (which can be saved as a new file in the current directory)
ed
# start ed, editing an empty document, with `` as a command prompt indicator
ed -p :
# start ed editing an existing file (this shows the byte count of the loaded file)
ed -p : {{path/to/file}}
# toggle the printing of error explanations. (by default, explanations are not printed and only a `?` appears)
H
# add text to the current document. mark completion by entering a period by itself in a new line
a<Enter>{{text_to_insert}}<Enter>.
# print the entire document (`,` is a shortcut to the range `1,$` which covers the start to the end of the document)
,p
# write the current document to a new file (the filename can be omitted if `ed` was called with an existing file)
w {{filename}}
# quit ed
q
# generate a new keypair at the default location
minisign -G
# sign a file
minisign -Sm {{path/to/file}}
# sign a file, adding a trusted (signed) and an untrusted (unsigned) comment in the signature
minisign -Sm {{path/to/file}} -c "{{Untrusted comment}}" -t "{{Trusted comment}}"
# verify a file and the trusted comments in its signature using the specified public key file
minisign -Vm {{path/to/file}} -p {{path/to/publickey.pub}}
# verify a file and the trusted comments in its signature, specifying a public key as a base64 encoded literal
minisign -Vm {{path/to/file}} -P "{{public_key_base64}}"
# start toplike i/o monitor
sudo iotop
# show only processes or threads actually doing i/o
sudo iotop --only
# show i/o usage in noninteractive mode
sudo iotop --batch
# show only i/o usage of processes (default is to show all threads)
sudo iotop --processes
# show i/o usage of given pid(s)
sudo iotop --pid={{PID}}
# show i/o usage of a given user
sudo iotop --user={{user}}
# show accumulated i/o instead of bandwidth
sudo iotop --accumulated
# print the absolute path of the current git repository
git root
# print the current working directory relative to the root of the current git repository
git root --relative
# turn on redshift with 5700k temperature during day and 3600k at night
redshift -t {{5700}}:{{3600}}
# turn on redshift with a manually specified custom location
redshift -l {{latitude}}:{{longitude}}
# turn on redshift with 70% screen brightness during day and 40% brightness at night
redshift -b {{0.7}}:{{0.4}}
# turn on redshift with custom gamma levels (between 0 and 1)
redshift -g {{red}}:{{green}}:{{blue}}
# turn on redshift with a constant unchanging color temperature
redshift -O {{temperature}}
# extract name and version field
recsel -p name,version {{data.rec}}
# use "~" to match a string with a given regular expression
recsel -e "{{field_name}} ~ '{{regular_expression}}' {{data.rec}}"
# use a predicate to match a name and a version
recsel -e "name ~ '{{regular_expression}}' && version ~ '{{regular_expression}}'" {{data.rec}}
# format a single file
uncrustify -f {{path/to/file.cpp}} -o {{path/to/output.cpp}}
# read filenames from stdin, and take backups before writing output back to the original filepaths
find . -name "*.cpp" | uncrustify -F - --replace
# don't make backups (useful if files are under version control)
find . -name "*.cpp" | uncrustify -F - --no-backup
# use a custom configuration file and write the result to stdout
uncrustify -c {{path/to/uncrustify.cfg}} -f {{path/to/file.cpp}}
# explicitly set a configuration variable's value
uncrustify --set {{option}}={{value}}
# generate a new configuration file
uncrustify --update-config -o {{path/to/new.cfg}}
# play an audio source exactly n times (n=0 means forever)
mpg321 -l {{N}} {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}
# play a directory recursively
mpg321 -B {{path/to/directory}}
# enable basic keys ( `*` or `/`  increase or decrease volume, `n`  skip song, `m`  mute/unmute.) while playing
mpg321 -K {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}
# play files randomly until interrupted
mpg321 -Z {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}
# shuffle the files before playing them once
mpg321 -z {{path/to/file_a|URL}} {{path/to/file_b|URL}} {{...}}
# play all files in the current directory and subdirectories, randomly (until interrupted), with basic keys enabled
mpg321 -B -Z -K .
# start scim
scim {{filename}}.csv
# enter a string into the current cell
< or >
# enter a numeric constant into the current cell
=
# edit string in the current cell
E
# edit number in the current cell
e
# center align the current cell
|
# create a package tarball from the current directory
pio package pack --output {{path/to/package.tar.gz}}
# create and publish a package tarball from the current directory
pio package publish
# publish the current directory and restrict public access to it
pio package publish --private
# publish a package
pio package publish {{path/to/package.tar.gz}}
# publish a package with a custom release date (utc)
pio package publish {{path/to/package.tar.gz}} --released-at "{{2021-04-08 21:15:38}}"
# remove all versions of a published package from the registry
pio package unpublish {{package_name}}
# remove a specific version of a published package from the registry
pio package unpublish {{package_name}}@{{version}}
# undo the removal, putting all versions or a specific version of the package back into the registry
pio package unpublish --undo {{package_name}}@{{version}}
# start the daemon
pppd
# create a new project
pipenv
# create a new project using python 3
pipenv --three
# install a package
pipenv install {{package_name}}
# install all the dependencies for a project
pipenv install
# install all the dependencies for a project (including dev packages)
pipenv install --dev
# uninstall a package
pipenv uninstall {{package_name}}
# start a shell within the created virtual environment
pipenv shell
# generate a `requirements.txt` (list of dependencies) for a project
pipenv lock --requirements
# start a repl (interactive shell)
clj
# execute a function
clj -X {{namespace/function_name}}
# run the main function of a specified namespace
clj -M -m {{namespace}} {{args}}
# prepare a project by resolving dependencies, downloading libraries, and making / caching classpaths
clj -P
# start an nrepl server with the cider middleware
clj -Sdeps '{:deps {nrepl {:mvn/version "0.7.0"} cider/cider-nrepl {:mvn/version "0.25.2"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' --interactive
# start a repl for clojurescript and open a web browser
clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' --main cljs.main --repl
# compile a shell script
shc -f {{script}}
# compile a shell script and specify an output binary file
shc -f {{script}} -o {{binary}}
# compile a shell script and set an expiration date for the executable
shc -f {{script}} -e {{dd/mm/yyyy}}
# compile a shell script and set a message to display upon expiration
shc -f {{script}} -e {{dd/mm/yyyy}} -m "{{Please contact your provider}}"
# compile a typescript file `foobar.ts` into a javascript file `foobar.js`
tsc {{foobar.ts}}
# compile a typescript file into javascript using a specific target syntax (default is `es3`)
tsc --target {{ES5|ES2015|ES2016|ES2017|ES2018|ESNEXT}} {{foobar.ts}}
# compile a typescript file into a javascript file with a custom name
tsc --outFile {{output.js}} {{input.ts}}
# compile all `.ts` files of a typescript project defined in a `tsconfig.json` file
tsc --build {{tsconfig.json}}
# run the compiler using commandline options and arguments fetched from a text file
tsc @{{args.txt}}
# typecheck multiple javascript files, and output only the errors
tsc --allowJs --checkJs --noEmit {{src/**/*.js}}
# format tables for `troff` and print it to stdout
cat {{path/to/file.troff}} | tbl
# format tables for `troff` in "compatibility mode"
cat {{path/to/file.troff}} | tbl -C
# format tables for `troff` from a file
tbl {{path/to/file.troff}}
# mark the beginning of a table ("table start")
.TS
# mark the end of the table ("table end")
.TE
# debug the platformio project in the current directory
pio debug
# debug a specific platformio project
pio debug --project-dir {{path/to/platformio_project}}
# debug a specific environment
pio debug --environment {{environment}}
# debug a platformio project using a specific configuration file
pio debug --project-conf {{path/to/platformio.ini}}
# debug a platformio project using the `gdb` debugger
pio debug --interface={{gdb}} {{gdb_options}}
# analyze a heap dump (from `jmap`), view via http on port 7000
jhat {{dump_file.bin}}
# analyze a heap dump, specifying an alternate port for the http server
jhat -p {{port}} {{dump_file.bin}}
# analyze a dump letting `jhat` use up to 8 gb ram (24x dump size recommended)
jhat -J-mx8G {{dump_file.bin}}
# get string length
expr length {{string}}
# evaluate logical or math expression with an operator ('+', '', '*', '&', '|', etc.). special symbols should be escaped
expr {{first_argument}} {{operator}} {{second_argument}}
# get position of the first character in 'string' that matches 'substring'
echo $(expr index {{string}} {{substring}})
# extract part of the string
echo $(expr substr {{string}} {{position_to_start}} {{number_of_characters}}
# extract part of the string which matches a regular expression
echo $(expr {{string}} : '\({{regular_expression}}\)')
# create a backup (user will be prompted for a password)
mysqldump --user {{user}} --password {{database_name}} --result-file={{path/to/file.sql}}
# backup a specific table redirecting the output to a file (user will be prompted for a password)
mysqldump --user {{user}} --password {{database_name}} {{table_name}} > {{path/to/file.sql}}
# backup all databases redirecting the output to a file (user will be prompted for a password)
mysqldump --user {{user}} --password --all-databases > {{path/to/file.sql}}
# backup all databases from a remote host, redirecting the output to a file (user will be prompted for a password)
mysqldump --host={(ip_or_hostname)} --user {{user}} --password --all-databases > ({path/to/file.sql}}
# add a safe target
safe target {{vault_addr}} {{target_name}}
# authenticate the cli client against the vault server, using an authentication token
safe auth {{authentication_token}}
# print the environment variables describing the current target
safe env
# display a tree hierarchy of all reachable keys for a given path
safe tree {{path}}
# move a secret from one path to another
safe move {{old/path/to/secret}} {{new/path/to/secret}}
# generate a new 2048bit ssh keypair and store it
safe ssh {{2048}} {{path/to/secret}}
# set nonsensitive keys for a secret
safe set {{path/to/secret}} {{key}}={{value}}
# set autogenerated password in a secret
safe gen {{path/to/secret}} {{key}}
# launch a gitweb server for the current git repository
git instaweb --start
# listen only on localhost
git instaweb --start --local
# listen on a specific port
git instaweb --start --port {{1234}}
# use a specified http daemon
git instaweb --start --httpd {{lighttpd|apache2|mongoose|plackup|webrick}}
# also autolaunch a web browser
git instaweb --start --browser
# stop the currently running gitweb server
git instaweb --stop
# restart the currently running gitweb server
git instaweb --restart
# log into a gitea server
tea login add --name "{{name}}" --url "{{url}}" --token "{{token}}"
# display all repositories
tea repos ls
# display a list of issues
tea issues ls
# display a list of issues for a specific repository
tea issues ls --repo "{{repository}}"
# create a new issue
tea issues create --title "{{title}}" --body "{{body}}"
# display a list of open pull requests
tea pulls ls
# open the current repository in a browser
tea open
# display the client version
travis version
# authenticate the cli client against the server, using an authentication token
travis login
# list repositories the user has permissions on
travis repos
# encrypt values in `.travis.yml`
travis encrypt {{token}}
# generate a `.travis.yml` file and enable the project
travis init
# log in in gist on this computer
gist --login
# create a gist from any number of text files
gist {{file.txt}} {{file2.txt}}
# create a private gist with a description
gist --private --description "{{A meaningful description}}" {{file.txt}}
# read contents from stdin and create a gist from it
{{echo "hello world"}} | gist
# list your public and private gists
gist --list
# list all public gists for any user
gist --list {{username}}
# update a gist using the id from url
gist --update {{GIST_ID}} {{file.txt}}
# list all active remote agents
pio remote agent list
# start a new remote agent with a specific name and share it with friends
pio remote agent start --name {{agent_name}} --share {{example1@example.com}} --share {{example2@example.com}}
# list devices from specified agents (omit `agent` to specify all agents)
pio remote --agent {{agent_name1}} --agent {{agent_name2}} device list
# connect to the serial port of a remote device
pio remote --agent {{agent_name}} device monitor
# run all targets on a specified agent
pio remote --agent {{agent_name}} run
# update installed core packages, development platforms and global libraries on a specific agent
pio remote --agent {{agent_name}} update
# run all tests in all environments on a specific agent
pio remote --agent {{agent_name}} test
# list all commits on the current branch
git rev-list {{HEAD}}
# list commits more recent than a specific date, on a specific branch
git rev-list --since={{'2019-12-01 00:00:00'}} {{branch_name}}
# list all merge commits on a specific commit
git rev-list --merges {{commit}}
# print the number of commits since a specific tag
git rev-list {{tag_name}}..HEAD --count
# restore dependencies for a .net project or solution in the current directory
dotnet restore
# restore dependencies for a .net project or solution in a specific location
dotnet restore {{path/to/project_or_solution}}
# restore dependencies without caching the http requests
dotnet restore --no-cache
# force all dependencies to be resolved even if the last restore was successful
dotnet restore --force
# restore dependencies using package source failures as warnings
dotnet restore --ignore-failed-sources
# restore dependencies with a specific verbosity level
dotnet restore --verbosity {{quiet|minimal|normal|detailed|diagnostic}}
# send the last commit in the current branch
git send-email -1
# send a given commit
git send-email -1 {{commit}}
# send multiple (e.g. 10) commits in the current branch
git send-email {{-10}}
# send an introductory email message for the patch series
git send-email -{{number_of_commits}} --compose
# review and edit the email message for each patch you're about to send
git send-email -{{number_of_commits}} --annotate
# replace environment variables in stdin and output to stdout
echo '{{$HOME}}' | envsubst
# replace environment variables in an input file and output to stdout
envsubst < {{path/to/input_file}}
# replace environment variables in an input file and output to a file
envsubst < {{path/to/input_file}} > {{path/to/output_file}}
# replace environment variables in an input file from a spaceseparated list
envsubst '{{$USER $SHELL $HOME}}' < {{path/to/input_file}}
# print "hello, world!"
hello
# print "hello, world", the traditional type
hello --traditional
# print a text message
hello --greeting="{{greeting_text}}"
# sort a csv file by column 9
csvsort -c {{9}} {{data.csv}}
# sort a csv file by the "name" column in descending order
csvsort -r -c {{name}} {{data.csv}}
# sort a csv file by column 2, then by column 4
csvsort -c {{2,4}} {{data.csv}}
# sort a csv file without inferring data types
csvsort --no-inference -c {{columns}} {{data.csv}}
# start a remote interactive shell on the emulator/device
adb shell
# get all the properties from emulator or device
adb shell getprop
# revert all runtime permissions to their default
adb shell pm reset-permissions
# revoke a dangerous permission for an application
adb shell pm revoke {{package}} {{permission}}
# trigger a key event
adb shell input keyevent {{keycode}}
# clear the data of an application on an emulator or device
adb shell pm clear {{package}}
# start an activity on emulator/device
adb shell am start -n {{package}}/{{activity}}
# start the home activity on an emulator or device
adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN
# view documentation for the original command
tldr git-cola
# start a new session
tmux
# start a new named session
tmux new -s {{name}}
# list existing sessions
tmux ls
# attach to the most recently used session
tmux attach
# detach from the current session (inside a tmux session)
Ctrl-B d
# create a new window (inside a tmux session)
Ctrl-B c
# switch between sessions and windows (inside a tmux session)
Ctrl-B w
# kill a session by name
tmux kill-session -t {{name}}
# clone an existing repository
git clone {{remote_repository_location}}
# clone an existing repository into a specific directory
git clone {{remote_repository_location}} {{path/to/directory}}
# clone an existing repository and its submodules
git clone --recursive {{remote_repository_location}}
# clone a local repository
git clone -l {{path/to/local/repository}}
# clone quietly
git clone -q {{remote_repository_location}}
# clone an existing repository only fetching the 10 most recent commits on the default branch (useful to save time)
git clone --depth {{10}} {{remote_repository_location}}
# clone an existing repository only fetching a specific branch
git clone --branch {{name}} --single-branch {{remote_repository_location}}
# clone an existing repository using a specific ssh command
git clone --config core.sshCommand="{{ssh -i path/to/private_ssh_key}}" {{remote_repository_location}}