Skip to content

Instantly share code, notes, and snippets.

View kjkent's full-sized avatar
:shipit:

Kristopher James Kent kjkent

:shipit:
  • @CyberSecuritiesUK
  • Earth
View GitHub Profile
@kjkent
kjkent / docker-nuke.sh
Last active October 11, 2022 10:34 — forked from Maxzor/remove-all-from-docker-oneliner.sh
Docker "rm everything"
#!/bin/bash
cls() { docker container ls -qa; }
ils() { docker image ls -qa; }
vls() { docker volume ls -q; }
nls() {
an=$(docker network ls | awk '(NR > 1) {print $1" "$2}')
# remove host default networks
echo $an | grep -v 'bridge\|host\|none' | awk '{print $1}'
}
@kjkent
kjkent / pve_xtermjs_for_ubuntu_vm.txt
Created September 19, 2022 19:01 — forked from edisonlee55/pve_xtermjs_for_ubuntu_vm.txt
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
@kjkent
kjkent / README.md
Created July 13, 2022 14:49 — forked from kabili207/Rclone systemd service.md
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox