jarno / port_forward
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Port forward wrapper for firewalld
| 1 | #!/bin/bash |
| 2 | |
| 3 | if [[ "$1" == "stop" ]]; then |
| 4 | printf "Reloading firewall.. " |
| 5 | firewall-cmd --reload |
| 6 | exit $? |
| 7 | fi |
| 8 | |
| 9 | function usage () { |
| 10 | printf "\nUsage: |
jarno / guest_disk_resize.md
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Resize VM disk
How to resize a guest VM disk
- Resize the virtual disk image
- On Proxmox:
qm resize <vmid> <disk id> <new size>- e.g.
qm resize 132 scsi0 100Gwill set the disk image size to 100G - On modern Linux guests (kernel >3.6) no need to reboot the guest
- e.g.
- Steps inside the guest
- for LVM:
- Grow the partition:
- fdisk
- Grow the partition:
jarno / tar-over-ssh.md
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
Copy to remote with SSH & tar
tar -hc src/ | ssh target.machine 'tar -xC /path/to/remote'
- will create /path/to/remote/src/ on the target machine with symlinks replaced by their targers
jarno / devcontainer.json
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность
VS Code with rootless podman
| 1 | // ... |
| 2 | "remoteUser": "xxx", |
| 3 | "containerUser": "xxx", |
| 4 | "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z", |
| 5 | "workspaceFolder": "/workspace", |
| 6 | "runArgs": ["--userns=keep-id"] |
| 7 | |
| 8 | // For rootless podman, root inside container: |
| 9 | "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z", |
| 10 | "workspaceFolder": "/workspace" |
Source: https://github.com/CoolerMasterTechnology/Pi-Tool/issues/7#issuecomment-834979824
FWIW, if all you want is for the shutdown button to work, this application is completely unnecessary. The button is on the standard/default shutdown pin, GPIO 3, so all you have to do is add this to your /boot/config.txt:
Enable shutdown button on GPIO 3
dtoverlay=gpio-shutdown
If you'd prefer to set the defaults explicitly: