Skip to content

Instantly share code, notes, and snippets.

@zacstewart
zacstewart / install-arch.md
Created February 5, 2024 06:01 — forked from mjnaderi/install-arch.md
Installing Arch Linux with Full Disk Encryption (LVM on LUKS)

Installing Arch Linux with Full Disk Encryption

If you're aiming for a seamless Arch Linux installation in UEFI mode, follow along as this guide will walk you through the process step by step. We'll be using LUKS (Linux Unified Key Setup) and LVM (Logical Volume Manager) partitions on LUKS to achieve full disk encryption.

Note: I have updated this doc for UEFI mode. For those with BIOS/MBR systems, you can refer to the previous version, but keep in mind that it might be outdated and no longer accurate.

If you're only interested in installing Linux and not setting up dual boot with Windows, feel free to skip the Windows-related sections.

@zacstewart
zacstewart / README.md
Last active October 21, 2019 07:30
Pair with all your friends on GitHub :DDDDD

pair

Requires ngrok and gh-auth:

brew install ngrok

gem install github-auth

@zacstewart
zacstewart / keybase.md
Created August 8, 2016 14:25
Keybase Proof

Keybase proof

I hereby claim:

  • I am zacstewart on github.
  • I am zacstewart (https://keybase.io/zacstewart) on keybase.
  • I have a public key ASDyhMC1RbxHHDDE-PJJ695Beo2RavwsBOrBgitPYcRLowo

To claim this, I am signing this object:

Running `target/debug/8bit-adventure`
ext_dt 0.00001922
dt 0.05
ext_dt 0.001740106
dt 0.05
ext_dt 0.001933184
dt 0.05
ext_dt 0.002147926
dt 0.05
ext_dt 0.002410486
Verifying that +zacstewart is my blockchain ID. https://onename.com/zacstewart
@zacstewart
zacstewart / keybase.md
Created August 23, 2015 16:39
Keybase proof

Keybase proof

I hereby claim:

  • I am zacstewart on github.
  • I am zacstewart (https://keybase.io/zacstewart) on keybase.
  • I have a public key whose fingerprint is D831 13A7 6C15 9404 1A93 3690 3CDB F390 49AE 85B6

To claim this, I am signing this object:

@zacstewart
zacstewart / object_allocation_tracer.rb
Created July 15, 2015 15:28
Shitty Ruby Rack memory profiler
require 'objspace'
require 'set'
class ObjectAllocationTracer
include ObjectSpace
def initialize(app)
@app = app
@sources = Set.new
@traces = []
@zacstewart
zacstewart / tap_transformer_sklearn.py
Last active November 22, 2015 12:33
Example transformer for tapping into your Pipeline
def TapTransformer(TransformerMixin):
def __init__(self, fn):
self.fn = fn
def transform(self, X, **transform_params):
self.fn(x)
return X
def fit(self, X, y=none, **fit_params):
return self
@zacstewart
zacstewart / gist:30f0d16399f49754038a
Last active August 29, 2015 14:07
How is Rubby formed?
~/src $ CC=/usr/bin/gcc ruby-install ruby 2.1.3
>>> Installing ruby 2.1.3 into /Users/zacstewart/.rubies/ruby-2.1.3 ...
>>> Installing dependencies for ruby 2.1.3 ...
Warning: openssl-1.0.1j already installed
Warning: readline-6.3.8 already installed
Warning: libyaml-0.1.6 already installed
Warning: gdbm-1.11 already installed
Warning: libffi-3.0.13 already installed
>>> Downloading http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2 into /Users/zacstewart/src ...
--2014-10-22 10:26:16-- http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.3.tar.bz2

Ruby ML Kit

  • CLI tools for randomly sampling large files
  • Simple gradient decent regression
  • Simple logistic regression