📂 Add new directories: mise, uv, zb
This commit is contained in:
28
mise/CHEATSHEET.md
Normal file
28
mise/CHEATSHEET.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# mise
|
||||||
|
|
||||||
|
## Meta
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: mise
|
||||||
|
repo: https://github.com/jdx/mise
|
||||||
|
description: dev tools, env vars, task runner
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Install Tools
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ mise use --global node@24 go@1
|
||||||
|
$ node -v
|
||||||
|
v24.x.x
|
||||||
|
$ go version
|
||||||
|
go version go1.x.x macos/arm64
|
||||||
|
```
|
||||||
|
|
||||||
|
### Execute Tool
|
||||||
|
```shell
|
||||||
|
$ mise exec node@24 -- node -v
|
||||||
|
mise node@24.x.x ✓ installed
|
||||||
|
v24.x.x
|
||||||
|
```
|
||||||
65
uv/CHEATSHEET.md
Normal file
65
uv/CHEATSHEET.md
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
# uv
|
||||||
|
|
||||||
|
## Meta
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: uv
|
||||||
|
repo: https://github.com/astral-sh/uv
|
||||||
|
description: An extremely fast Python package and project manager, written in Rust.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Update
|
||||||
|
|
||||||
|
```shell
|
||||||
|
uv self update
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### Python
|
||||||
|
|
||||||
|
```shell
|
||||||
|
uv python list
|
||||||
|
```
|
||||||
|
|
||||||
|
### Script
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ echo 'import requests; print(requests.get("https://example.com"))' > example.py
|
||||||
|
|
||||||
|
$ uv add --script example.py requests
|
||||||
|
Updated `example.py`
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ uv run example.py
|
||||||
|
Reading inline script metadata from: example.py
|
||||||
|
Installed 5 packages in 12ms
|
||||||
|
<Response [200]>
|
||||||
|
```
|
||||||
|
|
||||||
|
### Tool
|
||||||
|
|
||||||
|
```shell
|
||||||
|
$ uvx pycowsay 'hello world!'
|
||||||
|
Resolved 1 package in 167ms
|
||||||
|
Installed 1 package in 9ms
|
||||||
|
+ pycowsay==0.0.0.2
|
||||||
|
"""
|
||||||
|
|
||||||
|
------------
|
||||||
|
< hello world! >
|
||||||
|
------------
|
||||||
|
\ ^__^
|
||||||
|
\ (oo)\_______
|
||||||
|
(__)\ )\/\
|
||||||
|
||----w |
|
||||||
|
|| ||
|
||||||
|
```
|
||||||
|
|
||||||
31
zb/CHEATSHEET.md
Normal file
31
zb/CHEATSHEET.md
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
# zb
|
||||||
|
|
||||||
|
## Meta
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
name: zb
|
||||||
|
aliases: zerobrew
|
||||||
|
repo: https://github.com/lucasgelfond/zerobrew
|
||||||
|
description: A 5-20x faster experimental Homebrew alternative
|
||||||
|
```
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
```shell
|
||||||
|
curl -fsSL https://zerobrew.rs/install | bash
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```shell
|
||||||
|
zb install jq # install one package
|
||||||
|
zb install wget git # install multiple
|
||||||
|
zb bundle # install from Brewfile
|
||||||
|
zb bundle install -f myfile # install from custom file
|
||||||
|
zb bundle dump # export installed packages to Brewfile
|
||||||
|
zb bundle dump -f out --force # dump to custom file (overwrite)
|
||||||
|
zb uninstall jq # uninstall one package
|
||||||
|
zb reset # uninstall everything
|
||||||
|
zb gc # garbage collect unused store entries
|
||||||
|
zbx jq --version # run without linking
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user