Skip to content

Instantly share code, notes, and snippets.

View reyk's full-sized avatar
🐡

Reyk Floeter reyk

🐡
View GitHub Profile
@reyk
reyk / openbsd-thinkpad-x1-carbon-gen11-2023
Created June 27, 2023 10:16
OpenBSD 7.3 on Thinkpad X1 Carbon Gen 11
OpenBSD 7.3-current (GENERIC.MP) #1: Tue Jun 27 09:53:32 CEST 2023
reyk@kyushu.local.atexit.net:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 33916760064 (32345MB)
avail mem = 32869203968 (31346MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.4 @ 0x55a9e000 (82 entries)
bios0: vendor LENOVO version "N3XET38W (1.13 )" date 04/26/2023
@reyk
reyk / j
Last active November 23, 2018 11:04
If you're waiting for your compiler to finish... works perfectly with Rust and "j cargo build"
#!/bin/sh
SESSION=$(openssl rand -hex 8)
SONG=~/Downloads/Jeopardy-theme-song.mp3
tmux new-session -d -s ${SESSION} "mplayer -loop 0 ${SONG}"
$@
RET=$?
@reyk
reyk / dmesg-openbsd-6.1-autoinstall-test3
Created August 16, 2017 07:20
Self-installing VM: OpenBSD 6.1 with modified auto-installer + syspatch + cloud-agent on Microsoft Azure
>> OpenBSD/amd64 BOOT 3.33
\|/-\cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:bsd.rd: |/-\|3402068/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+1430528/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+3876792/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
@reyk
reyk / dmesg-openbsd-6.1-autoinstall-test2
Last active July 7, 2017 17:40
Self-installing VM: OpenBSD 6.1 with modified auto-installer + syspatch + cloud-agent
2017-07-07T17:35:14+0000
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+1430528/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+3876792/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+0+598016 [72+4
@reyk
reyk / dmesg-openbsd-6.1-autoinstall-test1
Created July 6, 2017 19:32
Self-installing VM: OpenBSD 6.1 with modified auto-installer (doesn't work yet, ec2-user is not accepted as user name)
Copyright (c) 1982, 1986, 1989, 1991, 199
The Regents of the University of California. All rights reserved
Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.1 (RAMDISK_CD) #19: Sat Apr 1 13:49:18 MDT 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1056964608 (1008MB)
avail mem = 1021235200 (973MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xeb01f (11 entries)
bios0: vendor Xen version "4.2.amazon" date 02/16/2017
@reyk
reyk / dmesg-openbsd-6.1-syspatch.txt
Created July 6, 2017 14:40
OpenBSD 6.1-stable with syspatch on first boot using https://github.com/reyk/cloud-openbsd
2017-07-06T14:34:39+0000
>> OpenBSD/amd64 BOOT 3.33
boot>
\|/-\|/booting hd0a:/bsd: -\|/-7057136\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/+2225160-\|/-\|/-\|/-\|/-\|/-\|
@reyk
reyk / dmesg-openbsd-6.1-current-karl.txt
Created July 6, 2017 14:23
OpenBSD 6.1-current VM on AWS starting with kernel randomization on first boot (KARL) using https://github.com/reyk/cloud-openbsd
2017-07-06T14:18:06+0000
\|/-\|/booting hd0a:/bsd: -\|/-7781728\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|
@reyk
reyk / vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Last active July 8, 2021 04:09
OpenBSD vmm and meta-data running ubuntu-16.10-server-cloudimg-amd64.raw
- Get OpenBSD from http://www.openbsd.org/ ;)
- Find an Ubuntu cloud image on https://cloud-images.ubuntu.com/
- Get https://github.com/reyk/meta-data and configure it for cloud-init
- Run the VM ...
Script started on Thu Mar 30 01:53:50 2017
# qemu-img convert ubuntu-16.10-server-cloudimg-amd64.img ubuntu-16.10-server-cloudimg-amd64.raw
# vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
Connected to /dev/ttyp6 (speed 9600)
Changing serial settings was 0/0 now 3/0
@reyk
reyk / openbsd-amd64-20170209-m4.16xlarge
Last active February 23, 2017 21:13
OpenBSD running in Amazon EC2 m4.16xlarge
[ using 1203352 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 6.0-current (GENERIC.MP) #166: Wed Feb 8 19:15:03 MST 2017
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 274861129728 (262128MB)
avail mem = 266526322688 (254179MB)
mpath0 at root
OpenBSD 6.0-beta (GENERIC.MP-vmm) #5: Fri Jun 3 16:44:43 CEST 2016
reyk@bsd.plumbing:/usr/src/sys/arch/amd64/compile/GENERIC.MP-vmm
real mem = 17024200704 (16235MB)
avail mem = 16503730176 (15739MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xd7bfb000 (65 entries)
bios0: vendor LENOVO version "N1FET38W (1.12 )" date 03/30/2016
bios0: LENOVO 20FBCTO1WW