Skip to content

Instantly share code, notes, and snippets.

@ecthiender
ecthiender / screen_record_with_audio.sh
Last active November 9, 2020 07:36
Linux & ffmpeg: One-liner to record your screen along with audio
#!/bin/bash
set -e
resolution="$1"
if [[ -z "$resolution" ]]; then
resolution="1366x768"
echo "[WARN] No resolution passed. Defaulting to $resolution."
fi
outfile="$2"
@ecthiender
ecthiender / doom_emacs_for_haskell.md
Last active September 24, 2024 13:07
Step by step instructions to setup doom emacs for Haskell + Haskell Language Server (LSP)

Install doom emacs

git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
cd ~/.emacs.d
bin/doom install

Optional

@ecthiender
ecthiender / example_reader.hs
Created July 21, 2021 07:40
Example of how to use Reader monad
{-# LANGUAGE FlexibleContexts #-}
module Main where
import Control.Applicative (liftA2)
import Control.Monad.Reader (MonadIO, MonadReader, ReaderT, ask,
runReaderT)
{- | Let's say we have a deeply nested call stack. There are many functions
calling other functions.