mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
Compare commits
12 commits
41f318fa0a
...
71ede7ecbf
Author | SHA1 | Date | |
---|---|---|---|
71ede7ecbf | |||
d3f8b83a89 | |||
1853d06b01 | |||
31a2b852d6 | |||
a2db48c969 | |||
b584a51ba7 | |||
73cdf2ffec | |||
5646b45a5b | |||
a435898101 | |||
7284b10711 | |||
b829aac16c | |||
76d65849ec |
3 changed files with 44 additions and 6 deletions
36
docs/Command Snippets/Ansible Snippets.md
Normal file
36
docs/Command Snippets/Ansible Snippets.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
WSL Fix for world-writable directories
|
||||
```bash
|
||||
export ANSIBLE_CONFIG=./ansible.cfg
|
||||
```
|
||||
Ping
|
||||
```bash
|
||||
ansible all -m ping
|
||||
```
|
||||
Gather facts
|
||||
```bash
|
||||
ansible all -m gather_facts
|
||||
|
||||
# Limit to one device
|
||||
ansible all -m gather_facts --limit ADDRESS
|
||||
```
|
||||
Elevate command to root user
|
||||
```bash
|
||||
# This will fail without sudo
|
||||
ansible all -m apt -a update_cache=true
|
||||
|
||||
# This will succeed
|
||||
# Equivalent to sudo apt-update
|
||||
ansible all -m apt -a update_cache=true --become --ask-become-me-pass
|
||||
```
|
||||
Install packages
|
||||
```bash
|
||||
ansible all -m apt -a name=vim --become --ask-become-pass
|
||||
```
|
||||
Install/Update Package (multiple arguments)
|
||||
```bash
|
||||
ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass
|
||||
```
|
||||
`sudo apt update` equivalent
|
||||
```bash
|
||||
ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass
|
||||
```
|
|
@ -1,10 +1,12 @@
|
|||
### Browser Extensions
|
||||
- [https://github.com/Dj0ulo/OptiSearch](https://github.com/Dj0ulo/OptiSearch)
|
||||
### VSCode
|
||||
- Custom VSCode Theme
|
||||
- https://marketplace.visualstudio.com/items?itemName=leandro-rodrigues.fluent-ui-vscode
|
||||
- [https://marketplace.visualstudio.com/items?itemName=illixion.vscode-vibrancy-continued](https://marketplace.visualstudio.com/items?itemName=illixion.vscode-vibrancy-continued)
|
||||
- Terminal tab may be broken. You can fix it by following this below
|
||||
[https://github.com/TheOld/vscode-fluent-ui/issues/53](https://github.com/TheOld/vscode-fluent-ui/issues/53)
|
||||
- Edit `workbench.html` file at `Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench`
|
||||
#### Custom VSCode Theme
|
||||
- [Fluent-UI-VSCode](https://marketplace.visualstudio.com/items?itemName=leandro-rodrigues.fluent-ui-vscode)
|
||||
- [VSCode Vibrancy Continued](https://marketplace.visualstudio.com/items?itemName=illixion.vscode-vibrancy-continued)
|
||||
- Terminal tab may be broken. You can fix it by following the GitHub issue [here](https://github.com/TheOld/vscode-fluent-ui/issues/53)
|
||||
Edit `workbench.html` file at `Microsoft VS Code\resources\app\out\vs\code\electron-sandbox\workbench`
|
||||
#### [JSON Crack](https://marketplace.visualstudio.com/items?itemName=AykutSarac.jsoncrack-vscode)
|
||||
![](_resources/Extensions/cae5cacf2eacf3bbea0cdafe628b8c55_MD5.gif)
|
||||
|
||||
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 931 KiB |
Loading…
Reference in a new issue