- Create a Proxmox vm with 1 socket, 2 cores, 2GB RAM, 32GB storage, and UEFI
- Note the vm ID (i.e., 101)
- ssh to the Proxmox host
- Download the image for KVM/Proxmox from the "Other Systems" page in the Home Assistant docs as by using
wget
orcurl -OL
- Convert the .qcow2 file to a raw .img file:
qemu-img convert -f <downloaded file> -O <same filename but with .img>
- Write the image to the vm's zvol. For example:
dd if=<.img file> of=/dev/zvol/<storage>/vm-<id>-disk-0 bs=1M
qm start
the vm- If you see EFI complaining in the console, reboot the vm, go into UEFI (you have to use the special keys slideout and click
esc
), and use the boot maintenance manager to select the right boot file on the haos volume
In VyOS, FRR doesn't seem to want to connect to an RPKI cache server after booting. To restore the connection:
- Connect to the vyos firewall
- Run
vtysh
- At the vtysh prompt:
rpki stop
rpki start
clear bgp
exit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Copyright: (c) 2022, John Burwell <[email protected]> | |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
from __future__ import (absolute_import, division, print_function) | |
__metaclass__ = type | |
DOCUMENTATION = r''' | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Monit on pfSense 2.5 x64 | |
# Install the package from the FreeBSD repository | |
pkg add http://pkg.freebsd.org/FreeBSD:12:amd64/latest/All/monit-5.29.0_1.txz | |
# Rename the rc.d script to .sh and fix permissions so pfSense will start it automatically | |
mv /usr/local/etc/rc.d/monit /usr/local/etc/rc.d/monit.sh | |
chmod 0755 /usr/local/etc/rc.d/monit.sh | |
# Add monit_enable=YES to a local rc.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# zsh example for python virtualenv activation shortcuts with autocomplete | |
# | |
# - Assumes your virtualenvs are stored in the directory ~/virtualenvs | |
# | |
# To use, type activate, then press tab to get a list of available virtualenvs | |
# Example: act<tab> ans<tab> to do "activate ~/virtualenvs/ansible" | |
# 1. Activate enhanced completion in zsh | |
autoload -Uz compinit && compinit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
Description | |
----------- | |
This script can help you merge duplicate Azure AD users or match a local | |
AD user to an Azure AD user by copying the Azure AD Immutable ID to the | |
local user record. | |
This can be useful if Azure AD Connect has not correctly matched a local | |
user with an existing cloud user, leaving you with duplicate users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# Grep the CrashPlan history.log.0 file for "Completed" and get the date and time | |
# Note: check the path of the log file for your environment | |
result=$(grep Completed /Library/Logs/CrashPlan/history.log.0 | tail -1 | awk '{ print $2 " " $3 }') | |
# Reformat CrashPlan's ad-hoc date format into a standard format | |
reformatted=$(date -j -f "%m/%d/%y %H:%M%p" "${result}" "+%Y-%m-%d %H:%M:%S") | |
# Output the result for Jamf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Infinitive | |
After=multi-user.target | |
[Service] | |
Type=Idle | |
ExecStart=/home/pi/go/src/github.com/jmbwell/infinitive/infinitive -httpport=8080 -serial=/dev/ttyUSB0 | |
StandardOutput=null | |
Restart=always | |
RestartSec=10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Homebridge | |
After=multi-user.target | |
[Service] | |
Type=Idle | |
ExecStart=/usr/bin/homebridge -U /root/.homebridge -D | |
Restart=always | |
RestartSec=10 |