Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jocke-l
jocke-l / HaskellTest.hs
Last active September 19, 2018 11:48
Java vs Python vs Haskell
module Main where
import System.IO
type Logger = String -> IO ()
fileLogger :: Handle -> Logger
fileLogger file string = do
hPutStrLn file string
hFlush file
@jocke-l
jocke-l / secure_jump.sh
Last active February 12, 2020 21:55
SSH to a machine protected by SSH jumpbox without the need to forward your SSH-agent.
#!/bin/sh
set -eo pipefail
usage () {
echo "Usage:"
echo -e "\t${0} <jumpbox> <target>"
echo -e "\tJUMP_BOX=<jumpbox> ${0} <target>"
}