Skip to content

Instantly share code, notes, and snippets.

View pr1ntf's full-sized avatar

Trent pr1ntf

View GitHub Profile
@pr1ntf
pr1ntf / drugwars.txt
Last active August 29, 2015 13:56 — forked from mattmanning/drugwars.txt
Clean up for TI-84 Plus debugging.
Lbl G
ClrHome
Disp " J.M.'S DRUGWAR"," SIMULATION",""," VERSION 2.00",""," JUST SAY NO."
2000→Z
5000→Y
0→V
100→K
1→B
2→N
0→I
@pr1ntf
pr1ntf / keybase.md
Created February 27, 2015 21:05
keybase.md

Keybase proof

I hereby claim:

  • I am pr1ntf on github.
  • I am pr1ntf (https://keybase.io/pr1ntf) on keybase.
  • I have a public key whose fingerprint is 4725 B1C1 84B7 CE55 AC51 015D 29C7 4046 A7D7 D4F8

To claim this, I am signing this object:

@pr1ntf
pr1ntf / wdq
Created April 4, 2015 00:07
wdq -- WhereDafuQ is this port I want to install in FreeBSD!?
#!/bin/sh
find /usr/ports -name "$1"
@pr1ntf
pr1ntf / idis
Last active August 29, 2015 14:18
idis -- InstallDis port in FreeBSD plz. [Pass full directory]
#!/bin/sh
cd $1 && make install clean && cd ~
@pr1ntf
pr1ntf / iocage-bhyve.TODO
Last active August 29, 2015 14:19
Personal TODO for iocage and bhyve
+iocage bhyve-install $ISO
--Installs (fetches) ISO to ZFS dataset.
--Installs $iocroot/ISOs dataset if not there
--Checks for VMM/Virtio (config -x | grep)
+iocage bhyve-create $vmname
--Disk image (onto zfs dataset)
--Net (zomgvnet)
--Pass ISO to boot from
--VMM/Virtio check
@pr1ntf
pr1ntf / byhve.sh
Created April 20, 2015 22:55
bhyve example script.
#!/bin/sh
#
# Copyright (c) 2013 NetApp, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@pr1ntf
pr1ntf / bhyvestuff.sh
Last active August 29, 2015 14:19
bhyve notepad
# requires tap interface networking !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# https://www.freebsd.org/doc/en/books/handbook/virtualization-host-bhyve.html !!
# requires virtio and vmm kernel mods !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# null modem requires nmdm kernel mod !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
# if your console session prints 'OK' kill off any /dev/nmdmN(A|B) sessions. !!!!
# create new disk
truncate -s 16G butts.img
# nullmodem loader
@pr1ntf
pr1ntf / fromscratch.sh
Last active August 29, 2015 14:19
FreeBSD first run notepad
# update, fetch ports, install nano
# freebsd-update
freebsd-update fetch && freebsd-update install
# portsnap
portsnap fetch && portsnap extract
# install nano and config, then run nano to check config
cd /usr/ports/editors/nano && make install clean BATCH=YES && cd ~ && echo 'set CONST' > ~/.nanorc
@pr1ntf
pr1ntf / ioc-errorgist4-30.txt
Created April 30, 2015 22:19
.default error on iocage fetch
root@butts:~/iocage # ./iocage fetch
INFO: Creating iocage/iocage/.defaults.
cannot create 'iocage/iocage/.defaults': parent does not exist
Supported releases are:
10.1-RELEASE
9.3-RELEASE
Please select a release [10.1-RELEASE]:
base.txz 100% of 63 MB 4230 kBps 00m15s
doc.txz 100% of 1395 kB 1355 kBps 00m01s
lib32.txz 100% of 15 MB 3141 kBps 00m05s
,,,,;-;,,
,,;#################,
,########################,
,###########################>
,###############################,
,##################################>
,####################################>
,######################"^`,````$#######,
,####################%,;#####%##;"$#####>
$#################"`,##$%%%$$ `%#,$#####> ,;#####,,,