conversations
listlengths
2
2
[ { "from": "human", "value": "Query over TCP rather than UDP" }, { "from": "gpt", "value": "dog example.com MX @1.1.1.1 --tcp" } ]
[ { "from": "human", "value": "Query the MX records type associated with a given domain name over TCP using explicit arguments" }, { "from": "gpt", "value": "dog --query example.com --type MX --nameserver 1.1.1.1 --tcp" } ]
[ { "from": "human", "value": "Lookup the IP(s) associated with a hostname (A records) using DNS over HTTPS (DoH)" }, { "from": "gpt", "value": "dog example.com --https @https://cloudflare-dns.com/dns-query" } ]
[ { "from": "human", "value": "Terminate a process using the default SIGTERM (terminate) signal" }, { "from": "gpt", "value": "killall process_name" } ]
[ { "from": "human", "value": "List available signal names (to be used without the 'SIG' prefix)" }, { "from": "gpt", "value": "killall [-l|--list]" } ]
[ { "from": "human", "value": "Interactively ask for confirmation before termination" }, { "from": "gpt", "value": "killall [-i|--interactive] process_name" } ]
[ { "from": "human", "value": "Terminate a process using the SIGINT (interrupt) signal, which is the same signal sent by pressing `<Ctrl c>`" }, { "from": "gpt", "value": "killall -INT process_name" } ]
[ { "from": "human", "value": "Force kill a process" }, { "from": "gpt", "value": "killall -KILL process_name" } ]
[ { "from": "human", "value": "Declare a string variable with the specified value" }, { "from": "gpt", "value": "local variable=\"value\"" } ]
[ { "from": "human", "value": "Declare an integer variable with the specified value" }, { "from": "gpt", "value": "local -i variable=\"value\"" } ]
[ { "from": "human", "value": "Declare an array variable with the specified value" }, { "from": "gpt", "value": "local variable=(item_a item_b item_c)" } ]
[ { "from": "human", "value": "Declare an associative array variable with the specified value" }, { "from": "gpt", "value": "local -A variable=([key_a]=item_a [key_b]=item_b [key_c]=item_c)" } ]
[ { "from": "human", "value": "Declare a readonly variable with the specified value" }, { "from": "gpt", "value": "local -r variable=\"value\"" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "local --help" } ]
[ { "from": "human", "value": "Format a Haskell source file and print the result to `stdout`" }, { "from": "gpt", "value": "brittany path/to/file.hs" } ]
[ { "from": "human", "value": "Format all Haskell source files in the current directory in-place" }, { "from": "gpt", "value": "brittany --write-mode=inplace *.hs" } ]
[ { "from": "human", "value": "Check whether a Haskell source file needs changes and indicate the result through the programme's exit code" }, { "from": "gpt", "value": "brittany --check-mode path/to/file.hs" } ]
[ { "from": "human", "value": "Format a Haskell source file using the specified amount of spaces per indentation level and line length" }, { "from": "gpt", "value": "brittany --indent 4 --columns 100 path/to/file.hs" } ]
[ { "from": "human", "value": "Format a Haskell source file according to the style defined in the specified configuration file" }, { "from": "gpt", "value": "brittany --config-file path/to/config.yaml path/to/file.hs" } ]
[ { "from": "human", "value": "Print the contents of a file to `stdout`" }, { "from": "gpt", "value": "cat path/to/file" } ]
[ { "from": "human", "value": "Concatenate several files into an output file" }, { "from": "gpt", "value": "cat path/to/file1 path/to/file2 ... > path/to/output_file" } ]
[ { "from": "human", "value": "Append several files to an output file" }, { "from": "gpt", "value": "cat path/to/file1 path/to/file2 ... >> path/to/output_file" } ]
[ { "from": "human", "value": "Write `stdin` to a file" }, { "from": "gpt", "value": "cat - > path/to/file" } ]
[ { "from": "human", "value": "Number all output lines" }, { "from": "gpt", "value": "cat [-n|--number] path/to/file" } ]
[ { "from": "human", "value": "Display non-printable and whitespace characters (with `M-` prefix if non-ASCII)" }, { "from": "gpt", "value": "cat [-vte|--show-nonprinting -t -e] path/to/file" } ]
[ { "from": "human", "value": "Kill all processes which match" }, { "from": "gpt", "value": "pkill \"process_name\"" } ]
[ { "from": "human", "value": "Kill all processes which match their full command instead of just the process name" }, { "from": "gpt", "value": "pkill [-f|--full] \"command_name\"" } ]
[ { "from": "human", "value": "Force kill matching processes (can't be blocked)" }, { "from": "gpt", "value": "pkill -9 \"process_name\"" } ]
[ { "from": "human", "value": "Send SIGUSR1 signal to processes which match" }, { "from": "gpt", "value": "pkill -USR1 \"process_name\"" } ]
[ { "from": "human", "value": "Kill the main `firefox` process to close the browser" }, { "from": "gpt", "value": "pkill [-o|--oldest] \"firefox\"" } ]
[ { "from": "human", "value": "Display commits since yesterday" }, { "from": "gpt", "value": "git commits-since yesterday" } ]
[ { "from": "human", "value": "Display commits since last week" }, { "from": "gpt", "value": "git commits-since last week" } ]
[ { "from": "human", "value": "Display commits since last month" }, { "from": "gpt", "value": "git commits-since last month" } ]
[ { "from": "human", "value": "Display commits since yesterday 2pm" }, { "from": "gpt", "value": "git commits-since yesterday 2pm" } ]
[ { "from": "human", "value": "Decompile a `.dtb` file into a readable `.dts` file" }, { "from": "gpt", "value": "dtc -I dtb -O dts -o path/to/output_file.dts path/to/input_file.dtb" } ]
[ { "from": "human", "value": "Reset a file to HEAD" }, { "from": "gpt", "value": "git reset-file path/to/file" } ]
[ { "from": "human", "value": "Reset a file to a specific commit" }, { "from": "gpt", "value": "git reset-file path/to/file commit_hash" } ]
[ { "from": "human", "value": "View documentation for the current command" }, { "from": "gpt", "value": "tldr pamedge" } ]
[ { "from": "human", "value": "Run a collection (from a file)" }, { "from": "gpt", "value": "newman run path/to/collection.json" } ]
[ { "from": "human", "value": "Run a collection (from a URL)" }, { "from": "gpt", "value": "newman run https://www.getpostman.com/collections/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65-JsLv" } ]
[ { "from": "human", "value": "Send the last commit in the current branch interactively" }, { "from": "gpt", "value": "git send-email -1" } ]
[ { "from": "human", "value": "Send a given commit" }, { "from": "gpt", "value": "git send-email -1 commit" } ]
[ { "from": "human", "value": "Send multiple (e.g. 10) commits in the current branch" }, { "from": "gpt", "value": "git send-email -10" } ]
[ { "from": "human", "value": "Send an introductory email message for the patch series" }, { "from": "gpt", "value": "git send-email -number_of_commits --compose" } ]
[ { "from": "human", "value": "Review and edit the email message for each patch you're about to send" }, { "from": "gpt", "value": "git send-email -number_of_commits --annotate" } ]
[ { "from": "human", "value": "Compress executable" }, { "from": "gpt", "value": "upx path/to/file" } ]
[ { "from": "human", "value": "Decompress executable" }, { "from": "gpt", "value": "upx -d path/to/file" } ]
[ { "from": "human", "value": "Detailed help" }, { "from": "gpt", "value": "upx --help" } ]
[ { "from": "human", "value": "Pack unpacked objects in the current directory" }, { "from": "gpt", "value": "git repack" } ]
[ { "from": "human", "value": "Also remove redundant objects after packing" }, { "from": "gpt", "value": "git repack -d" } ]
[ { "from": "human", "value": "Search for valid domain credentials by trying out every combination in the specified lists of [u]sernames and [p]asswords" }, { "from": "gpt", "value": "nxc smb 192.168.178.2 -u path/to/usernames.txt -p path/to/passwords.txt" } ]
[ { "from": "human", "value": "Search for valid credentials for local accounts instead of domain accounts" }, { "from": "gpt", "value": "nxc smb 192.168.178.2 -u path/to/usernames.txt -p path/to/passwords.txt --local-auth" } ]
[ { "from": "human", "value": "Enumerate SMB shares and the specified users' access rights to them on the target hosts" }, { "from": "gpt", "value": "nxc smb 192.168.178.0/24 -u username -p password --shares" } ]
[ { "from": "human", "value": "Enumerate network interfaces on the target hosts, performing authentication via pass-the-hash" }, { "from": "gpt", "value": "nxc smb 192.168.178.30-45 -u username -H NTLM_hash --interfaces" } ]
[ { "from": "human", "value": "Scan the target hosts for common vulnerabilities" }, { "from": "gpt", "value": "nxc smb path/to/target_list.txt -u '' -p '' -M zerologon -M petitpotam" } ]
[ { "from": "human", "value": "Attempt to execute a command on the target hosts" }, { "from": "gpt", "value": "nxc smb 192.168.178.2 -u username -p password -x command" } ]
[ { "from": "human", "value": "Show a dependency tree of the current project" }, { "from": "gpt", "value": "cargo tree" } ]
[ { "from": "human", "value": "Only show dependencies up to the specified depth (e.g. when `n` is 1, display only direct dependencies)" }, { "from": "gpt", "value": "cargo tree --depth n" } ]
[ { "from": "human", "value": "Do not display the given package (and its dependencies) in the tree" }, { "from": "gpt", "value": "cargo tree --prune package_spec" } ]
[ { "from": "human", "value": "Show all occurrences of repeated dependencies" }, { "from": "gpt", "value": "cargo tree --no-dedupe" } ]
[ { "from": "human", "value": "Only show normal/build/development dependencies" }, { "from": "gpt", "value": "cargo tree --edges normal|build|dev" } ]
[ { "from": "human", "value": "Search anime by name" }, { "from": "gpt", "value": "ani-cli \"anime_name\"" } ]
[ { "from": "human", "value": "Download episode" }, { "from": "gpt", "value": "ani-cli [-d|--download] \"anime_name\"" } ]
[ { "from": "human", "value": "Download a range of episodes" }, { "from": "gpt", "value": "ani-cli [-d|--download] [-r|--range] \"1 6\" \"anime_name\"" } ]
[ { "from": "human", "value": "Download the entire series (a range of all episodes)" }, { "from": "gpt", "value": "ani-cli [-d|--download] [-r|--range] \"1 -1\" \"anime_name\"" } ]
[ { "from": "human", "value": "Use VLC as the media player" }, { "from": "gpt", "value": "ani-cli [-v|-vlc] \"anime_name\"" } ]
[ { "from": "human", "value": "Watch a specific episode" }, { "from": "gpt", "value": "ani-cli [-e|--episode] episode_number \"anime_name\"" } ]
[ { "from": "human", "value": "Continue watching anime from history" }, { "from": "gpt", "value": "ani-cli [-c|--continue]" } ]
[ { "from": "human", "value": "Update `ani-cli`" }, { "from": "gpt", "value": "ani-cli [-U|--update]" } ]
[ { "from": "human", "value": "Display path to the local `node_modules` directory" }, { "from": "gpt", "value": "npm root" } ]
[ { "from": "human", "value": "Display path to the global `node_modules` directory" }, { "from": "gpt", "value": "npm root --global" } ]
[ { "from": "human", "value": "Connect to a local database on port 3306, using the current user's username" }, { "from": "gpt", "value": "mycli database_name" } ]
[ { "from": "human", "value": "Connect to a database (user will be prompted for a password)" }, { "from": "gpt", "value": "mycli [-u|--user] username database_name" } ]
[ { "from": "human", "value": "Connect to a database on another host" }, { "from": "gpt", "value": "mycli [-h|--host] database_host [-P|--port] port [-u|--user] username database_name" } ]
[ { "from": "human", "value": "Start `chronyc` in interactive mode" }, { "from": "gpt", "value": "chronyc" } ]
[ { "from": "human", "value": "Display tracking stats for the Chrony daemon" }, { "from": "gpt", "value": "chronyc tracking" } ]
[ { "from": "human", "value": "Print the time sources that Chrony is currently using" }, { "from": "gpt", "value": "chronyc sources" } ]
[ { "from": "human", "value": "Display stats for sources currently used by chrony daemon as a time source" }, { "from": "gpt", "value": "chronyc sourcestats" } ]
[ { "from": "human", "value": "Step the system clock immediately, bypassing any slewing" }, { "from": "gpt", "value": "chronyc makestep" } ]
[ { "from": "human", "value": "Display verbose information about each NTP source" }, { "from": "gpt", "value": "chronyc ntpdata" } ]
[ { "from": "human", "value": "Forward all IPv4 TCP traffic via a remote SSH server" }, { "from": "gpt", "value": "sshuttle --remote=username@sshserver 0.0.0.0/0" } ]
[ { "from": "human", "value": "Also forward all DNS traffic to the server's default DNS resolver" }, { "from": "gpt", "value": "sshuttle --dns --remote=username@sshserver 0.0.0.0/0" } ]
[ { "from": "human", "value": "Forward all traffic except that which is bound for a specific subnet" }, { "from": "gpt", "value": "sshuttle --remote=username@sshserver 0.0.0.0/0 --exclude 192.168.0.1/24" } ]
[ { "from": "human", "value": "Use the tproxy method to forward all IPv4 and IPv6 traffic" }, { "from": "gpt", "value": "sshuttle --method=tproxy --remote=username@sshserver 0.0.0.0/0 ::/0 --exclude=your_local_ip_address --exclude=ssh_server_ip_address" } ]
[ { "from": "human", "value": "Convert a PPM image to a PICT file" }, { "from": "gpt", "value": "ppmtopict path/to/file.ppm > path/to/file.pict" } ]
[ { "from": "human", "value": "Create a new environment, installing named packages into it" }, { "from": "gpt", "value": "conda create --name environment_name python=3.9 matplotlib" } ]
[ { "from": "human", "value": "List all environments" }, { "from": "gpt", "value": "conda info --envs" } ]
[ { "from": "human", "value": "Load an environment" }, { "from": "gpt", "value": "conda activate environment_name" } ]
[ { "from": "human", "value": "Unload an environment" }, { "from": "gpt", "value": "conda deactivate" } ]
[ { "from": "human", "value": "Delete an environment (remove all packages)" }, { "from": "gpt", "value": "conda remove --name environment_name --all" } ]
[ { "from": "human", "value": "Install packages into the current environment" }, { "from": "gpt", "value": "conda install python=3.4 numpy" } ]
[ { "from": "human", "value": "List currently installed packages in current environment" }, { "from": "gpt", "value": "conda list" } ]
[ { "from": "human", "value": "Delete unused packages and caches" }, { "from": "gpt", "value": "conda clean --all" } ]
[ { "from": "human", "value": "Build a sketch" }, { "from": "gpt", "value": "arduino --verify path/to/file.ino" } ]
[ { "from": "human", "value": "Build and upload a sketch" }, { "from": "gpt", "value": "arduino --upload path/to/file.ino" } ]
[ { "from": "human", "value": "Build and upload a sketch to an Arduino Nano with an Atmega328p CPU, connected on port `/dev/ttyACM0`" }, { "from": "gpt", "value": "arduino --board arduino:avr:nano:cpu=atmega328p --port /dev/ttyACM0 --upload path/to/file.ino" } ]
[ { "from": "human", "value": "Set the preference `name` to a given `value`" }, { "from": "gpt", "value": "arduino --pref name=value" } ]
[ { "from": "human", "value": "Build a sketch, put the build results in the build directory, and reuse any previous build results in that directory" }, { "from": "gpt", "value": "arduino --pref build.path=path/to/build_directory --verify path/to/file.ino" } ]
[ { "from": "human", "value": "Save any (changed) preferences to `preferences.txt`" }, { "from": "gpt", "value": "arduino --save-prefs" } ]
[ { "from": "human", "value": "Install the latest SAM board" }, { "from": "gpt", "value": "arduino --install-boards \"arduino:sam\"" } ]