Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tim Dysinger dysinger

🏠
Working from home
View GitHub Profile
@dysinger
dysinger / configuration.nix
Last active Sep 7, 2021
Basic Full-Disk Encrypted ZFS Thinkpad (w/ 512 sector SSD) booted from USB key
View configuration.nix
# Basic Full-Disk Encrypted ZFS Thinkpad (w/ 512 sector SSD) booted from USB key
# EFI/BOOT:
# export BOOT=/dev/disk/by-id/usb-SanDisk_Ultra_Fit_4C530001011030101042-0\:0
# parted --script $BOOT -- \
# mklabel gpt \
# mkpart esp fat32 1MiB 512MiB \
# mkpart primary 512MiB 100% \
# set 1 boot on
# mkfs.vfat -n BOOT $BOOT-part1
View rust.nix
{ cargo
, makeRustPlatform
, rustChannelOf
, rustc
, sources
, targetPlatform
}:
rec {
rustNightly =
@dysinger
dysinger / config.org
Created Dec 23, 2019
My important dotfiles as an org-mode document
View config.org

Configuration

Setup

git clone \
    https://github.com/chriskempson/base16-shell.git \
@dysinger
dysinger / init.org
Last active Aug 9, 2019
Emacs Org-Mode Init File
View init.org

Emacs Configuration

My User Variables

(setq user-full-name "Tim Dysinger"
      user-login-name "tim"
      user-mail-address "tim@dysinger.net")
@dysinger
dysinger / shell.nix
Created Jul 12, 2019
Haskell/Stack/Intero/Nix Env
View shell.nix
{ ghcVersion ? "ghc865", pkgs ? import ./nix { inherit ghcVersion; } }:
with pkgs;
haskellPackages.shellFor {
packages = ps: with ps; [
# ADD THIS LOCAL PROJECT'S ENVIRONMENT TO OUR SHELL
interact
];
@dysinger
dysinger / nixos-encrypted-zfs.sh
Last active Jan 16, 2021
How I installed Encrypted ZFS root on NixOS
View nixos-encrypted-zfs.sh
# MOVED HERE https://gist.github.com/dysinger/2a768db5b6e3b729ec898d7d4208add3
View configuration-nixos-avahi-zerotier.nix
let
privateZeroTierInterfaces = [ "ztbso1b6n3" ]; # ZT NET INTERFACE
in {
system.stateVersion = "19.03";
services.openssh.enable = true;
services.openssh.openFirewall = false; # SSH ONLY ON VPN
services.openssh.passwordAuthentication = false;
networking.firewall.enable = true;
@dysinger
dysinger / Dockerfile
Last active Mar 28, 2019
Multiarch Docker Bootstrap Build for https://esy.sh
View Dockerfile
# -*- mode: dockerfile; -*-
###############################################################################
# TO RUN: 1ST REGISTER THE MULTIARCH/QEMU-USER-STATIC IMAGE
# docker run --rm --privileged multiarch/qemu-user-static:register \
# --reset --credential yes
###############################################################################
# THEN: PASS AN ARGUMENT TO 'docker build' TO DETERMINE THE TARGET ARCHITECTURE
# docker build --build-arg IMAGE=multiarch/debian-debootstrap:armhf-stretch
# docker build --build-arg IMAGE=multiarch/debian-debootstrap:arm64-stretch
###############################################################################
@dysinger
dysinger / build-freedv-dev.sh
Created Nov 21, 2018
Buliding FreeDV from scratch on Debian/Ubuntu
View build-freedv-dev.sh
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
apt-get install -y subversion build-essential pkg-config cmake hamlib-dev libsamplerate0-dev libsndfile1-dev libspeexdsp-dev libwxgtk3.0-dev portaudio19-dev
cd /usr/local/src
svn co https://svn.code.sf.net/p/freetel/code/freedv-dev/
mkdir /usr/local/src/freedv-dev/build
cd /usr/local/src/freedv-dev/build
cmake ..
make
@dysinger
dysinger / keybase.md
Created May 31, 2017
Keybase Marketing ^H^H^H^H^H^H^H^H^H^H^H "Verification"
View keybase.md

Keybase proof

I hereby claim: * I am dysinger on github. * I am dysinger (https://keybase.io/dysinger) on keybase. * I have a public key ASDMMch6YxkkEjt19XNX