https://github.com/dcoles/tools
A collection of useful tools.
https://github.com/dcoles/tools
Last synced: 2 months ago
JSON representation
A collection of useful tools.
- Host: GitHub
- URL: https://github.com/dcoles/tools
- Owner: dcoles
- License: mit
- Created: 2018-11-04T00:08:42.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-02T04:43:57.000Z (over 3 years ago)
- Last Synced: 2026-01-01T09:10:25.597Z (5 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tools
A collection of useful tools and short scripts that might make your day a little better.
## choot
Simple namespace-based chroot in Bash.
### Usage
```
$ choot [-R] /path/to/sysroot [cmd [args...]]
```
If the `-R` option is given then the sysroot will be mounted read-only.
If `cmd` is not given then runs `$SHELL -i` (default: `/bin/sh -i`), otherwise runs the provided command inside the sysroot.
## ghcat
Cat a file on GitHub.
### Usage
Cat a file:
```
$ ghcat owner/repo/path/in/repo.ext
```
Cat a private file:
```
$ ghcat -u username:password owner/repo/path/in/repo.ext
```
## gist
Create a GitHub gist from the command-line.
### Usage
Create a gist of one or more files:
```
$ gist -u username file [file...]
```
Provide password or [Personal Access Token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)
on the command-line:
```
$ gist -u username:token file [file...]
```
Create a public gist:
```
$ gist -u username -P file [file...]
```
Provide a gist description:
```
$ gist -u username -d 'My files' file [file...]
```
Create a gist from STDIN:
```
$ gist -u username -
```