If you have a Linux machine with KVM on it, you can manage those VMs remotely from a Mac using virt-manager.
SSH to the Linux machine and add your SSH user to the libvirt group
sudo usermod -a -G libvirt $(whoami)
| # IMPORTANT! | |
| # This gist has been transformed into a github repo | |
| # You can find the most recent version there: | |
| # https://github.com/Neo23x0/auditd | |
| # ___ ___ __ __ | |
| # / | __ ______/ (_) /_____/ / | |
| # / /| |/ / / / __ / / __/ __ / | |
| # / ___ / /_/ / /_/ / / /_/ /_/ / | |
| # /_/ |_\__,_/\__,_/_/\__/\__,_/ |
| #!/usr/bin/env bash | |
| set -e | |
| set -u | |
| ## Variables | |
| set_vars(){ | |
| APT_MIRROR_HOST="mirror" | |
| LXDKVM_SSTREAM_HOST="mirror" | |
| JUJU_SSTREAM_HOST="mirror" |
| import re | |
| import boto3 | |
| import csv | |
| from botocore.exceptions import ClientError | |
| ec2 = boto3.client('ec2') | |
| def get_snapshots(): | |
| return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots'] |
| --[[ | |
| This allows you to bind any function-number key (F1-F24) to a "G" button on your mouse. | |
| To add a binding, insert a new element in the bindings table below and save this script. | |
| Script by tgp1994 (https://github.com/tgp1994) | |
| ]] | |
| local bindings = { | |
| G5 = "F13" | |
| } |
| function decode-authorization-failure-message { | |
| if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
| cat <<'EOT' | |
| Usage: decode-authorization-failure-message <message> | |
| Use this when Amazon gives you an "Encoded authorization failure message" and | |
| you need to turn it into something readable. | |
| EOT | |
| return 1 | |
| fi |
| function decode-authorization-failure-message { | |
| if [ $# -ne 1 ] || [ "$1" = -h ] || [ "$1" = --help ]; then | |
| cat <<'EOT' | |
| Usage: decode-authorization-failure-message <message> | |
| Use this when Amazon gives you an "Encoded authorization failure message" and | |
| you need to turn it into something readable. | |
| EOT | |
| return 1 | |
| fi |
| # redis interactive mode | |
| redis-cli -c -h <fqdn> -p 6379 | |
| # > ping | |
| # PONG | |
| redis-cli -c -h <fqdn> -p 6379 --stat | |
| # ------- data ------ --------------------- load -------------------- - child - | |
| # keys mem clients blocked requests connections | |
| # 2 6.24M 63 0 4067924801 (+0) 776668 |
| # Copy big files, ignoring timestamps. | |
| # -a, --archive | |
| # * Equivalent to -rlptgoD (no -H,-A,-X) | |
| # * Does not preserve hardlinks | |
| # -r, --recursive | |
| # -l, --links. Copy symlinks as symlinks. | |
| # -p, --perms. Preserve permissions. | |
| # -t, --times. Preserve modification times. | |
| # -g, --group. Preserve group. | |
| # -o, --owner. Preserve owner (super-user only). |
| from - http://davidssysadminnotes.blogspot.com/2016/01/installing-apache-kafka-and-zookeeper.html | |
| [smack1]# vi /etc/systemd/system/kafka-zookeeper.service | |
| [Unit] | |
| Description=Apache Zookeeper server (Kafka) | |
| Documentation=http://zookeeper.apache.org | |
| Requires=network.target remote-fs.target | |
| After=network.target remote-fs.target | |
| [Service] | |
| Type=simple |