Compare commits

...

4 Commits

Author SHA1 Message Date
Tom Alexander
e84fd15cf2
Add support for controlling turbo boost in the set cpu perf perc script. 2023-08-12 21:35:30 -04:00
Tom Alexander
40437bec04
Disable hard-coded www dns entry. 2023-08-12 20:19:14 -04:00
Tom Alexander
8bad10eace
Fix a variable name in the bhyve netgraph script. 2023-08-08 14:46:03 -04:00
Tom Alexander
8a3855fddd
Add mole to mrmanager. 2023-08-02 18:15:22 -04:00
7 changed files with 53 additions and 6 deletions

View File

@ -35,3 +35,18 @@ bhyve_dataset: zdata/vm
bhyve_canmount: "on"
# efi_dev: /dev/gpt/EFI
devfs_rules: "mrmanager_devfs.rules"
users:
talexander:
initialize: true
uid: 11235
gid: 11235
groups:
- name: wheel
authorized_keys:
- yubikey
- main_fido
- backup_fido
mole:
initialize: true
authorized_keys:
- mole

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
#
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
git filter-branch --env-filter '
WRONG_EMAIL="old@email.foo"
NEW_NAME="New Name"
NEW_EMAIL="new@email.buzz"
if [ "$GIT_COMMITTER_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_COMMITTER_NAME="$NEW_NAME"
export GIT_COMMITTER_EMAIL="$NEW_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$WRONG_EMAIL" ]
then
export GIT_AUTHOR_NAME="$NEW_NAME"
export GIT_AUTHOR_EMAIL="$NEW_EMAIL"
fi
' --tag-name-filter cat --commit-filter 'git commit-tree -S "$@";' -- --branches --tags

View File

@ -47,6 +47,8 @@
dest: /usr/local/bin/git_find_merged_branches
- src: cleanup_temporary_files
dest: /usr/local/bin/cleanup_temporary_files
- src: git_fix_author.bash
dest: /usr/local/bin/git_fix_author
- import_tasks: tasks/freebsd.yaml
when: 'os_flavor == "freebsd"'

View File

@ -39,9 +39,9 @@ fi
function cleanup {
for vm in "${vms[@]}"; do
log "Destroying bhyve vm $f"
log "Destroying bhyve vm $vm"
bhyvectl "--vm=$vm" --destroy
log "Destroyed bhyve vm $f"
log "Destroyed bhyve vm $vm"
done
}
vms=()
@ -144,7 +144,7 @@ function start_vm {
# TODO: Look into using nmdm instead of stdio for serial console
if [ -n "$mount_cd" ]; then
additional_args+=("-s" "4,ahci-cd,$mount_cd")
additional_args+=("-s" "5,ahci-cd,$mount_cd")
fi
if [ "$VNC_ENABLE" = "YES" ]; then
additional_args+=("-s" "29,fbuf,tcp=$VNC_LISTEN,w=1920,h=1080")

View File

@ -1,13 +1,20 @@
#!/usr/bin/env bash
#
# Tell speedshift whether to maximize CPU performance (100) or energy
# efficiency (0).
# efficiency (0). If set to 101 this will enable turboboost.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
perc=$1
if [ $perc -gt 100 ]; then
echo 0 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
perc=100
else
echo 1 | tee /sys/devices/system/cpu/intel_pstate/no_turbo
fi
if [ $perc -lt 50 ]; then
echo "power" | tee /sys/devices/system/cpu/cpufreq/policy*/energy_performance_preference
else

View File

@ -46,8 +46,8 @@ fm1._domainkey IN CNAME fm1.fizz.buzz.dkim.fmhosted.com.
fm2._domainkey IN CNAME fm2.fizz.buzz.dkim.fmhosted.com.
fm3._domainkey IN CNAME fm3.fizz.buzz.dkim.fmhosted.com.
www IN A 127.0.0.1
IN AAAA ::1
;www IN A 127.0.0.1
; IN AAAA ::1
; Allows email clients to automatically find the correct settings for your account.

View File

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINtEizWWTfTdWJ+f6F2ot27V0ktYAxSCVI6d/tpS6ARw mole@maxwell