conversations
listlengths
2
2
[ { "from": "human", "value": "Test if the specified file or directory [e]xists" }, { "from": "gpt", "value": "[ -e path/to/file_or_directory ]" } ]
[ { "from": "human", "value": "Start a REPL (interactive shell)" }, { "from": "gpt", "value": "ghci" } ]
[ { "from": "human", "value": "Start a REPL and load the specified Haskell source file" }, { "from": "gpt", "value": "ghci source_file.hs" } ]
[ { "from": "human", "value": "Start a REPL and enable a language option" }, { "from": "gpt", "value": "ghci -Xlanguage_option" } ]
[ { "from": "human", "value": "Start a REPL and enable some level of compiler warnings (e.g. `all` or `compact`)" }, { "from": "gpt", "value": "ghci -Wwarning_level" } ]
[ { "from": "human", "value": "Start a REPL with a colon-separated list of directories for finding source files" }, { "from": "gpt", "value": "ghci -ipath/to/directory1:path/to/directory2:..." } ]
[ { "from": "human", "value": "Play the given audio file" }, { "from": "gpt", "value": "play path/to/audio_file" } ]
[ { "from": "human", "value": "Play the given audio files" }, { "from": "gpt", "value": "play path/to/audio_file1 path/to/audio_file2 ..." } ]
[ { "from": "human", "value": "Play the given audio at twice the speed" }, { "from": "gpt", "value": "play path/to/audio_file speed 2.0" } ]
[ { "from": "human", "value": "Play the given audio in reverse" }, { "from": "gpt", "value": "play path/to/audio_file reverse" } ]
[ { "from": "human", "value": "Open the specified mailbox" }, { "from": "gpt", "value": "neomutt -f path/to/mailbox" } ]
[ { "from": "human", "value": "Start writing an email and specify a subject and a `cc` recipient" }, { "from": "gpt", "value": "neomutt -s \"subject\" -c cc@example.com recipient@example.com" } ]
[ { "from": "human", "value": "Send an email with files attached" }, { "from": "gpt", "value": "neomutt -a path/to/file1 path/to/file2 ... -- recipient@example.com" } ]
[ { "from": "human", "value": "Specify a file to include as the message body" }, { "from": "gpt", "value": "neomutt -i path/to/file recipient@example.com" } ]
[ { "from": "human", "value": "Specify a draft file containing the header and the body of the message, in RFC 5322 format" }, { "from": "gpt", "value": "neomutt -H path/to/file recipient@example.com" } ]
[ { "from": "human", "value": "Check the style of a single file" }, { "from": "gpt", "value": "pycodestyle file.py" } ]
[ { "from": "human", "value": "Check the style of multiple files" }, { "from": "gpt", "value": "pycodestyle file1.py file2.py ..." } ]
[ { "from": "human", "value": "Show only the first occurrence of an error" }, { "from": "gpt", "value": "pycodestyle --first file.py" } ]
[ { "from": "human", "value": "Show the source code for each error" }, { "from": "gpt", "value": "pycodestyle --show-source file.py" } ]
[ { "from": "human", "value": "Show the specific PEP 8 text for each error" }, { "from": "gpt", "value": "pycodestyle --show-pep8 file.py" } ]
[ { "from": "human", "value": "Convert a PPM image to a LEAF file" }, { "from": "gpt", "value": "ppmtoleaf path/to/file.ppm > path/to/file.leaf" } ]
[ { "from": "human", "value": "Upload a local path to the parent folder with the specified ID" }, { "from": "gpt", "value": "gdrive upload -p id path/to/file_or_folder" } ]
[ { "from": "human", "value": "Download file or directory by ID to current directory" }, { "from": "gpt", "value": "gdrive download id" } ]
[ { "from": "human", "value": "Download to a given local path by its ID" }, { "from": "gpt", "value": "gdrive download --path path/to/folder id" } ]
[ { "from": "human", "value": "Create a new revision of an ID using a given file or folder" }, { "from": "gpt", "value": "gdrive update id path/to/file_or_folder" } ]
[ { "from": "human", "value": "Package an application for the current architecture and platform" }, { "from": "gpt", "value": "electron-packager \"path/to/app\" \"app_name\"" } ]
[ { "from": "human", "value": "Package an application for all architectures and platforms" }, { "from": "gpt", "value": "electron-packager \"path/to/app\" \"app_name\" --all" } ]
[ { "from": "human", "value": "Package an application for 64-bit Linux" }, { "from": "gpt", "value": "electron-packager \"path/to/app\" \"app_name\" --platform=\"linux\" --arch=\"x64\"" } ]
[ { "from": "human", "value": "Package an application for ARM macOS" }, { "from": "gpt", "value": "electron-packager \"path/to/app\" \"app_name\" --platform=\"darwin\" --arch=\"arm64\"" } ]
[ { "from": "human", "value": "Replace the specified text in the current repository" }, { "from": "gpt", "value": "git sed 'find_text' 'replace_text'" } ]
[ { "from": "human", "value": "Replace the specified text and then commit the resulting changes with a standard commit message" }, { "from": "gpt", "value": "git sed -c 'find_text' 'replace_text'" } ]
[ { "from": "human", "value": "Replace the specified text, using regular expressions" }, { "from": "gpt", "value": "git sed -f g 'find_text' 'replace_text'" } ]
[ { "from": "human", "value": "Replace a specific text in all files under a given directory" }, { "from": "gpt", "value": "git sed 'find_text' 'replace_text' -- path/to/directory" } ]
[ { "from": "human", "value": "Gzip several files at once, using all cores" }, { "from": "gpt", "value": "parallel gzip ::: path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Read arguments from `stdin`, run 4 jobs at once" }, { "from": "gpt", "value": "ls *.txt | parallel -j4 gzip" } ]
[ { "from": "human", "value": "Convert JPEG images to PNG using replacement strings" }, { "from": "gpt", "value": "parallel convert {} {.}.png ::: *.jpg" } ]
[ { "from": "human", "value": "Parallel xargs, cram as many args as possible onto one command" }, { "from": "gpt", "value": "args | parallel -X command" } ]
[ { "from": "human", "value": "Break `stdin` into ~1M blocks, feed each block to `stdin` of new command" }, { "from": "gpt", "value": "cat big_file.txt | parallel --pipe --block 1M command" } ]
[ { "from": "human", "value": "Run on multiple machines via SSH" }, { "from": "gpt", "value": "parallel -S machine1,machine2 command ::: arg1 arg2" } ]
[ { "from": "human", "value": "Download 4 files simultaneously from a text file containing links showing progress" }, { "from": "gpt", "value": "parallel -j4 --bar --eta wget [-q|--quote] {} :::: path/to/links.txt" } ]
[ { "from": "human", "value": "Print the jobs which `parallel` is running in `stderr`" }, { "from": "gpt", "value": "parallel [-t|--verbose] command ::: args" } ]
[ { "from": "human", "value": "Install a specific Node.js version" }, { "from": "gpt", "value": "Install-NodeVersion node_version" } ]
[ { "from": "human", "value": "Install multiple Node.js versions" }, { "from": "gpt", "value": "Install-NodeVersion node_version1 , node_version2 , ..." } ]
[ { "from": "human", "value": "Install latest available version of Node.js 20" }, { "from": "gpt", "value": "Install-NodeVersion ^20" } ]
[ { "from": "human", "value": "Install the x86 (x86 32-bit) / x64 (x86 64-bit) / arm64 (ARM 64-bit) version of Node.js" }, { "from": "gpt", "value": "Install-NodeVersion node_version -Architecture x86|x64|arm64" } ]
[ { "from": "human", "value": "Use a HTTP proxy to download Node.js" }, { "from": "gpt", "value": "Install-NodeVersion node-version -Proxy http://example.com" } ]
[ { "from": "human", "value": "Scan a specific file for viruses" }, { "from": "gpt", "value": "vt scan file path/to/file" } ]
[ { "from": "human", "value": "Scan a URL for viruses" }, { "from": "gpt", "value": "vt scan url url" } ]
[ { "from": "human", "value": "Display information from a specific analysis" }, { "from": "gpt", "value": "vt analysis file_id|analysis_id" } ]
[ { "from": "human", "value": "Download files in encrypted Zip format (requires premium account)" }, { "from": "gpt", "value": "vt download file_id --output path/to/directory --zip --zip-password password" } ]
[ { "from": "human", "value": "Initialize or re-initialize `vt` to enter API key interactively" }, { "from": "gpt", "value": "vt init" } ]
[ { "from": "human", "value": "Display information about a domain" }, { "from": "gpt", "value": "vt domain url" } ]
[ { "from": "human", "value": "Display information for a specific URL" }, { "from": "gpt", "value": "vt url url" } ]
[ { "from": "human", "value": "Display information for a specific IP address" }, { "from": "gpt", "value": "vt domain ip_address" } ]
[ { "from": "human", "value": "Show the current version of Azure CLI modules and extensions in JSON format" }, { "from": "gpt", "value": "az version" } ]
[ { "from": "human", "value": "Show the current version of Azure CLI modules and extensions in a given format" }, { "from": "gpt", "value": "az version --output json|table|tsv" } ]
[ { "from": "human", "value": "Create a file `y.tab.c` containing the C parser code and compile the grammar file with all necessary constant declarations for values. (Constant declarations file `y.tab.h` is created only when the `-d` flag is used)" }, { "from": "gpt", "value": "yacc -d path/to/gra...
[ { "from": "human", "value": "Compile a grammar file containing the description of the parser and a report of conflicts generated by ambiguities in the grammar" }, { "from": "gpt", "value": "yacc -d path/to/grammar_file.y -v" } ]
[ { "from": "human", "value": "Compile a grammar file, and prefix output filenames with `prefix` instead of `y`" }, { "from": "gpt", "value": "yacc -d path/to/grammar_file.y -v -b prefix" } ]
[ { "from": "human", "value": "Count all lines in a file" }, { "from": "gpt", "value": "wc [-l|--lines] path/to/file" } ]
[ { "from": "human", "value": "Count all words in a file" }, { "from": "gpt", "value": "wc [-w|--words] path/to/file" } ]
[ { "from": "human", "value": "Count all bytes in a file" }, { "from": "gpt", "value": "wc [-c|--bytes] path/to/file" } ]
[ { "from": "human", "value": "Count all characters in a file (taking multi-byte characters into account)" }, { "from": "gpt", "value": "wc [-m|--chars] path/to/file" } ]
[ { "from": "human", "value": "Count all lines, words and bytes from `stdin`" }, { "from": "gpt", "value": "find . | wc" } ]
[ { "from": "human", "value": "Count the length of the longest line in number of characters" }, { "from": "gpt", "value": "wc [-L|--max-line-length] path/to/file" } ]
[ { "from": "human", "value": "Format a file, overwriting the original" }, { "from": "gpt", "value": "tex-fmt path/to/file.tex" } ]
[ { "from": "human", "value": "Check if a file is correctly formatted" }, { "from": "gpt", "value": "tex-fmt --check path/to/file.tex" } ]
[ { "from": "human", "value": "Format a file read from `stdin` and print to `stdout`" }, { "from": "gpt", "value": "cat path/to/file.tex | tex-fmt --stdin" } ]
[ { "from": "human", "value": "Display calendar for the current month" }, { "from": "gpt", "value": "gcal" } ]
[ { "from": "human", "value": "Display calendar for the month of February of the year 2010" }, { "from": "gpt", "value": "gcal 2 2010" } ]
[ { "from": "human", "value": "Provide calendar sheet with week numbers" }, { "from": "gpt", "value": "gcal --with-week-number" } ]
[ { "from": "human", "value": "Change starting day of week to 1st day of the week (Monday)" }, { "from": "gpt", "value": "gcal --starting-day=1" } ]
[ { "from": "human", "value": "Display the previous, current and next month surrounding today" }, { "from": "gpt", "value": "gcal ." } ]
[ { "from": "human", "value": "List releases in a Gitlab repository, limited to 30 items" }, { "from": "gpt", "value": "glab release list" } ]
[ { "from": "human", "value": "Display information about a specific release" }, { "from": "gpt", "value": "glab release view tag" } ]
[ { "from": "human", "value": "Create a new release" }, { "from": "gpt", "value": "glab release create tag" } ]
[ { "from": "human", "value": "Delete a specific release" }, { "from": "gpt", "value": "glab release delete tag" } ]
[ { "from": "human", "value": "Download assets from a specific release" }, { "from": "gpt", "value": "glab release download tag" } ]
[ { "from": "human", "value": "Upload assets to a specific release" }, { "from": "gpt", "value": "glab release upload tag path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Launch VLC in a container" }, { "from": "gpt", "value": "x11docker --pulseaudio --share=$HOME/Videos jess/vlc" } ]
[ { "from": "human", "value": "Launch Xfce in a window" }, { "from": "gpt", "value": "x11docker --desktop x11docker/xfce" } ]
[ { "from": "human", "value": "Launch GNOME in a window" }, { "from": "gpt", "value": "x11docker --desktop --gpu --init=systemd x11docker/gnome" } ]
[ { "from": "human", "value": "Launch KDE Plasma in a window" }, { "from": "gpt", "value": "x11docker --desktop --gpu --init=systemd x11docker/kde-plasma" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "x11docker --help" } ]
[ { "from": "human", "value": "View documentation for `pamcrater`" }, { "from": "gpt", "value": "tldr pamcrater" } ]
[ { "from": "human", "value": "View documentation for `pamshadedrelief`" }, { "from": "gpt", "value": "tldr pamshadedrelief" } ]
[ { "from": "human", "value": "View documentation for `pamtopnm`" }, { "from": "gpt", "value": "tldr pamtopnm" } ]
[ { "from": "human", "value": "Format a file to `stdout`, with a custom maximum line length" }, { "from": "gpt", "value": "autopep8 path/to/file.py --max-line-length length" } ]
[ { "from": "human", "value": "Format a file, displaying a diff of the changes" }, { "from": "gpt", "value": "autopep8 --diff path/to/file" } ]
[ { "from": "human", "value": "Format a file in-place and save the changes" }, { "from": "gpt", "value": "autopep8 --in-place path/to/file.py" } ]
[ { "from": "human", "value": "Recursively format all files in a directory in-place and save changes" }, { "from": "gpt", "value": "autopep8 --in-place --recursive path/to/directory" } ]
[ { "from": "human", "value": "Analyze a Docker image" }, { "from": "gpt", "value": "dive your_image_tag" } ]
[ { "from": "human", "value": "Build an image and start analyzing it" }, { "from": "gpt", "value": "dive build -t some_tag" } ]
[ { "from": "human", "value": "Apply all patches" }, { "from": "gpt", "value": "sfdk apply" } ]
[ { "from": "human", "value": "Reverse apply all patches" }, { "from": "gpt", "value": "sfdk apply -R" } ]
[ { "from": "human", "value": "Generate a PPM image as output that is `flashfactor` times brighter than the input PPM image" }, { "from": "gpt", "value": "ppmflash flashfactor path/to/file.ppm > path/to/file.ppm" } ]
[ { "from": "human", "value": "Display version" }, { "from": "gpt", "value": "ppmflash [-v|-version]" } ]
[ { "from": "human", "value": "List all running processes" }, { "from": "gpt", "value": "ps aux" } ]
[ { "from": "human", "value": "List all running processes including the full command string" }, { "from": "gpt", "value": "ps auxww" } ]
[ { "from": "human", "value": "Search for a process that matches a string (the brackets will prevent `grep` from matching itself)" }, { "from": "gpt", "value": "ps aux | grep [s]tring" } ]