Skip to content

Instantly share code, notes, and snippets.

View jakobrs's full-sized avatar

Jakob Rødal Skaar jakobrs

View GitHub Profile
From 85ba6429ea2718349d4516037a739b1b30303ffb Mon Sep 17 00:00:00 2001
From: jakobrs <[email protected]>
Date: Sat, 8 Feb 2020 09:31:20 +0100
Subject: [PATCH 1/4] vvvvvv: factor vvvvvv-bin out of vvvvvv
---
pkgs/games/vvvvvv/default.nix | 94 ++++++++++++++++++++++-----------
pkgs/top-level/all-packages.nix | 4 +-
2 files changed, 66 insertions(+), 32 deletions(-)
#!/usr/bin/env nix-shell
#! nix-shell -p jq -i bash
# Usage:
# ./script.sh <server name> <delay>
echo "Monitoring $1 with $2 seconds delay between checks"
while true; do
date | tr '\n' ' '
#!/usr/bin/env nix-shell
#! nix-shell -p -i bash
# Usage
if [ $# -ne 1 ] || [ "$1" = "--help" ]; then
echo "Usage: $0 <path/to/appimage>" >&2
exit 1
fi
appimage=$(realpath $1)
The section for `test`, `build`, `dry-build`, and `dry-activate` has been
split into two separate cases, one for `build` and one for the rest. The
handling for `build` is identical to how it was before, but the others use
--no-out-link to not create a result symlink in the current directory.
diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh
index 354274478a3..e336d31a2fe 100644
--- a/nixos/modules/installer/tools/nixos-rebuild.sh
+++ b/nixos/modules/installer/tools/nixos-rebuild.sh
@jakobrs
jakobrs / notes.md
Last active April 18, 2020 10:10
Some notes on bootstrapping Nix

Some notes:

  • Make sure to install libssl-dev
  • Boost from apt might be too old
  • libeditline might be too old
  • When building bdwgc, remember --enable-cplusplus
  • libboost-all-dev
  • Add -lz to src/libutil/local.mk
  • When running configure, remember --prefix=$PWD/inst
  • If building the manual fails, try to remove 'src/manual/local.mk' from Makefile
with import <nixpkgs> {};
let
original = with import <nixpkgs/nixos> { configuration = import ./file.nix; }; config.system.build.isoImage;
rot13 = callPackage ./rot13.nix {};
first-layer = rot13 {
name = "first-layer";
from = original;
};
[Desktop Entry]
Categories=Game;
Comment[en_GB]=Run games in a "compatibility" chroot
Comment=Run games in a "compatibility" chroot
Exec=/home/jakob/.nix-profile/bin/steam-run %U
GenericName[en_GB]=
GenericName=
Icon=steam
MimeType=application/x-shellscript;application/x-executable;
Name[en_GB]=steam-run
@jakobrs
jakobrs / gist:3dfad236d608d7443b1c26bd67ee17fa
Created January 28, 2021 19:31
Names of Norwegians that coincide with the names of Greek, Roman and Christian deities
Source: Statistics Norway (Statistisk Sentralbyrå), https://www.ssb.no/navn
Format:
O N (G) x/y (z)
Where
O is the origin (G: Greek, R: Roman, C: Christian)
N is the name
G is the gender of the people using the name
x is the number of people with the name as their only first name
y is the number of people with the name as their first first name
@jakobrs
jakobrs / c
Last active February 16, 2021 08:53
Number of times a coordinating conjunction is used at the beginning of a sentence in 1984 (from <http://gutenberg.net.au/ebooks01/0100021.txt>)
for 77
and 116
nor 8
but 199
or 11
yet 6
so 15
wf-recorder -o HEADLESS-1 -f pipe:99 -m rawvideo 99>&1 >&2 | mpv -vo drm --drm-connector=1.auto -