conversations
listlengths
2
2
[ { "from": "human", "value": "Display commits from all branches and stashes" }, { "from": "gpt", "value": "tig --all" } ]
[ { "from": "human", "value": "Start in stash view, displaying all saved stashes" }, { "from": "gpt", "value": "tig stash" } ]
[ { "from": "human", "value": "Display help in TUI" }, { "from": "gpt", "value": "<h>" } ]
[ { "from": "human", "value": "Hide mouse cursor after 3 seconds" }, { "from": "gpt", "value": "unclutter -idle 3" } ]
[ { "from": "human", "value": "Print a quotation" }, { "from": "gpt", "value": "fortune" } ]
[ { "from": "human", "value": "Print an offensive quotation" }, { "from": "gpt", "value": "fortune -o" } ]
[ { "from": "human", "value": "Print a long quotation" }, { "from": "gpt", "value": "fortune -l" } ]
[ { "from": "human", "value": "Print a short quotation" }, { "from": "gpt", "value": "fortune -s" } ]
[ { "from": "human", "value": "List the available quotation database files" }, { "from": "gpt", "value": "fortune -f" } ]
[ { "from": "human", "value": "Print a quotation from one of the database files listed by `fortune -f`" }, { "from": "gpt", "value": "fortune path/to/file" } ]
[ { "from": "human", "value": "Display what Git protocol is being used" }, { "from": "gpt", "value": "gh config get git_protocol" } ]
[ { "from": "human", "value": "Set protocol to SSH" }, { "from": "gpt", "value": "gh config set git_protocol ssh" } ]
[ { "from": "human", "value": "Use `delta` in side-by-side mode as the default pager for all `gh` commands" }, { "from": "gpt", "value": "gh config set pager 'delta --side-by-side'" } ]
[ { "from": "human", "value": "Set text editor to Vim" }, { "from": "gpt", "value": "gh config set editor vim" } ]
[ { "from": "human", "value": "Reset to default text editor" }, { "from": "gpt", "value": "gh config set editor \"\"" } ]
[ { "from": "human", "value": "Disable interactive prompts" }, { "from": "gpt", "value": "gh config set prompt disabled" } ]
[ { "from": "human", "value": "Set a specific configuration value" }, { "from": "gpt", "value": "gh config set key value" } ]
[ { "from": "human", "value": "Generate a key-pair" }, { "from": "gpt", "value": "cosign generate-key-pair" } ]
[ { "from": "human", "value": "Sign a container and store the signature in the registry" }, { "from": "gpt", "value": "cosign sign -key cosign.key image" } ]
[ { "from": "human", "value": "Sign a container image with a key pair stored in a Kubernetes secret" }, { "from": "gpt", "value": "cosign sign -key k8s://namespace/key image" } ]
[ { "from": "human", "value": "Sign a blob with a local key pair file" }, { "from": "gpt", "value": "cosign sign-blob --key cosign.key path/to/file" } ]
[ { "from": "human", "value": "Verify a container against a public key" }, { "from": "gpt", "value": "cosign verify -key cosign.pub image" } ]
[ { "from": "human", "value": "Verify images with a public key in a Dockerfile" }, { "from": "gpt", "value": "cosign dockerfile verify -key cosign.pub path/to/Dockerfile" } ]
[ { "from": "human", "value": "Verify an image with a public key stored in a Kubernetes secret" }, { "from": "gpt", "value": "cosign verify -key k8s://namespace/key image" } ]
[ { "from": "human", "value": "Copy a container image and its signatures" }, { "from": "gpt", "value": "cosign copy example.com/src:latest example.com/dest:latest" } ]
[ { "from": "human", "value": "Log in to the OpenShift Container Platform server" }, { "from": "gpt", "value": "oc login" } ]
[ { "from": "human", "value": "Create a new project" }, { "from": "gpt", "value": "oc new-project project_name" } ]
[ { "from": "human", "value": "Switch to an existing project" }, { "from": "gpt", "value": "oc project project_name" } ]
[ { "from": "human", "value": "Add a new application to a project" }, { "from": "gpt", "value": "oc new-app repo_url --name application" } ]
[ { "from": "human", "value": "Open a remote shell session to a container" }, { "from": "gpt", "value": "oc rsh pod_name" } ]
[ { "from": "human", "value": "List pods in a project" }, { "from": "gpt", "value": "oc get pods" } ]
[ { "from": "human", "value": "Log out from the current session" }, { "from": "gpt", "value": "oc logout" } ]
[ { "from": "human", "value": "Create a file holding the contents of the blob specified by its ID then print the name of the temporary file" }, { "from": "gpt", "value": "git unpack-file blob_id" } ]
[ { "from": "human", "value": "Start `diskonaut` in the current directory" }, { "from": "gpt", "value": "diskonaut" } ]
[ { "from": "human", "value": "Start `diskonaut` in a specific directory" }, { "from": "gpt", "value": "diskonaut path/to/directory" } ]
[ { "from": "human", "value": "Show file sizes rather than their block usage on the disk" }, { "from": "gpt", "value": "diskonaut --apparent-size path/to/directory" } ]
[ { "from": "human", "value": "Disable deletion confirmation" }, { "from": "gpt", "value": "diskonaut --disable-delete-confirmation" } ]
[ { "from": "human", "value": "Check the values of all attributes on a file" }, { "from": "gpt", "value": "git check-attr --all path/to/file" } ]
[ { "from": "human", "value": "Check the value of a specific attribute on a file" }, { "from": "gpt", "value": "git check-attr attribute path/to/file" } ]
[ { "from": "human", "value": "Check the values of all attributes on specific files" }, { "from": "gpt", "value": "git check-attr --all path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Check the value of a specific attribute on one or more files" }, { "from": "gpt", "value": "git check-attr attribute path/to/file1 path/to/file2 ..." } ]
[ { "from": "human", "value": "Render a PNG image with a filename based on the input filename and output format (uppercase -O)" }, { "from": "gpt", "value": "circo -T png -O path/to/input.gv" } ]
[ { "from": "human", "value": "Render a SVG image with the specified output filename (lowercase -o)" }, { "from": "gpt", "value": "circo -T svg -o path/to/image.svg path/to/input.gv" } ]
[ { "from": "human", "value": "Render the output in PS, PDF, SVG, Fig, PNG, GIF, JPEG, JSON, or DOT format" }, { "from": "gpt", "value": "circo -T format -O path/to/input.gv" } ]
[ { "from": "human", "value": "Render a GIF image using `stdin` and `stdout`" }, { "from": "gpt", "value": "echo \"digraph {this -> that} \" | circo -T gif > path/to/image.gif" } ]
[ { "from": "human", "value": "Display help" }, { "from": "gpt", "value": "circo -?" } ]
[ { "from": "human", "value": "Deploy an app's code and configuration to the App Engine server" }, { "from": "gpt", "value": "gcloud app deploy deployables" } ]
[ { "from": "human", "value": "List all versions of all services deployed to the App Engine server" }, { "from": "gpt", "value": "gcloud app versions list" } ]
[ { "from": "human", "value": "Open the current app in a web browser" }, { "from": "gpt", "value": "gcloud app browse" } ]
[ { "from": "human", "value": "Create an App Engine app within the current project" }, { "from": "gpt", "value": "gcloud app create" } ]
[ { "from": "human", "value": "Display the latest App Engine app logs" }, { "from": "gpt", "value": "gcloud app logs read" } ]
[ { "from": "human", "value": "Delete all branches that were \"squash-merged\" into the current checked out branch" }, { "from": "gpt", "value": "git delete-squashed-branches" } ]
[ { "from": "human", "value": "Delete all branches that were \"squash-merged\" into a specific branch" }, { "from": "gpt", "value": "git delete-squashed-branches branch_name" } ]
[ { "from": "human", "value": "Create a new Move project in the given folder" }, { "from": "gpt", "value": "sui move new project_name" } ]
[ { "from": "human", "value": "Test the Move project in the current directory" }, { "from": "gpt", "value": "sui move test" } ]
[ { "from": "human", "value": "Test with coverage and get a summary" }, { "from": "gpt", "value": "sui move test --coverage; sui move coverage summary" } ]
[ { "from": "human", "value": "Find which parts of your code are covered from tests (i.e. explain coverage results)" }, { "from": "gpt", "value": "sui move coverage source --module module_name" } ]
[ { "from": "human", "value": "Build the Move project in the current directory" }, { "from": "gpt", "value": "sui move build" } ]
[ { "from": "human", "value": "Build the Move project from the given path" }, { "from": "gpt", "value": "sui move build --path path" } ]
[ { "from": "human", "value": "Migrate to Move 2024 for the package at the provided path" }, { "from": "gpt", "value": "sui move migrate path" } ]
[ { "from": "human", "value": "Combine three PGM images (representing red, green and blue color components) into one PPM image" }, { "from": "gpt", "value": "rgb3toppm path/to/red_file.ppm path/to/green_file.ppm path/to/blue_file.ppm > path/to/output.ppm" } ]
[ { "from": "human", "value": "Optimize a PNG" }, { "from": "gpt", "value": "zopflipng input.png output.png" } ]
[ { "from": "human", "value": "Optimize several PNGs and save with given prefix" }, { "from": "gpt", "value": "zopflipng --prefix=prefix image1.png image2.png image3.png" } ]
[ { "from": "human", "value": "Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`" }, { "from": "gpt", "value": "unset foo" } ]
[ { "from": "human", "value": "Remove the variables foo and bar" }, { "from": "gpt", "value": "unset -v foo bar" } ]
[ { "from": "human", "value": "Remove the function my_func" }, { "from": "gpt", "value": "unset -f my_func" } ]
[ { "from": "human", "value": "Convert object data from multiple JSON files to a CSV file with header (`-oh`) and double quote" }, { "from": "gpt", "value": "trdsql -ocsv -oh \"SELECT * FROM path/to/file/*.json\" | sed 's/\\([^,]*\\)/\"&\"/g' > path/to/file.csv" } ]
[ { "from": "human", "value": "Interpret JSON list as a table and put objects inside as columns (path/to/file.json: `{\"list\":[{\"age\":\"26\",\"name\":\"Tanaka\"}]}`)" }, { "from": "gpt", "value": "trdsql \"SELECT * FROM path/to/file.json::.list" } ]
[ { "from": "human", "value": "Manipulate complex SQL query with data from multiple CSV files with first line is header (`-ih`)" }, { "from": "gpt", "value": "trdsql -icsv -ih \"SELECT column1,column2 FROM path/to/file*.csv WHERE column2 != '' ORDER BY column1 GROUP BY column1\"" } ]
[ { "from": "human", "value": "Merge content of 2 CSV files to one CSV file" }, { "from": "gpt", "value": "trdsql \"SELECT column1,colum2 FROM path/to/file1.csv UNION SELECT column1,column2 FROM path/to/file2.csv\"" } ]
[ { "from": "human", "value": "Connect to PostgreSQL database" }, { "from": "gpt", "value": "trdsql -driver postgres -dsn \"host=hostname port=5433 dbname=database_name\" \"SELECT 1\"" } ]
[ { "from": "human", "value": "Create table data to MySQL database from CSV file" }, { "from": "gpt", "value": "trdsql -driver mysql -dsn \"username:password@hostname/database\" -ih \"CREATE TABLE table (column1 int, colum2 varchar(20)) AS SELECT column3 AS column1,column2 FROM path/to/header_file...
[ { "from": "human", "value": "Show data from compress log files" }, { "from": "gpt", "value": "trdsql -iltsv \"SELECT * FROM path/to/access.log.gz\"" } ]
[ { "from": "human", "value": "Visualize SIP packets from a PCAP file" }, { "from": "gpt", "value": "sngrep -I path/to/file.pcap" } ]
[ { "from": "human", "value": "Visualize only dialogs starting with INVITE packets with RTP packets from a PCAP file" }, { "from": "gpt", "value": "sngrep -crI path/to/file.pcap" } ]
[ { "from": "human", "value": "Real-time interface with only dialogs starting with INVITE packets with RTP packets" }, { "from": "gpt", "value": "sngrep -cr" } ]
[ { "from": "human", "value": "Only capture packets without interface to a file" }, { "from": "gpt", "value": "sngrep -NO path/to/file.pcap" } ]
[ { "from": "human", "value": "Start the interactive console interface" }, { "from": "gpt", "value": "deluge-console" } ]
[ { "from": "human", "value": "Connect to a Deluge daemon instance" }, { "from": "gpt", "value": "connect hostname:port" } ]
[ { "from": "human", "value": "Add a torrent to the daemon" }, { "from": "gpt", "value": "add url|magnet|path/to/file" } ]
[ { "from": "human", "value": "Display information about all torrents" }, { "from": "gpt", "value": "info" } ]
[ { "from": "human", "value": "Display information about a specific torrent" }, { "from": "gpt", "value": "info torrent_id" } ]
[ { "from": "human", "value": "Pause a torrent" }, { "from": "gpt", "value": "pause torrent_id" } ]
[ { "from": "human", "value": "Resume a torrent" }, { "from": "gpt", "value": "resume torrent_id" } ]
[ { "from": "human", "value": "Remove a torrent from the daemon" }, { "from": "gpt", "value": "rm torrent_id" } ]
[ { "from": "human", "value": "Start with nix expression in `shell.nix` or `default.nix` in the current directory" }, { "from": "gpt", "value": "nix-shell" } ]
[ { "from": "human", "value": "Run shell command in non-interactive shell and exit" }, { "from": "gpt", "value": "nix-shell --run \"command argument1 argument2 ...\"" } ]
[ { "from": "human", "value": "Start with expression in `default.nix` in the current directory" }, { "from": "gpt", "value": "nix-shell default.nix" } ]
[ { "from": "human", "value": "Start with packages loaded from nixpkgs" }, { "from": "gpt", "value": "nix-shell --packages package1 package2 ..." } ]
[ { "from": "human", "value": "Start with packages loaded from specific nixpkgs revision" }, { "from": "gpt", "value": "nix-shell --packages package1 package2 ... -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixpkgs_revision.tar.gz" } ]
[ { "from": "human", "value": "Evaluate rest of file in specific interpreter, for use in `#!-scripts` (see <https://nixos.org/manual/nix/stable/#use-as-a-interpreter>)" }, { "from": "gpt", "value": "nix-shell -i interpreter --packages package1 package2 ..." } ]
[ { "from": "human", "value": "Run make-install section of RPM SPEC file" }, { "from": "gpt", "value": "sfdk make-install" } ]
[ { "from": "human", "value": "Compare all changed files" }, { "from": "gpt", "value": "git diff-files" } ]
[ { "from": "human", "value": "Compare only specified files" }, { "from": "gpt", "value": "git diff-files path/to/file" } ]
[ { "from": "human", "value": "Show only the names of changed files" }, { "from": "gpt", "value": "git diff-files --name-only" } ]
[ { "from": "human", "value": "Output a summary of extended header information" }, { "from": "gpt", "value": "git diff-files --summary" } ]
[ { "from": "human", "value": "Compress a file with default options" }, { "from": "gpt", "value": "pigz path/to/file" } ]
[ { "from": "human", "value": "Compress a file using the best compression method" }, { "from": "gpt", "value": "pigz -9 path/to/file" } ]
[ { "from": "human", "value": "Compress a file using no compression and 4 processors" }, { "from": "gpt", "value": "pigz -0 -p4 path/to/file" } ]
[ { "from": "human", "value": "Compress a directory using tar" }, { "from": "gpt", "value": "tar cf - path/to/directory | pigz > path/to/file.tar.gz" } ]