instruction
stringlengths
1
659
input
stringclasses
1 value
output
stringlengths
1
532
Display today's [w]ind and [h]umidity data for your current location
ansiweather -w true -h true
Search for valid credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords
nxc rdp 192.168.178.2 -u path/to/usernames.txt -p path/to/passwords.txt
Take a screenshot after waiting the for specified number of seconds
nxc rdp 192.168.178.2 -u username -p password --screenshot --screentime 10
Take a screenshot in the specified resolution
nxc rdp 192.168.178.2 -u username -p password --screenshot --res 1024x768
Take a screenshot of the RDP login prompt if Network Level Authentication is disabled
nxc rdp 192.168.178.2 -u username -p password --nla-screenshot
Merge two (or more) PDFs
pdfjam path/to/file1.pdf path/to/file2.pdf --outfile path/to/output_file.pdf
Merge the first page of each file together
pdfjam files... 1 --outfile path/to/output_file.pdf
Merge subranges from two PDFs
pdfjam path/to/file1.pdf 3-5,1 path/to/file2.pdf 4-6 --outfile path/to/output_file.pdf
Sign an A4 page (adjust delta to height for other formats) with a scanned signature by overlaying them
pdfjam path/to/file.pdf path/to/signature --fitpaper true --outfile path/to/signed.pdf --nup "1x2" --delta "0 -842pt"
Arrange the pages from the input file into a fancy 2x2 grid
pdfjam path/to/file.pdf --nup 2x2 --suffix 4up --preamble '\usepackage{fancyhdr} \pagestyle{fancy}'
Reverse the order of pages within each given file and concatenate them
pdfjam files... last-1 --suffix reversed
Run a subshell asynchronously
coproc { command1; command2; ...; }
Create a coprocess with a specific name
coproc name { command1; command2; ...; }
Write to a specific coprocess `stdin`
echo "input" >&"${name[1]}"
Read from a specific coprocess `stdout`
read variable <&"${name[0]}"
Create a coprocess which repeatedly reads `stdin` and runs some commands on the input
coproc name { while read line; do command1; command2; ...; done }
Create and use a coprocess running `bc`
coproc BC { bc --mathlib; }; echo "1/3" >&"${BC[1]}"; read output <&"${BC[0]}"; echo "$output"
Execute a Sui subcommand
sui subcommand
Build tools for a smart contract
sui move subcommand
Publish smart contracts, get object information, execute transactions and more
sui client subcommand
Start a local network
sui start
Update from source
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch testnet sui
View documentation for the original command
tldr npm run
Merge all commits from a specific branch into the current branch as a single commit
git squash source_branch
Squash all commits starting with a specific commit on the current branch
git squash commit
Squash the `n` latest commits and commit with a message
git squash HEAD~n "message"
Squash the `n` latest commits and commit concatenating all individual messages
git squash --squash-msg HEAD~n
Render an image or animated GIF
viu path/to/file
Render an image or GIF from the internet using `curl`
curl -s https://example.com/image.png | viu -
Render an image with a transparent background
viu -t path/to/file
Render an image with a specific width and height in pixels
viu -w width -h height path/to/file
Render an image or GIF and display its file name
viu -n path/to/file
Render an image directly in the terminal
chafa path/to/file
Render an image with 24-bit [c]olor
chafa -c full path/to/file
Improve image rendering with small color palettes using dithering
chafa -c 16 --dither ordered path/to/file
Render an image, making it appear pixelated
chafa --symbols vhalf path/to/file
Render a monochrome image with only braille characters
chafa -c none --symbols braille path/to/file
Create a new receipt rule set
aws ses create-receipt-rule-set --rule-set-name rule_set_name --generate-cli-skeleton
Describe the active receipt rule set
aws ses describe-active-receipt-rule-set --generate-cli-skeletion
Describe a specific receipt rule
aws ses describe-receipt-rule --rule-set-name rule_set_name --rule-name rule_name --generate-cli-skeleton
List all receipt rule sets
aws ses list-receipt-rule-sets --starting-token token_string --max-items integer --generate-cli-skeleton
Delete a specific receipt rule set (the currently active rule set cannot be deleted)
aws ses delete-receipt-rule-set --rule-set-name rule_set_name --generate-cli-skeleton
Delete a specific receipt rule
aws ses delete-receipt-rule --rule-set-name rule_set_name --rule-name rule_name --generate-cli-skeleton
Send an email
aws ses send-email --from from_address --destination "ToAddresses=addresses" --message "Subject={Data=subject_text,Charset=utf8},Body={Text={Data=body_text,Charset=utf8},Html={Data=message_body_containing_html,Charset=utf8"
Display help for a specific SES subcommand
aws ses subcommand help
Compress specific files
compress path/to/file1 path/to/file2 ...
Compress specific files, ignore non-existent ones
compress -f path/to/file1 path/to/file2 ...
Specify the maximum compression bits (9-16 bits)
compress -b bits
Write to `stdout` (no files are changed)
compress -c path/to/file
Decompress files (functions like `uncompress`)
compress -d path/to/file
Display compression percentage
compress -v path/to/file
Run tests for a configuration file
smalltalkci path/to/.smalltalk.ston
Run tests for the `.smalltalk.ston` configuration in the current directory
smalltalkci
Debug tests in headful mode (show VM window)
smalltalkci --headful
Download and prepare a well-known smalltalk image for the tests
smalltalkci --smalltalk Squeak64-Trunk
Specify a custom Smalltalk image and VM
smalltalkci --image path/to/Smalltalk.image --vm path/to/vm
Clean up caches and delete builds
smalltalkci --clean
Add symlinks to TeX Live files
sudo tlmgr path add
Remove symlinks to TeX Live files
sudo tlmgr path remove
Start Drawing
drawing
Open specific files
drawing path/to/image1 path/to/image2 ...
Open specific files in a new window
drawing --new-window path/to/image1 path/to/image2 ...
Convert an STL file to an OBJ file
meshlabserver -i input.stl -o output.obj
Convert a WRL file to a OFF file, including the vertex and face normals in the output mesh
meshlabserver -i input.wrl -o output.off -om vn fn
Dump a list of all the available processing filters into a file
meshlabserver -d path/to/file
Process a 3D file using a filter script created in the MeshLab GUI (Filters > Show current filter script > Save Script)
meshlabserver -i input.ply -o output.ply -s filter_script.mlx
Process a 3D file using a filter script, writing the output of the filters into a log file
meshlabserver -i input.x3d -o output.x3d -s filter_script.mlx -l logfile
Show information about all network interfaces
ip link
Show information about a specific network interface
ip link show ethN
Bring a network interface up or down
ip link set ethN up|down
Give a meaningful name to a network interface
ip link set ethN alias "LAN Interface"
Change the MAC address of a network interface
ip link set ethN address ff:ff:ff:ff:ff:ff
Change the MTU size for a network interface to use jumbo frames
ip link set ethN mtu 9000
Add a torrent file or magnet link to Transmission and download to a specified directory
transmission-remote hostname -a torrent|url -w /path/to/download_directory
Change the default download directory
transmission-remote hostname -w /path/to/download_directory
List all torrents
transmission-remote hostname --list
Start torrent 1 and 2, stop torrent 3
transmission-remote hostname -t "1,2" --start -t 3 --stop
Remove torrent 1 and 2, and also delete local data for torrent 2
transmission-remote hostname -t 1 --remove -t 2 --remove-and-delete
Stop all torrents
transmission-remote hostname -t all --stop
Move torrents 1-10 and 15-20 to a new directory (which will be created if it does not exist)
transmission-remote hostname -t "1-10,15-20" --move /path/to/new_directory
Show all groups with their statuses and number of parallel jobs
pueue group
Add a custom group
pueue group --add "group_name"
Remove a group and move its tasks to the default group
pueue group --remove "group_name"
Convert a PBM image to an encapsulated PostScript style preview bitmap
pbmtoepsi path/to/image.pbm > path/to/output.bmp
Produce a quadratic output image with the specified resolution
pbmtoepsi -dpi 144 path/to/image.pbm > path/to/output.bmp
Produce an output image with the specified horizontal and vertical resolution
pbmtoepsi -dpi 72x144 path/to/image.pbm > path/to/output.bmp
Only create a boundary box
pbmtoepsi -bbonly path/to/image.pbm > path/to/output.bmp
Run a process that can live beyond the terminal
nohup command argument1 argument2 ...
Launch `nohup` in background mode
nohup command argument1 argument2 ... &
Run a shell script that can live beyond the terminal
nohup path/to/script.sh &
Run a process and write the output to a specific file
nohup command argument1 argument2 ... > path/to/output_file &
Publish a temperature value of 32 on the topic `sensors/temperature` to 192.168.1.1 (defaults to `localhost`) with Quality of Service (`QoS`) set to 1
mosquitto_pub -h 192.168.1.1 -t sensors/temperature -m 32 -q 1
Publish timestamp and temperature data on the topic `sensors/temperature` to a remote host on a non-standard port
mosquitto_pub -h 192.168.1.1 -p 1885 -t sensors/temperature -m "1266193804 32"
Publish light switch status and retain the message on the topic `switches/kitchen_lights/status` to a remote host because there may be a long period of time between light switch events
mosquitto_pub -r -h "iot.eclipse.org" -t switches/kitchen_lights/status -m "on"
Send the contents of a file (`data.txt`) as a message and publish it to `sensors/temperature` topic
mosquitto_pub -t sensors/temperature -f data.txt
Send the contents of a file (`data.txt`), by reading from `stdin` and send the entire input as a message and publish it to `sensors/temperature` topic
mosquitto_pub -t sensors/temperature -s < data.txt
Read newline delimited data from `stdin` as a message and publish it to `sensors/temperature` topic
echo data.txt | mosquitto_pub -t sensors/temperature -l
Print the 5th item from a line (starting from 0)
choose 4
Print the first, 3rd, and 5th item from a line, where items are separated by ':' instead of whitespace
choose --field-separator ':' 0 2 4
Print everything from the 2nd to 5th item on the line, including the 5th
choose 1:4