conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Print the output of a command to the default printer (see `lpstat` command)"
},
{
"from": "gpt",
"value": "echo \"test\" | lp"
}
] |
[
{
"from": "human",
"value": "Print a file to the default printer"
},
{
"from": "gpt",
"value": "lp path/to/filename"
}
] |
[
{
"from": "human",
"value": "Print a file to a named printer (see `lpstat` command)"
},
{
"from": "gpt",
"value": "lp -d printer_name path/to/filename"
}
] |
[
{
"from": "human",
"value": "Print `n` copies of a file to the default printer"
},
{
"from": "gpt",
"value": "lp -n n path/to/filename"
}
] |
[
{
"from": "human",
"value": "Print only certain pages to the default printer (print pages 1, 3-5, and 16)"
},
{
"from": "gpt",
"value": "lp -P 1,3-5,16 path/to/filename"
}
] |
[
{
"from": "human",
"value": "Resume printing a job"
},
{
"from": "gpt",
"value": "lp -i job_id -H resume"
}
] |
[
{
"from": "human",
"value": "Convert tabs in each file to spaces, writing to `stdout`"
},
{
"from": "gpt",
"value": "expand path/to/file"
}
] |
[
{
"from": "human",
"value": "Convert tabs to spaces, reading from `stdin`"
},
{
"from": "gpt",
"value": "expand"
}
] |
[
{
"from": "human",
"value": "Do not convert tabs after non blanks"
},
{
"from": "gpt",
"value": "expand [-i|--initial] path/to/file"
}
] |
[
{
"from": "human",
"value": "Have tabs a certain number of characters apart, not 8"
},
{
"from": "gpt",
"value": "expand [-t|--tabs] number path/to/file"
}
] |
[
{
"from": "human",
"value": "Use a comma separated list of explicit tab positions"
},
{
"from": "gpt",
"value": "expand [-t|--tabs] 1,4,6"
}
] |
[
{
"from": "human",
"value": "Build an image"
},
{
"from": "gpt",
"value": "packer build path/to/config.json"
}
] |
[
{
"from": "human",
"value": "Check the syntax of a Packer image config"
},
{
"from": "gpt",
"value": "packer validate path/to/config.json"
}
] |
[
{
"from": "human",
"value": "Format a Packer image config"
},
{
"from": "gpt",
"value": "packer fmt path/to/config.pkr.hcl"
}
] |
[
{
"from": "human",
"value": "Initialize `hut`'s configuration file (this will prompt for an OAuth2 access token, which is required to use `hut`)"
},
{
"from": "gpt",
"value": "hut init"
}
] |
[
{
"from": "human",
"value": "List Git/Mercurial repositories"
},
{
"from": "gpt",
"value": "hut git|hg list"
}
] |
[
{
"from": "human",
"value": "Create a public Git/Mercurial repository"
},
{
"from": "gpt",
"value": "hut git|hg create name"
}
] |
[
{
"from": "human",
"value": "List jobs on <https://builds.sr.ht>"
},
{
"from": "gpt",
"value": "hut builds list"
}
] |
[
{
"from": "human",
"value": "Show the status of a job"
},
{
"from": "gpt",
"value": "hut builds show job_id"
}
] |
[
{
"from": "human",
"value": "SSH into a job container"
},
{
"from": "gpt",
"value": "hut ssh job_id"
}
] |
[
{
"from": "human",
"value": "Unpublish a specific package version"
},
{
"from": "gpt",
"value": "npm unpublish package_name@version"
}
] |
[
{
"from": "human",
"value": "Unpublish the entire package"
},
{
"from": "gpt",
"value": "npm unpublish package_name --force"
}
] |
[
{
"from": "human",
"value": "Unpublish a package that is scoped"
},
{
"from": "gpt",
"value": "npm unpublish @scope/package_name"
}
] |
[
{
"from": "human",
"value": "Specify a timeout period before unpublishing"
},
{
"from": "gpt",
"value": "npm unpublish package_name --timeout time_in_milliseconds"
}
] |
[
{
"from": "human",
"value": "To prevent accidental unpublishing, use the `--dry-run` flag to see what would be unpublished"
},
{
"from": "gpt",
"value": "npm unpublish package_name --dry-run"
}
] |
[
{
"from": "human",
"value": "Merge a source branch into a specific destination branch"
},
{
"from": "gpt",
"value": "git merge-into source_branch destination_branch"
}
] |
[
{
"from": "human",
"value": "Merge current branch into a specific destination branch"
},
{
"from": "gpt",
"value": "git merge-into destination_branch"
}
] |
[
{
"from": "human",
"value": "Search the PATH environment variable and display the location of any matching executables"
},
{
"from": "gpt",
"value": "which executable"
}
] |
[
{
"from": "human",
"value": "If there are multiple executables which match, display all"
},
{
"from": "gpt",
"value": "which -a executable"
}
] |
[
{
"from": "human",
"value": "Start an access point"
},
{
"from": "gpt",
"value": "sudo hostapd path/to/hostapd.conf"
}
] |
[
{
"from": "human",
"value": "Start an access point, forking into the background"
},
{
"from": "gpt",
"value": "sudo hostapd -B path/to/hostapd.conf"
}
] |
[
{
"from": "human",
"value": "Search for a pattern within a file"
},
{
"from": "gpt",
"value": "egrep \"search_pattern\" path/to/file"
}
] |
[
{
"from": "human",
"value": "Search for a pattern within multiple files"
},
{
"from": "gpt",
"value": "egrep \"search_pattern\" path/to/file1 path/to/file2 ..."
}
] |
[
{
"from": "human",
"value": "Search `stdin` for a pattern"
},
{
"from": "gpt",
"value": "cat path/to/file | egrep search_pattern"
}
] |
[
{
"from": "human",
"value": "Print file name and line number for each match"
},
{
"from": "gpt",
"value": "egrep --with-filename --line-number \"search_pattern\" path/to/file"
}
] |
[
{
"from": "human",
"value": "Search for a pattern in all files recursively in a directory, ignoring binary files"
},
{
"from": "gpt",
"value": "egrep --recursive --binary-files=without-match \"search_pattern\" path/to/directory"
}
] |
[
{
"from": "human",
"value": "Search for lines that do not match a pattern"
},
{
"from": "gpt",
"value": "egrep --invert-match \"search_pattern\" path/to/file"
}
] |
[
{
"from": "human",
"value": "Start `hangups`"
},
{
"from": "gpt",
"value": "hangups"
}
] |
[
{
"from": "human",
"value": "Display troubleshooting information and help"
},
{
"from": "gpt",
"value": "hangups -h"
}
] |
[
{
"from": "human",
"value": "Set a refresh token for hangups"
},
{
"from": "gpt",
"value": "hangups --token-path path/to/token"
}
] |
[
{
"from": "human",
"value": "List all available modules"
},
{
"from": "gpt",
"value": "nettacker --show-all-modules"
}
] |
[
{
"from": "human",
"value": "Run a port scan on targets"
},
{
"from": "gpt",
"value": "nettacker [-m|--modules] port_scan [-i|--targets] 192.168.0.1/24,owasp.org,scanme.org,..."
}
] |
[
{
"from": "human",
"value": "Run a port scan on specific ports and targets listed in a file (newline separated)"
},
{
"from": "gpt",
"value": "nettacker [-m|--modules] port_scan [-g|--ports] 22,80,443,... [-l|--targets-list] path/to/targets.txt"
}
] |
[
{
"from": "human",
"value": "Run ping test before scan and then run multiple scan types on target"
},
{
"from": "gpt",
"value": "nettacker --ping-before-scan [-m|--modules] port_scan,subdomain_scan,waf_scan,... [-g|--ports] 80,443 [-i|--targets] owasp.org"
}
] |
[
{
"from": "human",
"value": "Push an Android application to an emulator/device"
},
{
"from": "gpt",
"value": "adb install path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "Push an Android application to a specific emulator/device (overrides `$ANDROID_SERIAL`)"
},
{
"from": "gpt",
"value": "adb -s serial_number install path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "[r]einstall an existing app, keeping its data"
},
{
"from": "gpt",
"value": "adb install -r path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "Push an Android application allowing version code [d]owngrade (debuggable packages only)"
},
{
"from": "gpt",
"value": "adb install -d path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "[g]rant all permissions listed in the app manifest"
},
{
"from": "gpt",
"value": "adb install -g path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "Quickly update an installed package by only updating the parts of the APK that changed"
},
{
"from": "gpt",
"value": "adb install --fastdeploy path/to/file.apk"
}
] |
[
{
"from": "human",
"value": "List all commits on the current branch"
},
{
"from": "gpt",
"value": "git rev-list HEAD"
}
] |
[
{
"from": "human",
"value": "Print the latest commit that changed (add/edit/remove) a specific file on the current branch"
},
{
"from": "gpt",
"value": "git rev-list [-n|--max-count] 1 HEAD -- path/to/file"
}
] |
[
{
"from": "human",
"value": "List commits more recent than a specific date, on a specific branch"
},
{
"from": "gpt",
"value": "git rev-list --since \"2019-12-01 00:00:00\" branch_name"
}
] |
[
{
"from": "human",
"value": "List all merge commits on a specific commit"
},
{
"from": "gpt",
"value": "git rev-list --merges commit"
}
] |
[
{
"from": "human",
"value": "Print the number of commits since a specific tag"
},
{
"from": "gpt",
"value": "git rev-list tag_name..HEAD --count"
}
] |
[
{
"from": "human",
"value": "View documentation for the current command"
},
{
"from": "gpt",
"value": "tldr sunicontopnm"
}
] |
[
{
"from": "human",
"value": "Make a desktop app for a website"
},
{
"from": "gpt",
"value": "nativefier url"
}
] |
[
{
"from": "human",
"value": "Create a desktop app with a custom name"
},
{
"from": "gpt",
"value": "nativefier --name name url"
}
] |
[
{
"from": "human",
"value": "Use a custom icon, should be a PNG"
},
{
"from": "gpt",
"value": "nativefier --icon path/to/icon.png url"
}
] |
[
{
"from": "human",
"value": "Print the contents of the system `PATH` variable, with one element per line"
},
{
"from": "gpt",
"value": "lspath"
}
] |
[
{
"from": "human",
"value": "Print the current contents of the system `PATH` variable, with one element per line, with the output paged"
},
{
"from": "gpt",
"value": "lspath --page"
}
] |
[
{
"from": "human",
"value": "Extract all images from a PDF file and save them as PNGs"
},
{
"from": "gpt",
"value": "pdfimages -png path/to/file.pdf filename_prefix"
}
] |
[
{
"from": "human",
"value": "Extract images from pages 3 to 5"
},
{
"from": "gpt",
"value": "pdfimages -f 3 -l 5 path/to/file.pdf filename_prefix"
}
] |
[
{
"from": "human",
"value": "Extract images from a PDF file and include the page number in the output filenames"
},
{
"from": "gpt",
"value": "pdfimages -p path/to/file.pdf filename_prefix"
}
] |
[
{
"from": "human",
"value": "List information about all the images in a PDF file"
},
{
"from": "gpt",
"value": "pdfimages -list path/to/file.pdf"
}
] |
[
{
"from": "human",
"value": "Compile the project in the current directory"
},
{
"from": "gpt",
"value": "zig build"
}
] |
[
{
"from": "human",
"value": "Compile and run the project in the current directory"
},
{
"from": "gpt",
"value": "zig build run"
}
] |
[
{
"from": "human",
"value": "Initialize a `zig build` project with library and executable"
},
{
"from": "gpt",
"value": "zig init"
}
] |
[
{
"from": "human",
"value": "Create and run a test build"
},
{
"from": "gpt",
"value": "zig test path/to/file.zig"
}
] |
[
{
"from": "human",
"value": "Cross compile, build and run a project for `x86_64` architecture and `windows` operating system"
},
{
"from": "gpt",
"value": "zig build run -fwine -Dtarget=x86_64-windows"
}
] |
[
{
"from": "human",
"value": "Reformat Zig source into canonical form"
},
{
"from": "gpt",
"value": "zig fmt path/to/file.zig"
}
] |
[
{
"from": "human",
"value": "Translate a C file to `zig`"
},
{
"from": "gpt",
"value": "zig translate-c -lc path/to/file.c"
}
] |
[
{
"from": "human",
"value": "Use Zig as a drop-in C++ compiler"
},
{
"from": "gpt",
"value": "zig c++ path/to/file.cpp"
}
] |
[
{
"from": "human",
"value": "List the `virsh` commands grouped into related categories"
},
{
"from": "gpt",
"value": "virsh help"
}
] |
[
{
"from": "human",
"value": "List the command categories"
},
{
"from": "gpt",
"value": "virsh help | grep \"keyword\""
}
] |
[
{
"from": "human",
"value": "List the commands in a category"
},
{
"from": "gpt",
"value": "virsh help category_keyword"
}
] |
[
{
"from": "human",
"value": "Display help for a command"
},
{
"from": "gpt",
"value": "virsh help command"
}
] |
[
{
"from": "human",
"value": "Directory and file bruteforce using the specified [w]ordlist and also [p]roxying the traffic"
},
{
"from": "gpt",
"value": "wfuzz -w path/to/file -p 127.0.0.1:8080:HTTP http://example.com/FUZZ"
}
] |
[
{
"from": "human",
"value": "Save the results to a [f]ile"
},
{
"from": "gpt",
"value": "wfuzz -w path/to/file -f filename http://example.com/FUZZ"
}
] |
[
{
"from": "human",
"value": "Show [c]olorized output while only showing the declared response codes in the output"
},
{
"from": "gpt",
"value": "wfuzz -c -w path/to/file --sc 200,301,302 http://example.com/FUZZ"
}
] |
[
{
"from": "human",
"value": "Use a custom [H]eader to fuzz subdomains while [h]iding specific response [c]odes and word counts. Increase the [t]hreads to 100 and include the target ip/domain"
},
{
"from": "gpt",
"value": "wfuzz -w path/to/file -H \"Host: FUZZ.example.com\" --hc 301 --hw 222 -t 1... |
[
{
"from": "human",
"value": "Brute force Basic Authentication using a list of usernames and passwords from files for each FUZ[z] keyword, [h]iding response [c]odes of unsuccessful attempts"
},
{
"from": "gpt",
"value": "wfuzz -c --hc 401 -s delay_between_requests_in_seconds -z file,path/to/usern... |
[
{
"from": "human",
"value": "Provide wordlist directly from the command-line and use POST request for fuzzing"
},
{
"from": "gpt",
"value": "wfuzz -z list,word1-word2-... https://api.example.com -d \"id=FUZZ&showwallet=true\""
}
] |
[
{
"from": "human",
"value": "Provide wordlists from a file applying base64 and md5 encoding on them (`wfuzz -e encoders` lists all available encoders)"
},
{
"from": "gpt",
"value": "wfuzz -z file,path/to/file,none-base64-md5 https://example.com/FUZZ"
}
] |
[
{
"from": "human",
"value": "List available encoders/payloads/iterators/printers/scripts"
},
{
"from": "gpt",
"value": "wfuzz -e encoders|payloads|iterators|printers|scripts"
}
] |
[
{
"from": "human",
"value": "Convert a Netpbm image into an unanimated GIF image"
},
{
"from": "gpt",
"value": "pamtogif path/to/image.pam > path/to/output.gif"
}
] |
[
{
"from": "human",
"value": "Mark the specified color as transparent in the output GIF file"
},
{
"from": "gpt",
"value": "pamtogif [-t|-transparent] color path/to/image.pam > path/to/output.gif"
}
] |
[
{
"from": "human",
"value": "Include the specified text as a comment in the output GIF file"
},
{
"from": "gpt",
"value": "pamtogif [-c|-comment] \"Hello World!\" path/to/image.pam > path/to/output.gif"
}
] |
[
{
"from": "human",
"value": "Display the installed emulators"
},
{
"from": "gpt",
"value": "sfdk emulator list"
}
] |
[
{
"from": "human",
"value": "Start an emulator"
},
{
"from": "gpt",
"value": "sfdk emulator start name"
}
] |
[
{
"from": "human",
"value": "Stop an emulator"
},
{
"from": "gpt",
"value": "sfdk emulator stop name"
}
] |
[
{
"from": "human",
"value": "Display emulator status"
},
{
"from": "gpt",
"value": "sfdk emulator status name"
}
] |
[
{
"from": "human",
"value": "Run an interactive shell on an emulator"
},
{
"from": "gpt",
"value": "sfdk emulator exec emulator"
}
] |
[
{
"from": "human",
"value": "Install a repository's specified submodules"
},
{
"from": "gpt",
"value": "git submodule update --init --recursive"
}
] |
[
{
"from": "human",
"value": "Add a Git repository as a submodule"
},
{
"from": "gpt",
"value": "git submodule add repository_url"
}
] |
[
{
"from": "human",
"value": "Add a Git repository as a submodule at the specified directory"
},
{
"from": "gpt",
"value": "git submodule add repository_url path/to/directory"
}
] |
[
{
"from": "human",
"value": "Update every submodule to its latest commit"
},
{
"from": "gpt",
"value": "git submodule foreach git pull"
}
] |
[
{
"from": "human",
"value": "Compare files (lists changes to turn `old_file` into `new_file`)"
},
{
"from": "gpt",
"value": "diff old_file new_file"
}
] |
[
{
"from": "human",
"value": "Compare files, ignoring white spaces"
},
{
"from": "gpt",
"value": "diff [-w|--ignore-all-space] old_file new_file"
}
] |
[
{
"from": "human",
"value": "Compare files, showing the differences side by side"
},
{
"from": "gpt",
"value": "diff [-y|--side-by-side] old_file new_file"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.