Skip to content

Instantly share code, notes, and snippets.

View quinndiggity's full-sized avatar

Quinn Diggity quinndiggity

  • Vancouver, Canada
View GitHub Profile
@quinndiggity
quinndiggity / gist:6559eed22f43eb9a80ec1c70473b9da9
Created July 1, 2018 03:36 — forked from jcs/gist:5573685
Mac OS X FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

Update (2015-12-04): This document used to be very lengthy as there were many manual steps required to get OpenBSD and Mac OS X working together through Boot Camp Assistant (BCA), which created a hybrid MBR and enabled a legacy BIOS emulation mode which older versions of Windows (and OpenBSD) required. Newer Macbooks stopped supporting older versions of Windows through BCA and now only support Windows 10 since it uses GPT and UEFI. However, now that newer versions of OpenBSD support GPT and UEFI, Boot Camp Assistant is no longer needed at all to boot OpenBSD.

###Mac OS X FileVault encryption and OpenBSD encrypted softraid on a Macbook Air/Pro

OpenBSD works pretty well on at least the Mid-2011 Macbook Air (A1370, SandyBridge) and Mid-2013 Macbook Air (Haswell). The new KMS code in 5.4 brings up the MBA's eDP display in 1366x768 with backlight control. ACPI works as expected for battery/AC status, CPU throttling, and full suspend/resume support. The Broadcom wireless card does not work, so I am using

@quinndiggity
quinndiggity / install.sh
Created July 28, 2017 06:25 — forked from TooTallNate/install.sh
Install Node.js one-liner
curl https://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-x64.tar.gz | tar xzvf - --exclude CHANGELOG.md --exclude LICENSE --exclude README.md --strip-components 1 -C /usr/local/
@quinndiggity
quinndiggity / readme
Created July 15, 2017 22:45 — forked from antonlvovych/readme
NVM on fish shell using bass
# Install NVM manually (https://github.com/creationix/nvm)
# Install bass (https://github.com/edc/bass)
# Add code below to your config.fish
function nvm
bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
end
nvm use default --silent
@quinndiggity
quinndiggity / gist:76f8942e8f7774056b74e9de1abfbdbd
Created July 12, 2017 03:37 — forked from philipn/gist:5274197
Running Ubuntu on a Macbook Air

Running Ubuntu on a Macbook Air

You don't have to be a slave to OS X! Here's a guide to a sane dual-booting setup with Ubuntu 12.10 on your shiny MacBook Air. This is written and tested for a MacBook Air 5,2 (Mid 2012), but likely works the same with any modern Macbook.

Install according to instructions at this URL:

@quinndiggity
quinndiggity / ubuntu_14.04_macbook_pro_retina_15_inch_mid_2014.md
Created July 12, 2017 03:37 — forked from pinge/ubuntu_14.04_macbook_pro_retina_15_inch_mid_2014.md
How to install Ubuntu 14.04.1 LTS on a MacBook Pro Retina 15" Mid 2014 (11,3)
@quinndiggity
quinndiggity / FreeNAS.md
Created July 9, 2017 16:43 — forked from zenxedo/TrueNAS Setup.md
Utimate FreeNAS Setup

FreeNAS

This page is constantly being edited and worked on. Most of these should work but some might be broken.

Here are straight-forward instructions to setting up a bunch of different software on FreeNAS. If you make a terrible error, just throw up another plugin sandbox and repeat.

ToC

@quinndiggity
quinndiggity / function_invocation.js
Created June 19, 2017 00:35 — forked from myshov/function_invocation.js
11 Ways to Invoke a Function
console.log(1);
(_ => console.log(2))();
eval('console.log(3);');
console.log.call(null, 4);
console.log.apply(null, [5]);
new Function('console.log(6)')();
Reflect.apply(console.log, null, [7])
Reflect.construct(function(){console.log(8)}, []);
Function.prototype.apply.call(console.log, null, [9]);
Function.prototype.call.call(console.log, null, 10);
@quinndiggity
quinndiggity / 8x1080.md
Created June 3, 2017 01:09 — forked from epixoip/8x1080.md
8x Nvidia GTX 1080 Hashcat Benchmarks
@quinndiggity
quinndiggity / nginx.conf
Created May 7, 2017 02:19 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

A Beginner's Hip Hop Playlist

Edit: After some constructive feedback on hacker news, I think that it's worth mentioning that this playlist is very skewed towards recent material

I think that hip hop is one of the most, if not the most, misunderstood genres of music. In this playlist, rather than focusing on one artist or one type of hip hop, I tried to give examples of a bunch of different artists with songs ranging from the early 90's all the way up until 2017. The songs are in no particular order and the sounds cover a very broad spectrum. Some of them are pretty damn explicit, so I wouldn't necessarily throw this playlist on if there are kids around. I provided the lyrics to each song, the sub-genre that I'd put the artist in (very rough), and a brief description. This playlist is not by any means meant to be comprehensive and in many cases doesn't necessarily represent the artist's "best" song, but instead aims at exposing you to some of my favorite artists and hoping you might do some further exp