Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Tim Dysinger dysinger

🏠
Working from home
Block or report user

Report or block dysinger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Jul 5, 2019
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
@dysinger
dysinger / ubuntu-l2tp.sh
Created Jan 31, 2017
Ubuntu L2TP Gnome Network Manager Plugin (Cisco VPNs)
View ubuntu-l2tp.sh
#!/bin/bash -eux
cat >Dockerfile<<\EOF
FROM ubuntu:16.10
RUN apt-get update
RUN apt-get -y install build-essential git ruby-dev
RUN gem install fpm
ENV NETWORK_MANAGER_L2TP 1.2.4
@dysinger
dysinger / AffineTime.hs
Last active Aug 18, 2016 — forked from ljsc/AffineTime.hs
Messing around with the haskell thyme package.
View AffineTime.hs
#!/usr/bin/env stack
-- stack --resolver lts-6 --install-ghc runghc --package lens --package thyme --package vector-space
import Data.Thyme hiding (seconds)
import Data.Thyme.Format.Human
import Data.AffineSpace
import Data.VectorSpace
seconds, minutes, hours, days, weeks :: Rational -> NominalDiffTime
seconds n = fromSeconds n
You can’t perform that action at this time.