Skip to content

Instantly share code, notes, and snippets.

@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/wggwjl79ia10zv90h5mhq576jdvvlmjg-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
meson flags: --buildtype=plain --libdir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/lib --libexecdir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/libexec --bindir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/bin --sbindir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/sbin --includedir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/include --mandir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/share/man --infodir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/share/info --localedir=/nix/store/2abz83sd2468kmwwdj8wd5fy3wp20lkx-GameHub-0.16.1-2/share/locale
@MalteT
MalteT / flake.nix
Created August 16, 2021 16:26
Nixos module to add custom udev rules more easily
# [ ... ]
nixosModules.udevRule = { pkgs, lib, config, ... }:
let
createUdevPkg = { name, rules }:
pkgs.writeTextFile {
name = "custom-udev-rule-" + name;
text = rules;
destination = "/lib/udev/rules.d/" + name + ".rules";
};
cfg = config.services.udev.customRules;
  • ├──  nalgebra-glm
  • │ ├──  src
  • │ │ ├──  aliases.rs
  • │ │ ├──  common.rs
  • │ │ ├──  constructors.rs
  • │ │ ├──  exponential.rs
  • │ │ ├──  ext
  • │ │ │ ├──  matrix_clip_space.rs
  • │ │ │ ├──  matrix_projection.rs
  • │ │ │ ├──  matrix_relationnal.rs
#!/usr/bin/env python3
# Execute in a directory of your choice, like this:
# > hwp2021pizzazz.py downloaded_all_submissions_from_moodle.zip
# Dependencies
# - patool (system)
# - pyunpack (python)
CORRECT_PDF = "Korrektur.pdf"
#!/bin/sh
# Auto cd into sub-dirs as long as it's the only file in a directory
function deepcd {
cd $1
if [ $(ls -l | wc -l) -eq 2 ]; then
only_thing_here=$(ls)
if [ -d "$only_thing_here" ]; then
deepcd "$only_thing_here"
fi
#!/bin/bash
#
# Name: simple-eq.sh
# Author: Malte Tammena
# License: MIT 2020 Malte Tammena
#
# Dependencies:
# - 7z
# - unrar
# - tar
@MalteT
MalteT / same-hash.sh
Last active May 11, 2020 14:19
Find paths with some file hash in HWP
#!/bin/bash
IGNORE_HASHES=f6b0091b7e45d7d7a322157a88549b28
# Unzip all files
for user_dir in *; do
if [ -d "$user_dir" ]; then
# enter dir
cd "$user_dir"
# Extract