Skip to content

Instantly share code, notes, and snippets.

View lgreenlee's full-sized avatar

Logan Greenlee lgreenlee

View GitHub Profile
@lgreenlee
lgreenlee / tinydns.service
Last active January 25, 2022 01:19
TinyDNS/DJBDNS systemd service configuration for Ubuntu
[Unit]
Description=A DNS server daemon
Documentation=man:tinydns(8)
Requires=network.target
After=network.target
[Service]
Restart=always
PIDFile=/var/run/tinydns.pid
ExecStart=/etc/tinydns/run
@lgreenlee
lgreenlee / dnscache.service
Last active February 18, 2016 17:47
DNSCache systemd configuration for Ubuntu
[Unit]
Description=A DNS cache daemon
Documentation=man:dnscache(8)
Requires=network.target
After=network.target
[Service]
Restart=always
PIDFile=/var/run/dnscache.pid
ExecStart=/etc/dnscache/run
@lgreenlee
lgreenlee / test.md
Created February 27, 2016 00:33
Xen 4.5,

ssadfasdf

@lgreenlee
lgreenlee / NUC6i5SYK.md
Created February 28, 2016 03:29
The Odessy of Xen, Ubuntu and the Intel NUC6i5SYK in the month of February 2016

The Odessy of Xen, Ubuntu and the Intel NUC6i5SYK in the month of February 2016

Created: 26.02.2016

Preamble

Let us never forget that most modern hardware is basically a cheap or sometimes expensive coaster without software.

Virtualization and the NUC

For development the new NUC6i5SYK is seemingly great. 32GB of RAM, 2 cores and 2 "hyper threads". This NUC also features an NVMe port running at x4 over PCIe 3.0. At 10 VM's the NUC should be able to support about 150 MB/s (theoretically) of disk traffic per VM, this is usually the thing that will prevent a VM server from performing well. For a Micro Services type architecture this is an ideal environment for development.

@lgreenlee
lgreenlee / raid6.txt
Created March 1, 2016 15:19
RAID 6 output for NUC6i5SYK
[ 384.773934] JFS: nTxBlock = 7740, nTxLock = 61922
[ 384.862009] raid6: sse2x1 gen() 9589 MB/s
[ 384.882009] raid6: sse2x1 xor() 7201 MB/s
[ 384.902010] raid6: sse2x2 gen() 11863 MB/s
[ 384.922006] raid6: sse2x2 xor() 8201 MB/s
[ 384.942008] raid6: sse2x4 gen() 12433 MB/s
[ 384.962008] raid6: sse2x4 xor() 9242 MB/s
[ 384.982007] raid6: avx2x1 gen() 18500 MB/s
[ 385.002008] raid6: avx2x2 gen() 21691 MB/s
[ 385.022006] raid6: avx2x4 gen() 23949 MB/s
@lgreenlee
lgreenlee / gist:0ba7ded41dff08f528d127f867fa9b33
Created September 8, 2016 17:48
.NET Compatible Cert Conversion
openssl pkcs12 -export -out [file].pfx -inkey [pvt key].key -in [crt].crt -certfile [ca].crt
<html>
<a href="http://www.bankofamerica.com/">http:/./hingham.gov</a>
</html>