Skip to content

Instantly share code, notes, and snippets.

View iblech's full-sized avatar

Ingo Blechschmidt iblech

View GitHub Profile
@iblech
iblech / safe-suspend.nix
Created November 16, 2025 00:17
Port of Debian's cryptsetup-suspend to NixOS
{ pkgs, ... }:
let
# inspired from Debian's cryptsetup-suspend-wrapper
safe-suspend = pkgs.writeShellApplication {
name = "safe-suspend";
runtimeInputs = with pkgs; [ util-linux lvm2 gawk ];
text = ''
module Main where
import Data.List
import Control.Monad
input = [5,6,6,2]
target = 17
main :: IO ()
main = mapM_ (print . snd) $ filter ((== target) . fst) $ concatMap arb $ permutations input
Wir hoffen, euch hat der Git-Workshop gefallen! Nun müsst ihr kein Dateinamenschaos mehr ertragen. ❤
Bei allen Fragen: Mail an tim@timbaumann.info oder iblech@web.de!
Git-Cheatsheets
http://www.git-tower.com/blog/git-cheat-sheet-de
https://www.atlassian.com/dms/wac/images/landing/git/atlassian_git_cheatsheet.pdf
https://training.github.com/kit/downloads/github-git-cheat-sheet.pdf
http://chneukirchen.org/talks/gittingstarted2/chneukirchen-2011-gittingstarted.pdf (ist ein Foliensatz)
Git funktioniert am besten mit textbasierten Formaten