Skip to content

Instantly share code, notes, and snippets.

Avatar
🐡

Reyk Floeter reyk

🐡
View GitHub Profile
@reyk
reyk / j
Last active Nov 23, 2018
If you're waiting for your compiler to finish... works perfectly with Rust and "j cargo build"
View j
#!/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 Aug 16, 2017
Self-installing VM: OpenBSD 6.1 with modified auto-installer + syspatch + cloud-agent on Microsoft Azure
View dmesg-openbsd-6.1-autoinstall-test3
>> 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 Jul 7, 2017
Self-installing VM: OpenBSD 6.1 with modified auto-installer + syspatch + cloud-agent
View dmesg-openbsd-6.1-autoinstall-test2
2017-07-07T17:35:14+0000
/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+1430528/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+3876792/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+0+598016 [72+4
@reyk
reyk / dmesg-openbsd-6.1-autoinstall-test1
Created Jul 6, 2017
Self-installing VM: OpenBSD 6.1 with modified auto-installer (doesn't work yet, ec2-user is not accepted as user name)
View dmesg-openbsd-6.1-autoinstall-test1
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 Jul 6, 2017
OpenBSD 6.1-stable with syspatch on first boot using https://github.com/reyk/cloud-openbsd
View dmesg-openbsd-6.1-syspatch.txt
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 Jul 6, 2017
OpenBSD 6.1-current VM on AWS starting with kernel randomization on first boot (KARL) using https://github.com/reyk/cloud-openbsd
View dmesg-openbsd-6.1-current-karl.txt
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 Jul 8, 2021
OpenBSD vmm and meta-data running ubuntu-16.10-server-cloudimg-amd64.raw
View vmctl start ubuntu -d ubuntu-16.10-server-cloudimg-amd64.raw -n nat -c
- 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 Feb 23, 2017
OpenBSD running in Amazon EC2 m4.16xlarge
View openbsd-amd64-20170209-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
View openbsd-thinkpad-x1-carbon-2016
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
View openbsd-hyperv.dmesg
OpenBSD 5.9 (GENERIC.MP) #163: Wed Feb 17 22:48:13 CET 2016
mike@esdenera.com:/usr/obj/sys/arch/amd64/compile/GENERIC.MP
real mem = 520028160 (495MB)
avail mem = 500105216 (476MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.3 @ 0xf8ec0 (216 entries)
bios0: vendor American Megatrends Inc. version "090006" date 05/23/2012
bios0: Microsoft Corporation Virtual Machine