conversations listlengths 2 2 |
|---|
[
{
"from": "human",
"value": "Start a shell providing a package from an older version of `nixpkgs` (21.05)"
},
{
"from": "gpt",
"value": "nix shell nixpkgs/nixos-21.05#pkg"
}
] |
[
{
"from": "human",
"value": "Start a shell with the \"default package\" from a flake in the current directory, printing build logs if any builds happen"
},
{
"from": "gpt",
"value": "nix shell -L"
}
] |
[
{
"from": "human",
"value": "Start a shell with a package from a flake on GitHub"
},
{
"from": "gpt",
"value": "nix shell github:owner/repo#pkg"
}
] |
[
{
"from": "human",
"value": "Run a command in a shell with a package"
},
{
"from": "gpt",
"value": "nix shell nixpkgs#pkg -c some-cmd --someflag 'Some other arguments'"
}
] |
[
{
"from": "human",
"value": "Show dependency tree for current environment"
},
{
"from": "gpt",
"value": "uv tree"
}
] |
[
{
"from": "human",
"value": "Show dependency tree for all environments"
},
{
"from": "gpt",
"value": "uv tree --universal"
}
] |
[
{
"from": "human",
"value": "Show dependency tree up to a certain depth"
},
{
"from": "gpt",
"value": "uv tree [-d|--depth] n"
}
] |
[
{
"from": "human",
"value": "Show the latest available version for all outdated packages"
},
{
"from": "gpt",
"value": "uv tree --outdated"
}
] |
[
{
"from": "human",
"value": "Exclude dependencies from the dev group"
},
{
"from": "gpt",
"value": "uv tree --no-dev"
}
] |
[
{
"from": "human",
"value": "Show the inverted tree, so children are dependents instead of dependencies"
},
{
"from": "gpt",
"value": "uv tree --invert"
}
] |
[
{
"from": "human",
"value": "Encode a WAV file to FLAC (this will create a FLAC file in the same location as the WAV file)"
},
{
"from": "gpt",
"value": "flac path/to/file.wav"
}
] |
[
{
"from": "human",
"value": "Encode a WAV file to FLAC, specifying the output file"
},
{
"from": "gpt",
"value": "flac -o path/to/output.flac path/to/file.wav"
}
] |
[
{
"from": "human",
"value": "Decode a FLAC file to WAV, specifying the output file"
},
{
"from": "gpt",
"value": "flac -d -o path/to/output.wav path/to/file.flac"
}
] |
[
{
"from": "human",
"value": "Test a FLAC file for the correct encoding"
},
{
"from": "gpt",
"value": "flac -t path/to/file.flac"
}
] |
[
{
"from": "human",
"value": "Convert a WBMP file to a PBM image"
},
{
"from": "gpt",
"value": "wbmptopbm path/to/input_file.wbpm > path/to/output_file.pbm"
}
] |
[
{
"from": "human",
"value": "List volumes"
},
{
"from": "gpt",
"value": "openstack volume list --all-projects"
}
] |
[
{
"from": "human",
"value": "Show volume details"
},
{
"from": "gpt",
"value": "openstack volume show volume_id"
}
] |
[
{
"from": "human",
"value": "Create new volume"
},
{
"from": "gpt",
"value": "openstack volume create --size size_in_GB --image image_id --snapshot snapshot_id --bootable|--non-bootable volume_name"
}
] |
[
{
"from": "human",
"value": "Delete volumes(s)"
},
{
"from": "gpt",
"value": "openstack volume delete volume_id1 volume_id2 ..."
}
] |
[
{
"from": "human",
"value": "Migrate volume to a new host"
},
{
"from": "gpt",
"value": "openstack volume migrate --host host_hostname instance_id"
}
] |
[
{
"from": "human",
"value": "Set volume properties"
},
{
"from": "gpt",
"value": "openstack volume set --name volume_new_name --size volume_new_size --attached|--detached --bootable|--non-bootable volume_id"
}
] |
[
{
"from": "human",
"value": "Create a backup containing all resources"
},
{
"from": "gpt",
"value": "velero backup create backup_name"
}
] |
[
{
"from": "human",
"value": "List all backups"
},
{
"from": "gpt",
"value": "velero backup get"
}
] |
[
{
"from": "human",
"value": "Delete a backup"
},
{
"from": "gpt",
"value": "velero backup delete backup_name"
}
] |
[
{
"from": "human",
"value": "Create a weekly backup, each living for 90 days (2160 hours)"
},
{
"from": "gpt",
"value": "velero schedule create schedule_name --schedules=\"@every 7d\" --ttl 2160h0m0s"
}
] |
[
{
"from": "human",
"value": "Create a restore from the latest successful backup triggered by specific schedule"
},
{
"from": "gpt",
"value": "velero restore create --from-schedule schedule_name"
}
] |
[
{
"from": "human",
"value": "Scan a Docker image"
},
{
"from": "gpt",
"value": "osv-scanner -D docker_image_name"
}
] |
[
{
"from": "human",
"value": "Scan a package lockfile"
},
{
"from": "gpt",
"value": "osv-scanner -L path/to/lockfile"
}
] |
[
{
"from": "human",
"value": "Scan an SBOM file"
},
{
"from": "gpt",
"value": "osv-scanner -S path/to/sbom_file"
}
] |
[
{
"from": "human",
"value": "Scan multiple directories recursively"
},
{
"from": "gpt",
"value": "osv-scanner -r directory1 directory2 ..."
}
] |
[
{
"from": "human",
"value": "Skip scanning Git repositories"
},
{
"from": "gpt",
"value": "osv-scanner --skip-git -r|-D target"
}
] |
[
{
"from": "human",
"value": "Output result in JSON format"
},
{
"from": "gpt",
"value": "osv-scanner --json -D|-L|-S|-r target"
}
] |
[
{
"from": "human",
"value": "Show the sequence of commits starting from the current one, in reverse chronological order of the Git repository in the current working directory"
},
{
"from": "gpt",
"value": "git log"
}
] |
[
{
"from": "human",
"value": "Show the history of a particular file or directory, including differences"
},
{
"from": "gpt",
"value": "git log [-p|--patch] path/to/file_or_directory"
}
] |
[
{
"from": "human",
"value": "Show an overview of which file(s) changed in each commit"
},
{
"from": "gpt",
"value": "git log --stat"
}
] |
[
{
"from": "human",
"value": "Show a graph of commits in the current branch using only the first line of each commit message"
},
{
"from": "gpt",
"value": "git log --oneline --graph"
}
] |
[
{
"from": "human",
"value": "Show a graph of all commits, tags and branches in the entire repo"
},
{
"from": "gpt",
"value": "git log --oneline --decorate --all --graph"
}
] |
[
{
"from": "human",
"value": "Show only commits with messages that include a specific string, ignoring case"
},
{
"from": "gpt",
"value": "git log [-i|--regexp-ignore-case] --grep search_string"
}
] |
[
{
"from": "human",
"value": "Show the last N number of commits from a certain author"
},
{
"from": "gpt",
"value": "git log [-n|--max-count] number --author \"author\""
}
] |
[
{
"from": "human",
"value": "Show commits between two dates (yyyy-mm-dd)"
},
{
"from": "gpt",
"value": "git log --before \"2017-01-29\" --after \"2017-01-17\""
}
] |
[
{
"from": "human",
"value": "Get the commit hash of a branch"
},
{
"from": "gpt",
"value": "git rev-parse branch_name"
}
] |
[
{
"from": "human",
"value": "Get the current branch name"
},
{
"from": "gpt",
"value": "git rev-parse --abbrev-ref HEAD"
}
] |
[
{
"from": "human",
"value": "Get the absolute path to the root directory"
},
{
"from": "gpt",
"value": "git rev-parse --show-toplevel"
}
] |
[
{
"from": "human",
"value": "Run a command using the input data as arguments"
},
{
"from": "gpt",
"value": "arguments_source | xargs command"
}
] |
[
{
"from": "human",
"value": "Run multiple chained commands on the input data"
},
{
"from": "gpt",
"value": "arguments_source | xargs sh -c \"command1 && command2 | command3\""
}
] |
[
{
"from": "human",
"value": "Gzip all files with `.log` extension taking advantage of multiple threads (`-print0` uses a null character to split file names, and `-0` uses it as delimiter)"
},
{
"from": "gpt",
"value": "find . -name '*.log' -print0 | xargs [-0|--null] [-P|--max-procs] 4 [-n|--max... |
[
{
"from": "human",
"value": "Execute the command once per argument"
},
{
"from": "gpt",
"value": "arguments_source | xargs -n|--max-args 1 command"
}
] |
[
{
"from": "human",
"value": "Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line"
},
{
"from": "gpt",
"value": "arguments_source | xargs -I _ command _ optional_extra_arguments"
}
] |
[
{
"from": "human",
"value": "Parallel runs of up to `max-procs` processes at a time; the default is 1. If `max-procs` is 0, xargs will run as many processes as possible at a time"
},
{
"from": "gpt",
"value": "arguments_source | xargs [-P|--max-procs] max-procs command"
}
] |
[
{
"from": "human",
"value": "Generate all possible strings that match a regular expression"
},
{
"from": "gpt",
"value": "exrex 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "Generate a random string that matches a regular expression"
},
{
"from": "gpt",
"value": "exrex --random 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "Generate at most 100 strings that match a regular expression"
},
{
"from": "gpt",
"value": "exrex --max-number 100 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "Generate all possible strings that match a regular expression, joined by a custom delimiter string"
},
{
"from": "gpt",
"value": "exrex --delimiter \", \" 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "Print count of all possible strings that match a regular expression"
},
{
"from": "gpt",
"value": "exrex --count 'regular_expression'"
}
] |
[
{
"from": "human",
"value": "Simplify a regular expression"
},
{
"from": "gpt",
"value": "exrex --simplify 'ab|ac'"
}
] |
[
{
"from": "human",
"value": "Print eyes"
},
{
"from": "gpt",
"value": "exrex '[oO0](_)[oO0]'"
}
] |
[
{
"from": "human",
"value": "Print a boat"
},
{
"from": "gpt",
"value": "exrex '( {20}(\\| *\\\\|-{22}|\\|)|\\.={50}| ( ){0,5}\\\\\\.| {12}~{39})'"
}
] |
[
{
"from": "human",
"value": "Play a media file"
},
{
"from": "gpt",
"value": "ffplay path/to/file"
}
] |
[
{
"from": "human",
"value": "Play audio from a media file without a GUI"
},
{
"from": "gpt",
"value": "ffplay -nodisp path/to/file"
}
] |
[
{
"from": "human",
"value": "Play media passed by `ffmpeg` through `stdin`"
},
{
"from": "gpt",
"value": "ffmpeg -i path/to/file -c copy -f media_format - | ffplay -"
}
] |
[
{
"from": "human",
"value": "Play a video and show motion vectors in real time"
},
{
"from": "gpt",
"value": "ffplay -flags2 +export_mvs -vf codecview=mv=pf+bf+bb path/to/file"
}
] |
[
{
"from": "human",
"value": "Show only video keyframes"
},
{
"from": "gpt",
"value": "ffplay -vf select=\"eq(pict_type\\,PICT_TYPE_I)\" path/to/file"
}
] |
[
{
"from": "human",
"value": "View documentation for the original command"
},
{
"from": "gpt",
"value": "tldr jupyter lab"
}
] |
[
{
"from": "human",
"value": "List untagged images"
},
{
"from": "gpt",
"value": "gcrane gc repository"
}
] |
[
{
"from": "human",
"value": "Whether to recurse through repositories"
},
{
"from": "gpt",
"value": "gcrane gc repository [-r|--recursive]"
}
] |
[
{
"from": "human",
"value": "Display help"
},
{
"from": "gpt",
"value": "gcrane gc [-h|--help]"
}
] |
[
{
"from": "human",
"value": "Deprecate a specific version of a package"
},
{
"from": "gpt",
"value": "npm deprecate package_name@version \"deprecation_message\""
}
] |
[
{
"from": "human",
"value": "Deprecate a range of versions of a package"
},
{
"from": "gpt",
"value": "npm deprecate package_name@\"<version_range\" \"deprecation_message\""
}
] |
[
{
"from": "human",
"value": "Un-deprecate a specific version of a package"
},
{
"from": "gpt",
"value": "npm deprecate package_name@version \"\""
}
] |
[
{
"from": "human",
"value": "Print the text message as a large banner (quotes are optional)"
},
{
"from": "gpt",
"value": "banner \"Hello World\""
}
] |
[
{
"from": "human",
"value": "Use a banner width of 50 characters"
},
{
"from": "gpt",
"value": "banner [-w|--width] 50 \"Hello World\""
}
] |
[
{
"from": "human",
"value": "Read text from `stdin`"
},
{
"from": "gpt",
"value": "banner"
}
] |
[
{
"from": "human",
"value": "Create a Python virtual environment"
},
{
"from": "gpt",
"value": "python -m venv path/to/virtual_environment"
}
] |
[
{
"from": "human",
"value": "Activate the virtual environment (Linux and macOS)"
},
{
"from": "gpt",
"value": "source path/to/virtual_environment/bin/activate"
}
] |
[
{
"from": "human",
"value": "Activate the virtual environment (Windows)"
},
{
"from": "gpt",
"value": "path\\to\\virtual_environment\\Scripts\\activate.bat"
}
] |
[
{
"from": "human",
"value": "Deactivate the virtual environment"
},
{
"from": "gpt",
"value": "deactivate"
}
] |
[
{
"from": "human",
"value": "List all available backup revisions for all packages"
},
{
"from": "gpt",
"value": "tlmgr restore"
}
] |
[
{
"from": "human",
"value": "List all available backup revisions for a specific package"
},
{
"from": "gpt",
"value": "tlmgr restore package"
}
] |
[
{
"from": "human",
"value": "Restore a specific revision of a specific package"
},
{
"from": "gpt",
"value": "tlmgr restore package revision"
}
] |
[
{
"from": "human",
"value": "Restore the latest revision of all backed-up packages"
},
{
"from": "gpt",
"value": "tlmgr restore --all"
}
] |
[
{
"from": "human",
"value": "Restore a package from a custom backup directory"
},
{
"from": "gpt",
"value": "tlmgr restore package revision --backupdir path/to/backup_directory"
}
] |
[
{
"from": "human",
"value": "Perform a dry-run and print all taken actions without making them"
},
{
"from": "gpt",
"value": "tlmgr restore --dry-run package revision"
}
] |
[
{
"from": "human",
"value": "Read a PBM file as input and produce an ASCII output"
},
{
"from": "gpt",
"value": "pbmtoascii path/to/input_file.pbm"
}
] |
[
{
"from": "human",
"value": "Read a PBM file as input and save an ASCII output into a file"
},
{
"from": "gpt",
"value": "pbmtoascii path/to/input_file.pbm > path/to/output_file"
}
] |
[
{
"from": "human",
"value": "Read a PBM file as input while setting the pixel mapping (defaults to 1x2)"
},
{
"from": "gpt",
"value": "pbmtoascii -1x2|2x4 path/to/input_file.pbm"
}
] |
[
{
"from": "human",
"value": "Display version"
},
{
"from": "gpt",
"value": "pbmtoascii [-v|-version]"
}
] |
[
{
"from": "human",
"value": "Checkout the latest version of all target files and directories"
},
{
"from": "gpt",
"value": "dvc checkout"
}
] |
[
{
"from": "human",
"value": "Checkout the latest version of a specified target"
},
{
"from": "gpt",
"value": "dvc checkout target"
}
] |
[
{
"from": "human",
"value": "Checkout a specific version of a target from a different Git commit/tag/branch"
},
{
"from": "gpt",
"value": "git checkout commit_hash|tag|branch target && dvc checkout target"
}
] |
[
{
"from": "human",
"value": "Display system information"
},
{
"from": "gpt",
"value": "fastfetch"
}
] |
[
{
"from": "human",
"value": "Fetch a specific structure"
},
{
"from": "gpt",
"value": "fastfetch --structure structure"
}
] |
[
{
"from": "human",
"value": "Load a custom configuration file"
},
{
"from": "gpt",
"value": "fastfetch --load-config path/to/config_file"
}
] |
[
{
"from": "human",
"value": "Use a specific logo"
},
{
"from": "gpt",
"value": "fastfetch --logo logo"
}
] |
[
{
"from": "human",
"value": "Display system information without a logo"
},
{
"from": "gpt",
"value": "fastfetch --logo none"
}
] |
[
{
"from": "human",
"value": "Use a specific color for the keys and title"
},
{
"from": "gpt",
"value": "fastfetch --color blue"
}
] |
[
{
"from": "human",
"value": "Index the `/usr` directory, writing to the default database location `~/.duc.db`"
},
{
"from": "gpt",
"value": "duc index /usr"
}
] |
[
{
"from": "human",
"value": "List all files and directories under `/usr/local`, showing relative file sizes in a graph"
},
{
"from": "gpt",
"value": "duc ls [-Fg|--classify --graph] /usr/local"
}
] |
[
{
"from": "human",
"value": "List all files and directories under `/usr/local` using treeview recursively"
},
{
"from": "gpt",
"value": "duc ls [-Fg|--classify --graph] [-R|--recursive] /usr/local"
}
] |
[
{
"from": "human",
"value": "Start the graphical interface to explore the file system using sunburst graphs"
},
{
"from": "gpt",
"value": "duc gui /usr"
}
] |
[
{
"from": "human",
"value": "Run the ncurses console interface to explore the file system"
},
{
"from": "gpt",
"value": "duc ui /usr"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.