conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Display only deleted (but tracked) files"
},
{
"from": "gpt",
"value": "hg status --deleted"
}
] |
[
{
"from": "human",
"value": "Display changes in the working directory compared to a specified changeset"
},
{
"from": "gpt",
"value": "hg status --rev revision"
}
] |
[
{
"from": "human",
"value": "Display only files matching a specified glob pattern"
},
{
"from": "gpt",
"value": "hg status --include pattern"
}
] |
[
{
"from": "human",
"value": "Display files, excluding those that match a specified glob pattern"
},
{
"from": "gpt",
"value": "hg status --exclude pattern"
}
] |
[
{
"from": "human",
"value": "Translate a word (language is detected automatically)"
},
{
"from": "gpt",
"value": "trans \"word_or_sentence_to_translate\""
}
] |
[
{
"from": "human",
"value": "Get a brief translation"
},
{
"from": "gpt",
"value": "trans --brief \"word_or_sentence_to_translate\""
}
] |
[
{
"from": "human",
"value": "Translate a word into french"
},
{
"from": "gpt",
"value": "trans :fr word"
}
] |
[
{
"from": "human",
"value": "Translate a word from German to English"
},
{
"from": "gpt",
"value": "trans de:en Schmetterling"
}
] |
[
{
"from": "human",
"value": "Behave like a dictionary to get the meaning of a word"
},
{
"from": "gpt",
"value": "trans -d word"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "gh ssh-key"
}
] |
[
{
"from": "human",
"value": "List SSH keys for the currently authenticated user"
},
{
"from": "gpt",
"value": "gh ssh-key list"
}
] |
[
{
"from": "human",
"value": "Add an SSH key to the currently authenticated user's account"
},
{
"from": "gpt",
"value": "gh ssh-key add path/to/key.pub"
}
] |
[
{
"from": "human",
"value": "Add an SSH key to the currently authenticated user's account with a specific title"
},
{
"from": "gpt",
"value": "gh ssh-key add --title title path/to/key.pub"
}
] |
[
{
"from": "human",
"value": "Force the brightest pixels to be white, the darkest pixels to be black and spread out the ones in between linearly"
},
{
"from": "gpt",
"value": "pnmnorm path/to/image.pnm > path/to/output.pnm"
}
] |
[
{
"from": "human",
"value": "Force the brightest pixels to be white, the darkest pixels to be black and spread out the ones in between quadratically such that pixels with a brightness of `n` become 50 % bright"
},
{
"from": "gpt",
"value": "pnmnorm [-midv|-midvalue] n path/to/image.pnm > path/to... |
[
{
"from": "human",
"value": "Keep the pixels' hue, only modify the brightness"
},
{
"from": "gpt",
"value": "pnmnorm [-k|-keephues] path/to/image.pnm > path/to/output.pnm"
}
] |
[
{
"from": "human",
"value": "Specify a method to calculate a pixel's brightness"
},
{
"from": "gpt",
"value": "pnmnorm -luminosity|colorvalue|saturation path/to/image.pnm > path/to/output.pnm"
}
] |
[
{
"from": "human",
"value": "Generate client codes when a project is in `$GOPATH`"
},
{
"from": "gpt",
"value": "kitex path/to/IDL_file.thrift"
}
] |
[
{
"from": "human",
"value": "Generate client codes when a project is not in `$GOPATH`"
},
{
"from": "gpt",
"value": "kitex -module github.com/xx-org/xx-name path/to/IDL_file.thrift"
}
] |
[
{
"from": "human",
"value": "Generate client codes with protobuf IDL"
},
{
"from": "gpt",
"value": "kitex -type protobuf path/to/IDL_file.proto"
}
] |
[
{
"from": "human",
"value": "Generate server codes"
},
{
"from": "gpt",
"value": "kitex -service svc_name path/to/IDL_file.thrift"
}
] |
[
{
"from": "human",
"value": "Install and switch to the specified version of Neovim"
},
{
"from": "gpt",
"value": "bob use nightly|stable|latest|version_string|commit_hash"
}
] |
[
{
"from": "human",
"value": "List installed and currently used versions of Neovim"
},
{
"from": "gpt",
"value": "bob list"
}
] |
[
{
"from": "human",
"value": "Uninstall the specified version of Neovim"
},
{
"from": "gpt",
"value": "bob uninstall nightly|stable|latest|version_string|commit_hash"
}
] |
[
{
"from": "human",
"value": "Uninstall Neovim and erase any changes `bob` has made"
},
{
"from": "gpt",
"value": "bob erase"
}
] |
[
{
"from": "human",
"value": "Roll back to a previous nightly version"
},
{
"from": "gpt",
"value": "bob rollback"
}
] |
[
{
"from": "human",
"value": "View documentation for the original command"
},
{
"from": "gpt",
"value": "tldr chromium"
}
] |
[
{
"from": "human",
"value": "Display filesystems and their disk usage in human-readable form with colors and graphs"
},
{
"from": "gpt",
"value": "dfc"
}
] |
[
{
"from": "human",
"value": "Display all filesystems including pseudo, duplicate and inaccessible filesystems"
},
{
"from": "gpt",
"value": "dfc -a"
}
] |
[
{
"from": "human",
"value": "Display filesystems without color"
},
{
"from": "gpt",
"value": "dfc -c never"
}
] |
[
{
"from": "human",
"value": "Display filesystems containing \"ext\" in the filesystem type"
},
{
"from": "gpt",
"value": "dfc -t ext"
}
] |
[
{
"from": "human",
"value": "Take a picture"
},
{
"from": "gpt",
"value": "fswebcam filename"
}
] |
[
{
"from": "human",
"value": "Take a picture with custom resolution"
},
{
"from": "gpt",
"value": "fswebcam -r widthxheight filename"
}
] |
[
{
"from": "human",
"value": "Take a picture from selected device(Default is `/dev/video0`)"
},
{
"from": "gpt",
"value": "fswebcam -d device filename"
}
] |
[
{
"from": "human",
"value": "Take a picture with timestamp(timestamp string is formatted by strftime)"
},
{
"from": "gpt",
"value": "fswebcam --timestamp timestamp filename"
}
] |
[
{
"from": "human",
"value": "Connect to the database. By default, it connects to the local socket using port 5432 with the currently logged in user"
},
{
"from": "gpt",
"value": "psql database"
}
] |
[
{
"from": "human",
"value": "Connect to the database on given server host running on given port with given username, without a password prompt"
},
{
"from": "gpt",
"value": "psql -h host -p port -U username database"
}
] |
[
{
"from": "human",
"value": "Connect to the database; user will be prompted for password"
},
{
"from": "gpt",
"value": "psql -h host -p port -U username -W database"
}
] |
[
{
"from": "human",
"value": "Execute a single SQL query or PostgreSQL command on the given database (useful in shell scripts)"
},
{
"from": "gpt",
"value": "psql -c 'query' database"
}
] |
[
{
"from": "human",
"value": "Execute commands from a file on the given database"
},
{
"from": "gpt",
"value": "psql database -f file.sql"
}
] |
[
{
"from": "human",
"value": "Copy a file or directory from the host to a container"
},
{
"from": "gpt",
"value": "docker cp path/to/file_or_directory_on_host container_name:path/to/file_or_directory_in_container"
}
] |
[
{
"from": "human",
"value": "Copy a file or directory from a container to the host"
},
{
"from": "gpt",
"value": "docker cp container_name:path/to/file_or_directory_in_container path/to/file_or_directory_on_host"
}
] |
[
{
"from": "human",
"value": "Copy a file or directory from the host to a container, following symlinks (copies the symlinked files directly, not the symlinks themselves)"
},
{
"from": "gpt",
"value": "docker cp --follow-link path/to/symlink_on_host container_name:path/to/file_or_directory_in_con... |
[
{
"from": "human",
"value": "Recursively search the current directory for a regular expression"
},
{
"from": "gpt",
"value": "rg regular_expression"
}
] |
[
{
"from": "human",
"value": "Search for regular expressions recursively in the current directory, including hidden files and files listed in `.gitignore`"
},
{
"from": "gpt",
"value": "rg --no-ignore --hidden regular_expression"
}
] |
[
{
"from": "human",
"value": "Search for a regular expression only in a subset of directories"
},
{
"from": "gpt",
"value": "rg regular_expression set_of_subdirs"
}
] |
[
{
"from": "human",
"value": "Search for a regular expression in files matching a glob (e.g. `README.*`)"
},
{
"from": "gpt",
"value": "rg regular_expression --glob glob"
}
] |
[
{
"from": "human",
"value": "Search for filenames that match a regular expression"
},
{
"from": "gpt",
"value": "rg --files | rg regular_expression"
}
] |
[
{
"from": "human",
"value": "Only list matched files (useful when piping to other commands)"
},
{
"from": "gpt",
"value": "rg --files-with-matches regular_expression"
}
] |
[
{
"from": "human",
"value": "Show lines that do not match the given regular expression"
},
{
"from": "gpt",
"value": "rg --invert-match regular_expression"
}
] |
[
{
"from": "human",
"value": "Search a literal string pattern"
},
{
"from": "gpt",
"value": "rg --fixed-strings -- string"
}
] |
[
{
"from": "human",
"value": "Forward a TCP port"
},
{
"from": "gpt",
"value": "adb forward tcp:local_port tcp:remote_port"
}
] |
[
{
"from": "human",
"value": "List all forwardings"
},
{
"from": "gpt",
"value": "adb forward --list"
}
] |
[
{
"from": "human",
"value": "Remove a forwarding rule"
},
{
"from": "gpt",
"value": "adb forward --remove tcp:local_port"
}
] |
[
{
"from": "human",
"value": "Remove all forwarding rules"
},
{
"from": "gpt",
"value": "adb forward --remove-all"
}
] |
[
{
"from": "human",
"value": "Generate a PBM file as output for a Xerox doodle brush file as input"
},
{
"from": "gpt",
"value": "brushtopbm path/to/file.brush"
}
] |
[
{
"from": "human",
"value": "Display version"
},
{
"from": "gpt",
"value": "brushtopbm [-v|-version]"
}
] |
[
{
"from": "human",
"value": "Convert a PPM image to an AutoCAD slide"
},
{
"from": "gpt",
"value": "ppmtoacad path/to/file.ppm > path/to/file.acad"
}
] |
[
{
"from": "human",
"value": "Convert a PPM image to an AutoCAD binary database import file"
},
{
"from": "gpt",
"value": "ppmtoacad [-d|-dxb] path/to/file.ppm > path/to/file.dxb"
}
] |
[
{
"from": "human",
"value": "Restrict the colors in the output to 8 RGB shades"
},
{
"from": "gpt",
"value": "ppmtoacad -8 path/to/file.ppm > path/to/file.dxb"
}
] |
[
{
"from": "human",
"value": "Generate an encrypted file that can be decrypted with a passphrase"
},
{
"from": "gpt",
"value": "age --passphrase --output path/to/encrypted_file path/to/unencrypted_file"
}
] |
[
{
"from": "human",
"value": "Encrypt a file with one or more public keys entered as literals (repeat the `--recipient` flag to specify multiple public keys)"
},
{
"from": "gpt",
"value": "age --recipient public_key --output path/to/encrypted_file path/to/unencrypted_file"
}
] |
[
{
"from": "human",
"value": "Encrypt a file to one or more recipients with their public keys specified in a file (one per line)"
},
{
"from": "gpt",
"value": "age --recipients-file path/to/recipients_file --output path/to/encrypted_file path/to/unencrypted_file"
}
] |
[
{
"from": "human",
"value": "Decrypt a file with a passphrase"
},
{
"from": "gpt",
"value": "age --decrypt --output path/to/decrypted_file path/to/encrypted_file"
}
] |
[
{
"from": "human",
"value": "Decrypt a file with a private key file"
},
{
"from": "gpt",
"value": "age --decrypt --identity path/to/private_key_file --output path/to/decrypted_file path/to/encrypted_file"
}
] |
[
{
"from": "human",
"value": "Connect to a remote server"
},
{
"from": "gpt",
"value": "ssh username@remote_host"
}
] |
[
{
"from": "human",
"value": "Connect to a remote server with a specific identity (private key)"
},
{
"from": "gpt",
"value": "ssh -i path/to/key_file username@remote_host"
}
] |
[
{
"from": "human",
"value": "Connect to a remote server using a specific [p]ort"
},
{
"from": "gpt",
"value": "ssh username@remote_host -p 2222"
}
] |
[
{
"from": "human",
"value": "Run a command on a remote server with a [t]ty allocation allowing interaction with the remote command"
},
{
"from": "gpt",
"value": "ssh username@remote_host -t command command_arguments"
}
] |
[
{
"from": "human",
"value": "SSH tunneling: [D]ynamic port forwarding (SOCKS proxy on `localhost:1080`)"
},
{
"from": "gpt",
"value": "ssh -D 1080 username@remote_host"
}
] |
[
{
"from": "human",
"value": "SSH tunneling: Forward a specific port (`localhost:9999` to `example.org:80`) along with disabling pseudo-[T]ty allocation and executio[N] of remote commands"
},
{
"from": "gpt",
"value": "ssh -L 9999:example.org:80 -N -T username@remote_host"
}
] |
[
{
"from": "human",
"value": "SSH [J]umping: Connect through a jumphost to a remote server (Multiple jump hops may be specified separated by comma characters)"
},
{
"from": "gpt",
"value": "ssh -J username@jump_host username@remote_host"
}
] |
[
{
"from": "human",
"value": "Close a hanged session"
},
{
"from": "gpt",
"value": "<Enter><~><.>"
}
] |
[
{
"from": "human",
"value": "Build the configuration defined in `~/.config/nixpkgs/home.nix` without applying it"
},
{
"from": "gpt",
"value": "home-manager build"
}
] |
[
{
"from": "human",
"value": "Build and apply (switch to) the new configuration"
},
{
"from": "gpt",
"value": "home-manager switch"
}
] |
[
{
"from": "human",
"value": "Roll back to a previous configuration generation"
},
{
"from": "gpt",
"value": "home-manager rollback"
}
] |
[
{
"from": "human",
"value": "List all existing configuration generations"
},
{
"from": "gpt",
"value": "home-manager generations"
}
] |
[
{
"from": "human",
"value": "When using flakes, run any operation that requires nix to run (build, switch, news) by passing the path to the flake"
},
{
"from": "gpt",
"value": "home-manager command --flake path/to/flake"
}
] |
[
{
"from": "human",
"value": "Convert an XIM image to a PPM image"
},
{
"from": "gpt",
"value": "ximtoppm path/to/input_file.xim > path/to/output_file.ppm"
}
] |
[
{
"from": "human",
"value": "Store the transparency mask of the input image in the specified file"
},
{
"from": "gpt",
"value": "ximtoppm [-a|-alphaout] path/to/alpha_file.pbm path/to/input_file.xim > path/to/output_file.ppm"
}
] |
[
{
"from": "human",
"value": "Query the system information of a remote host using SNMPv1 and a community string"
},
{
"from": "gpt",
"value": "snmpwalk -v 1 -c community ip"
}
] |
[
{
"from": "human",
"value": "Query system information on a remote host by OID using SNMPv2 on a specified port"
},
{
"from": "gpt",
"value": "snmpwalk -v 2c -c community ip:port oid"
}
] |
[
{
"from": "human",
"value": "Query system information on a remote host by OID using SNMPv3 and authentication without encryption"
},
{
"from": "gpt",
"value": "snmpwalk -v 3 -l authNoPriv -u username -a MD5|SHA -A passphrase ip oid"
}
] |
[
{
"from": "human",
"value": "Query system information on a remote host by OID using SNMPv3, authentication, and encryption"
},
{
"from": "gpt",
"value": "snmpwalk -v 3 -l authPriv -u username -a MD5|SHA -A auth_passphrase -x DES|AES -X enc_passphrase ip oid"
}
] |
[
{
"from": "human",
"value": "Query system information on a remote host by OID using SNMPv3 without authentication or encryption"
},
{
"from": "gpt",
"value": "snmpwalk -v 3 -l noAuthNoPriv -u username ip oid"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "snmpwalk [-h|--help]"
}
] |
[
{
"from": "human",
"value": "Move files using a regular expression-like pattern"
},
{
"from": "gpt",
"value": "zmv '(*).log' '$1.txt'"
}
] |
[
{
"from": "human",
"value": "Preview the result of a move, without making any actual changes"
},
{
"from": "gpt",
"value": "zmv -n '(*).log' '$1.txt'"
}
] |
[
{
"from": "human",
"value": "Interactively move files, with a prompt before every change"
},
{
"from": "gpt",
"value": "zmv -i '(*).log' '$1.txt'"
}
] |
[
{
"from": "human",
"value": "Verbosely print each action as it's being executed"
},
{
"from": "gpt",
"value": "zmv -v '(*).log' '$1.txt'"
}
] |
[
{
"from": "human",
"value": "Open pyATS shell with a defined Testbed file"
},
{
"from": "gpt",
"value": "pyats shell --testbed-file path/to/testbed.yaml"
}
] |
[
{
"from": "human",
"value": "Open pyATS shell with a defined Pickle file"
},
{
"from": "gpt",
"value": "pyats shell --pickle-file path/to/pickle.file"
}
] |
[
{
"from": "human",
"value": "Open pyATS with IPython disabled"
},
{
"from": "gpt",
"value": "pyats shell --no-ipython"
}
] |
[
{
"from": "human",
"value": "Build and sign the iOS application in the current directory"
},
{
"from": "gpt",
"value": "fastlane run build_app"
}
] |
[
{
"from": "human",
"value": "Run `pod install` for the project in the current directory"
},
{
"from": "gpt",
"value": "fastlane run cocoapods"
}
] |
[
{
"from": "human",
"value": "Delete the derived data from Xcode"
},
{
"from": "gpt",
"value": "fastlane run clear_derived_data"
}
] |
[
{
"from": "human",
"value": "Remove the cache for pods"
},
{
"from": "gpt",
"value": "fastlane run clean_cocoapods_cache"
}
] |
[
{
"from": "human",
"value": "Start an SSH session, restarting when the [M]onitoring port fails to return data"
},
{
"from": "gpt",
"value": "autossh -M monitor_port \"ssh_command\""
}
] |
[
{
"from": "human",
"value": "Forward a [L]ocal port to a remote one, restarting when necessary"
},
{
"from": "gpt",
"value": "autossh -M monitor_port -L local_port:localhost:remote_port user@host"
}
] |
[
{
"from": "human",
"value": "Fork `autossh` into the background before executing SSH and do [N]ot open a remote shell"
},
{
"from": "gpt",
"value": "autossh -f -M monitor_port -N \"ssh_command\""
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.