- Create a zvol for your OpenBSD VM
- Add a VM with UEFI boot
- Change NIC to VIRTIO
- Add the zvol you created as a VIRTIO disk
- Inspect HTML source for the row for the VM, look for dgrid_vm-row-# where the # is the ID
- or subtract 5900 from the VNC Port
- or use the
sqlite3
command below
- in new versions of FreeNAS it's listed in the GUI.
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
https://github.com/afresh1/dotfiles/blob/master/plenv/libexec/plenv-install-latest |
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
--- admin.cgi.orig Wed Oct 11 18:32:23 2017 | |
+++ admin.cgi Wed Oct 11 18:32:52 2017 | |
@@ -8,19 +8,19 @@ | |
########################### | |
use strict; | |
use Blogsum::Config; | |
-my $database = $Blogsum::Config::database; | |
-my $blog_theme = $Blogsum::Config::blog_theme; | |
-my $blog_title = $Blogsum::Config::blog_title; | |
+our $database = $Blogsum::Config::database; |
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/env plackup | |
use strict; | |
use warnings; | |
use Plack::Builder; | |
use Plack::App::File; | |
use Plack::App::WrapCGI; | |
BEGIN { | |
chdir "/var/www/blogsum" or die "Unable to chdir: $!"; |
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/perl | |
use v5.20;; | |
use warnings; | |
BEGIN { | |
require Time::HiRes; | |
# Has to come before importing File::Copy | |
Time::HiRes->export( 'File::Copy', qw( stat utime ) ); | |
} | |
use File::Copy; |
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
use v5.16; | |
use warnings; | |
package HTTP::Tiny::nc; | |
use parent 'HTTP::Tiny'; | |
our $VERSION = v0.0.3; | |
# Copyright (c) 2019-2023 Andrew Hewus Fresh <afresh1@openbsd.org> | |
# | |
# Permission to use, copy, modify, and distribute this software for any |
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/ksh | |
set -e | |
set -f -u -C | |
# Copyright (c) 2019 Andrew Hewus Fresh <andrew@afresh1.com> | |
# | |
# Permission to use, copy, modify, and distribute this software for any | |
# purpose with or without fee is hereby granted, provided that the above | |
# copyright notice and this permission notice appear in all copies. | |
# |
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/perl | |
use strict; | |
use warnings; | |
use v5.10; | |
use Time::HiRes qw< gettimeofday tv_interval >; | |
# Copyright (c) 2020 Andrew Hewus Fresh <andrew@afresh1.com> | |
# | |
# Permission to use, copy, modify, and distribute this software for any |
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 | |
chroot=/var/www # ${PWD} | |
copy_recurse() { | |
file=$1 | |
[ -e "${chroot}${file}" ] && return | |
mkdir -p $( dirname "${chroot}${file}" ) | |
cp -p "$file" "${chroot}${file}" |
These examples all live in a default server block in your httpd.conf(5).
server "default" {
listen on * port 80
... # all the location blocks can together right here
}
We'll be using slowcgi(8) as the example, because with the -d
flag it helpfully spits out the FastCGI environment it got from httpd(8) and what it's planning to do with that.