Skip to content

Instantly share code, notes, and snippets.

View dysinger's full-sized avatar
🏠
Working from home

Dysinger dysinger

🏠
Working from home
  • Independent
  • Oregon | Hawaii | Alaska
View GitHub Profile
@dysinger
dysinger / Dockerfile
Last active March 28, 2019 08:00
Multiarch Docker Bootstrap Build for https://esy.sh
# -*- 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 November 21, 2018 01:56
Buliding FreeDV from scratch on Debian/Ubuntu
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 22:20
Keybase Marketing ^H^H^H^H^H^H^H^H^H^H^H "Verification"

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 February 7, 2017 02:54
My OCaml/OPAM notes

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 January 31, 2017 22:46
Ubuntu L2TP Gnome Network Manager Plugin (Cisco VPNs)
#!/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 August 18, 2016 02:26 — forked from ljsc/AffineTime.hs
Messing around with the haskell thyme package.
#!/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
@dysinger
dysinger / README.lhs
Last active February 9, 2022 18:07
Single-file executable literate Haskell with Stack
#!/usr/bin/env stack
> -- stack --resolver lts-6 --install-ghc runghc --package classy-prelude --package lens --package wreq
Blah Blah words about this single file executable README goes here.
> {-# LANGUAGE DeriveAnyClass #-}
> {-# LANGUAGE DeriveGeneric #-}
> {-# LANGUAGE NoImplicitPrelude #-}
> {-# LANGUAGE OverloadedStrings #-}
@dysinger
dysinger / make-stack-ghcjs-dist.hs
Last active August 10, 2016 16:25
I found this script & modified it a little over the last 6 months. It builds a distribution tarball of ghcjs for stack.
#!/usr/bin/env stack
-- stack --resolver lts-6 --install-ghc runghc --package criterion --package turtle --package wreq
{-# LANGUAGE OverloadedStrings #-}
import qualified Control.Foldl as Fold
import Control.Lens ((^.))
import Control.Monad (when)
import Data.ByteString.Lazy (hPut)
import Data.Maybe (fromMaybe)
@dysinger
dysinger / callwords.csv
Created June 3, 2016 15:33
"Callwords"
AVAILABLE AB4CI
AVAILABLE AB4CK
AVAILABLE AB4SE
AVAILABLE AB4SH
AVAILABLE AC1DS
AVAILABLE AC1NG
AVAILABLE AD0LF
AVAILABLE AD1EU
AVAILABLE AD3LA
AVAILABLE AD3LE
@dysinger
dysinger / packages.el
Last active January 16, 2021 19:30
Private spacemacs layer to try out Chris Done's Intero mode for haskell
;; 1. place this in ~/.emacs.d/private/intero/packages.el
;; 2. add intero, syntax-checking and auto-completion to your
;; ~/.spacemacs layer configuration & remove the haskell layer
;; if you were using that before
;; 3. make sure you have stack installed http://haskellstack.org
;; 4. fire up emacs & open up a stack project's source files