conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Find files matching multiple path/name patterns"
},
{
"from": "gpt",
"value": "find root_path -path '*/path/*/*.ext' -or -name '*pattern*'"
}
] |
[
{
"from": "human",
"value": "Find directories matching a given name, in case-insensitive mode"
},
{
"from": "gpt",
"value": "find root_path -type d -iname '*lib*'"
}
] |
[
{
"from": "human",
"value": "Find files matching a given pattern, excluding specific paths"
},
{
"from": "gpt",
"value": "find root_path -name '*.py' -not -path '*/site-packages/*'"
}
] |
[
{
"from": "human",
"value": "Find files matching a given size range, limiting the recursive depth to \"1\""
},
{
"from": "gpt",
"value": "find root_path -maxdepth 1 -size +500k -size -10M"
}
] |
[
{
"from": "human",
"value": "Run a command for each file (use `{}` within the command to access the filename)"
},
{
"from": "gpt",
"value": "find root_path -name '*.ext' -exec wc -l {} \\;"
}
] |
[
{
"from": "human",
"value": "Find all files modified today and pass the results to a single command as arguments"
},
{
"from": "gpt",
"value": "find root_path -daystart -mtime -1 -exec tar -cvf archive.tar {} \\+"
}
] |
[
{
"from": "human",
"value": "Search for either empty files or directories and delete them verbosely"
},
{
"from": "gpt",
"value": "find root_path -type f|d -empty -delete -print"
}
] |
[
{
"from": "human",
"value": "Capture packets with verbose output"
},
{
"from": "gpt",
"value": "sudo snort -v -i interface"
}
] |
[
{
"from": "human",
"value": "Capture packets and dump application layer data with verbose output"
},
{
"from": "gpt",
"value": "sudo snort -vd -i interface"
}
] |
[
{
"from": "human",
"value": "Capture packets and display link layer packet headers with verbose output"
},
{
"from": "gpt",
"value": "sudo snort -ve -i interface"
}
] |
[
{
"from": "human",
"value": "Capture packets and save them in the specified directory"
},
{
"from": "gpt",
"value": "sudo snort -i interface -l path/to/directory"
}
] |
[
{
"from": "human",
"value": "Capture packets according to rules and save offending packets along with alerts"
},
{
"from": "gpt",
"value": "sudo snort -i interface -c path/to/rules.conf -l path/to/directory"
}
] |
[
{
"from": "human",
"value": "Adjust one or more directed graphs to improve the layout aspect ratio"
},
{
"from": "gpt",
"value": "unflatten path/to/input1.gv path/to/input2.gv ... > path/to/output.gv"
}
] |
[
{
"from": "human",
"value": "Use `unflatten` as a preprocessor for `dot` layout to improve aspect ratio"
},
{
"from": "gpt",
"value": "unflatten path/to/input.gv | dot -T png path/to/output.png"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "unflatten -?"
}
] |
[
{
"from": "human",
"value": "Convert a PBM image to an Andrew Toolkit raster object"
},
{
"from": "gpt",
"value": "pbmtoatk path/to/image.pbm > path/to/output.atk"
}
] |
[
{
"from": "human",
"value": "Compile multiple source files into an executable"
},
{
"from": "gpt",
"value": "gcc path/to/source1.c path/to/source2.c ... [-o|--output] path/to/output_executable"
}
] |
[
{
"from": "human",
"value": "Activate output of all errors and warnings"
},
{
"from": "gpt",
"value": "gcc path/to/source.c -Wall [-o|--output] output_executable"
}
] |
[
{
"from": "human",
"value": "Show common warnings, debug symbols in output, and optimize without affecting debugging"
},
{
"from": "gpt",
"value": "gcc path/to/source.c -Wall [-g|--debug] -Og [-o|--output] path/to/output_executable"
}
] |
[
{
"from": "human",
"value": "Include libraries from a different path"
},
{
"from": "gpt",
"value": "gcc path/to/source.c [-o|--output] path/to/output_executable -Ipath/to/header -Lpath/to/library -llibrary_name"
}
] |
[
{
"from": "human",
"value": "Compile source code into Assembler instructions"
},
{
"from": "gpt",
"value": "gcc [-S|--assemble] path/to/source.c"
}
] |
[
{
"from": "human",
"value": "Compile source code into an object file without linking"
},
{
"from": "gpt",
"value": "gcc [-c|--compile] path/to/source.c"
}
] |
[
{
"from": "human",
"value": "Optimize the compiled program for performance"
},
{
"from": "gpt",
"value": "gcc path/to/source.c -O1|2|3|fast [-o|--output] path/to/output_executable"
}
] |
[
{
"from": "human",
"value": "Display version"
},
{
"from": "gpt",
"value": "gcc --version"
}
] |
[
{
"from": "human",
"value": "Display information about an existing MP4 file"
},
{
"from": "gpt",
"value": "mp4box -info path/to/file"
}
] |
[
{
"from": "human",
"value": "Add an SRT subtitle file into an MP4 file"
},
{
"from": "gpt",
"value": "mp4box -add input_subs.srt:lang=eng -add input.mp4 output.mp4"
}
] |
[
{
"from": "human",
"value": "Combine audio from one file and video from another"
},
{
"from": "gpt",
"value": "mp4box -add input1.mp4#audio -add input2.mp4#video output.mp4"
}
] |
[
{
"from": "human",
"value": "Run a command on a CSV file with a custom delimiter"
},
{
"from": "gpt",
"value": "command -d delimiter path/to/file.csv"
}
] |
[
{
"from": "human",
"value": "Run a command on a CSV file with a tab as a delimiter (overrides -d)"
},
{
"from": "gpt",
"value": "command -t path/to/file.csv"
}
] |
[
{
"from": "human",
"value": "Run a command on a CSV file with a custom quote character"
},
{
"from": "gpt",
"value": "command -q quote_char path/to/file.csv"
}
] |
[
{
"from": "human",
"value": "Run a command on a CSV file with no header row"
},
{
"from": "gpt",
"value": "command -H path/to/file.csv"
}
] |
[
{
"from": "human",
"value": "Run Python web app"
},
{
"from": "gpt",
"value": "uvicorn import.path:app_object"
}
] |
[
{
"from": "human",
"value": "Listen on port 8080 on localhost"
},
{
"from": "gpt",
"value": "uvicorn --host localhost --port 8080 import.path:app_object"
}
] |
[
{
"from": "human",
"value": "Turn on live reload"
},
{
"from": "gpt",
"value": "uvicorn --reload import.path:app_object"
}
] |
[
{
"from": "human",
"value": "Use 4 worker processes for handling requests"
},
{
"from": "gpt",
"value": "uvicorn --workers 4 import.path:app_object"
}
] |
[
{
"from": "human",
"value": "Run app over HTTPS"
},
{
"from": "gpt",
"value": "uvicorn --ssl-certfile cert.pem --ssl-keyfile key.pem import.path:app_object"
}
] |
[
{
"from": "human",
"value": "Initialize Git LFS"
},
{
"from": "gpt",
"value": "git lfs install"
}
] |
[
{
"from": "human",
"value": "Track files that match a glob"
},
{
"from": "gpt",
"value": "git lfs track '*.bin'"
}
] |
[
{
"from": "human",
"value": "Change the Git LFS endpoint URL (useful if the LFS server is separate from the Git server)"
},
{
"from": "gpt",
"value": "git config [-f|--file] .lfsconfig lfs.url lfs_endpoint_url"
}
] |
[
{
"from": "human",
"value": "List tracked patterns"
},
{
"from": "gpt",
"value": "git lfs track"
}
] |
[
{
"from": "human",
"value": "List tracked files that have been committed"
},
{
"from": "gpt",
"value": "git lfs ls-files"
}
] |
[
{
"from": "human",
"value": "Push all Git LFS objects to the remote server (useful if errors are encountered)"
},
{
"from": "gpt",
"value": "git lfs push --all remote_name branch_name"
}
] |
[
{
"from": "human",
"value": "Fetch all Git LFS objects"
},
{
"from": "gpt",
"value": "git lfs fetch"
}
] |
[
{
"from": "human",
"value": "Checkout all Git LFS objects"
},
{
"from": "gpt",
"value": "git lfs checkout"
}
] |
[
{
"from": "human",
"value": "Increase the saturation of each pixel by the specified percentage"
},
{
"from": "gpt",
"value": "pambrighten [-s|-saturation] value_percent path/to/image.pam > path/to/output.pam"
}
] |
[
{
"from": "human",
"value": "Increase the value (from the HSV color space) of each pixel by the specified percentage"
},
{
"from": "gpt",
"value": "pambrighten [-va|-value] value_percent path/to/image.pam > path/to/output.pam"
}
] |
[
{
"from": "human",
"value": "Initialize a new .NET project"
},
{
"from": "gpt",
"value": "dotnet new template_short_name"
}
] |
[
{
"from": "human",
"value": "Restore NuGet packages"
},
{
"from": "gpt",
"value": "dotnet restore"
}
] |
[
{
"from": "human",
"value": "Build and execute the .NET project in the current directory"
},
{
"from": "gpt",
"value": "dotnet run"
}
] |
[
{
"from": "human",
"value": "Run a packaged dotnet application (only needs the runtime, the rest of the commands require the .NET Core SDK installed)"
},
{
"from": "gpt",
"value": "dotnet path/to/application.dll"
}
] |
[
{
"from": "human",
"value": "Sign a JAR file"
},
{
"from": "gpt",
"value": "jarsigner path/to/file.jar keystore_alias"
}
] |
[
{
"from": "human",
"value": "Sign a JAR file with a specific algorithm"
},
{
"from": "gpt",
"value": "jarsigner -sigalg algorithm path/to/file.jar keystore_alias"
}
] |
[
{
"from": "human",
"value": "Verify the signature of a JAR file"
},
{
"from": "gpt",
"value": "jarsigner -verify path/to/file.jar"
}
] |
[
{
"from": "human",
"value": "Lint a single CSS file"
},
{
"from": "gpt",
"value": "csslint file.css"
}
] |
[
{
"from": "human",
"value": "Lint multiple CSS files"
},
{
"from": "gpt",
"value": "csslint file1.css file2.css ..."
}
] |
[
{
"from": "human",
"value": "List all possible style rules"
},
{
"from": "gpt",
"value": "csslint --list-rules"
}
] |
[
{
"from": "human",
"value": "Treat certain rules as errors (which results in a non-zero exit code)"
},
{
"from": "gpt",
"value": "csslint --errors=errors,universal-selector,imports file.css"
}
] |
[
{
"from": "human",
"value": "Treat certain rules as warnings"
},
{
"from": "gpt",
"value": "csslint --warnings=box-sizing,selector-max,floats file.css"
}
] |
[
{
"from": "human",
"value": "Ignore specific rules"
},
{
"from": "gpt",
"value": "csslint --ignore=ids,rules-count,shorthand file.css"
}
] |
[
{
"from": "human",
"value": "Create a Kubernetes cluster"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster create --count 3 --region nyc1 --size s-1vcpu-2gb --version latest cluster_name"
}
] |
[
{
"from": "human",
"value": "List all Kubernetes clusters"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster list"
}
] |
[
{
"from": "human",
"value": "Fetch and save the kubeconfig"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster kubeconfig save cluster_name"
}
] |
[
{
"from": "human",
"value": "Check for available upgrades"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster get-upgrades cluster_name"
}
] |
[
{
"from": "human",
"value": "Upgrade a cluster to a new Kubernetes version"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster upgrade cluster_name"
}
] |
[
{
"from": "human",
"value": "Delete a cluster"
},
{
"from": "gpt",
"value": "doctl kubernetes cluster delete cluster_name"
}
] |
[
{
"from": "human",
"value": "Print how long the current user has been connected in hours"
},
{
"from": "gpt",
"value": "ac"
}
] |
[
{
"from": "human",
"value": "Print how long users have been connected in hours"
},
{
"from": "gpt",
"value": "ac [-p|--individual-totals]"
}
] |
[
{
"from": "human",
"value": "Print how long a particular user has been connected in hours"
},
{
"from": "gpt",
"value": "ac [-p|--individual-totals] username"
}
] |
[
{
"from": "human",
"value": "Print how long a particular user has been connected in hours per day (with total)"
},
{
"from": "gpt",
"value": "ac [-d|--daily-totals] [-p|--individual-totals] username"
}
] |
[
{
"from": "human",
"value": "Also display additional details"
},
{
"from": "gpt",
"value": "ac --compatibility"
}
] |
[
{
"from": "human",
"value": "Show current host name"
},
{
"from": "gpt",
"value": "hostname"
}
] |
[
{
"from": "human",
"value": "Show the network address of the host name"
},
{
"from": "gpt",
"value": "hostname [-i|--ip-addresses]"
}
] |
[
{
"from": "human",
"value": "Show the FQDN (Fully Qualified Domain Name)"
},
{
"from": "gpt",
"value": "hostname [-f|--fqdn]"
}
] |
[
{
"from": "human",
"value": "Set current host name"
},
{
"from": "gpt",
"value": "hostname new_hostname"
}
] |
[
{
"from": "human",
"value": "Scan file and output strings to `messages.po`"
},
{
"from": "gpt",
"value": "xgettext path/to/input_file"
}
] |
[
{
"from": "human",
"value": "Use a different output filename"
},
{
"from": "gpt",
"value": "xgettext [-o|--output] path/to/output_file path/to/input_file"
}
] |
[
{
"from": "human",
"value": "Append new strings to an existing file"
},
{
"from": "gpt",
"value": "xgettext [-j|--join-existing] [-o|--output] path/to/output_file path/to/input_file"
}
] |
[
{
"from": "human",
"value": "Don't add a header containing metadata to the output file"
},
{
"from": "gpt",
"value": "xgettext --omit-header path/to/input_file"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "xgettext [-h|--help]"
}
] |
[
{
"from": "human",
"value": "Join two files on the first (default) field"
},
{
"from": "gpt",
"value": "join path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Join two files using a comma (instead of a space) as the field separator"
},
{
"from": "gpt",
"value": "join -t ',' path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Join field3 of file1 with field1 of file2"
},
{
"from": "gpt",
"value": "join -1 3 -2 1 path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Produce a line for each unpairable line for file1"
},
{
"from": "gpt",
"value": "join -a 1 path/to/file1 path/to/file2"
}
] |
[
{
"from": "human",
"value": "Join a file from `stdin`"
},
{
"from": "gpt",
"value": "cat path/to/file1 | join - path/to/file2"
}
] |
[
{
"from": "human",
"value": "Initialize a new Dolt data repository in the current directory"
},
{
"from": "gpt",
"value": "dolt init"
}
] |
[
{
"from": "human",
"value": "Initialize a new Dolt data repository creating a commit with the specified metadata"
},
{
"from": "gpt",
"value": "dolt init --name \"name\" --email \"email\" --date \"2021-12-31T00:00:00\" -b \"branch_name\""
}
] |
[
{
"from": "human",
"value": "Start the daemon"
},
{
"from": "gpt",
"value": "pppd"
}
] |
[
{
"from": "human",
"value": "Output commands"
},
{
"from": "gpt",
"value": "yadm introspect commands"
}
] |
[
{
"from": "human",
"value": "Output configs"
},
{
"from": "gpt",
"value": "yadm introspect configs"
}
] |
[
{
"from": "human",
"value": "Output switches for the main `yadm` command"
},
{
"from": "gpt",
"value": "yadm introspect switches"
}
] |
[
{
"from": "human",
"value": "Output repo"
},
{
"from": "gpt",
"value": "yadm introspect repo"
}
] |
[
{
"from": "human",
"value": "Initialize a database with a scale factor of 50 times the default size"
},
{
"from": "gpt",
"value": "pgbench --initialize --scale=50 database_name"
}
] |
[
{
"from": "human",
"value": "Benchmark a database with 10 clients, 2 worker threads, and 10,000 transactions per client"
},
{
"from": "gpt",
"value": "pgbench --client=10 --jobs=2 --transactions=10000 database_name"
}
] |
[
{
"from": "human",
"value": "List the stacks in the app"
},
{
"from": "gpt",
"value": "cdk ls"
}
] |
[
{
"from": "human",
"value": "Synthesize and print the CloudFormation template for the specified stack(s)"
},
{
"from": "gpt",
"value": "cdk synth stack_name"
}
] |
[
{
"from": "human",
"value": "Deploy one or more stacks"
},
{
"from": "gpt",
"value": "cdk deploy stack_name1 stack_name2 ..."
}
] |
[
{
"from": "human",
"value": "Destroy one or more stacks"
},
{
"from": "gpt",
"value": "cdk destroy stack_name1 stack_name2 ..."
}
] |
[
{
"from": "human",
"value": "Compare the specified stack with the deployed stack or a local CloudFormation template"
},
{
"from": "gpt",
"value": "cdk diff stack_name"
}
] |
[
{
"from": "human",
"value": "Create a new CDK project in the current directory for a specified language"
},
{
"from": "gpt",
"value": "cdk init [-l|--language] language"
}
] |
[
{
"from": "human",
"value": "Open the CDK API reference in your browser"
},
{
"from": "gpt",
"value": "cdk docs"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.