Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Tim Dysinger dysinger

🏠
Working from home
View GitHub Profile
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 Aug 7, 2020
How I installed Encrypted ZFS root on NixOS
View nixos-encrypted-zfs.sh
#!/bin/sh
# FIRST STOP THE zfs-zed SERVICE
systemctl stop zfs-zed
# FORCE UNLOAD ZFS KERNEL MODULES
lsmod | grep zfs | cut -d' ' -f1 | xargs rmmod -f
# NOW ADD THE FOLLOWING TO /etc/nixos/configuration.nix
#
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

@dysinger
dysinger / ocaml.org
Last active Feb 7, 2017
My OCaml/OPAM notes
View ocaml.org

OCaml

OCaml Setup

OPAM Bootstrap

One-Time Setup

sudo apt-get install -y build-essential 0install curl aspcud rsync git mercurial bzr
You can’t perform that action at this time.