Skip to content

Instantly share code, notes, and snippets.

View bendlas's full-sized avatar

Herwig Hochleitner bendlas

View GitHub Profile
[21000,01,23:33:25.793]
ES VERSION: 4.1.0 (/, )
[21000,01,23:33:25.798] OS: Linux (Unix 4.15.15.0)
[21000,01,23:33:25.798] RUNTIME: 4.6.2 (Stable 4.6.2.16/ac9e222 Wed Mar 28 01:55:41 UTC 2018) (64-bit)
[21000,01,23:33:25.798] GC: 2 GENERATIONS
[21000,01,23:33:25.798] LOGS: /var/log/eventstore
[21000,01,23:33:25.804] MODIFIED OPTIONS:
DB: /tmp/evdata (Command Line)
RUN PROJECTIONS: all (Command Line)
these derivations will be built:
/nix/store/99zfwl007nwiqyh5l9g5j8l78jx30fdd-antimony-0.9.3.drv
building '/nix/store/99zfwl007nwiqyh5l9g5j8l78jx30fdd-antimony-0.9.3.drv'...
unpacking sources
unpacking source archive /nix/store/6n4zp4605w4byy38w980xjmm1yg8rr7n-source
source root is source
patching sources
applying patch /nix/store/07ar6yc0ccpyx9sb18ap7wz7k2zszc8l-paths-fix.patch
patching file app/CMakeLists.txt
configuring
@bendlas
bendlas / nix-container-run.sh
Last active August 21, 2022 06:40
example for unshare from the shell / running nix commands in a /nix directory not at root
#!/usr/bin/env nix-shell
#! nix-shell -i sh -p nix
set -e
ROOT="$1"; shift
USER_MOUNTS=$(nix-build --no-out-link shell.nix -A user-mounts)
ZSH=$(nix-build --no-out-link "<nixpkgs>" -A zsh)
CU=$(nix-build --no-out-link "<nixpkgs>" -A coreutils)
@bendlas
bendlas / vbox-tests.log
Created March 10, 2019 21:36
Log of nixos virtualbox tests failing, see https://github.com/NixOS/nixpkgs/pull/53120
This file has been truncated, but you can view the full file.
warning: SQLite database '/nix/var/nix/db/db.sqlite' is busy
these derivations will be built:
/nix/store/yq8695iqsg1qvhfacz4fr9ccqiv321n4-VirtualBox-6.0.4.tar.bz2.drv
/nix/store/0jff3xk8ild868l7734gfrjg20v6f775-virtualbox-6.0.4.drv
/nix/store/05c1jr8s60kanax571nvbppgsfkzvi6m-unit-vboxnet0.service.drv
/nix/store/59djy2znjiyfzbg79qybwil5zirg8qgj-VBoxGuestAdditions_6.0.4.iso.drv
/nix/store/s1kmai82m559wmrc6nycqmkrbngbmdkm-VirtualBox-GuestAdditions-6.0.4-4.14.103.drv
/nix/store/bm8vg1nfr12cs2jnb4y08r7b1sa9k4zd-extra-utils.drv
/nix/store/aphlp2l970yxhrz7iw5h3lqgkv1lcrqw-VirtualBox-GuestAdditions-6.0.4-4.9.160.drv
/nix/store/gcizrhw175iqqzl2galxjy5g0ymf5gsl-kernel-modules.drv
these derivations will be built:
/nix/store/gk0rxqmbz4drr46q7xa3vaibf1c54cym-flashplayer-ppapi-32.0.0.156.drv
/nix/store/wq6rab8hqjimilq33bb7lfpq93l3sfr8-chromium-unwrapped-72.0.3626.122.drv
/nix/store/2ydg24mqv2sfh0q545n2piqymfsgijlk-chromium-ungoogled-72.0.3626.122.drv
building '/nix/store/wq6rab8hqjimilq33bb7lfpq93l3sfr8-chromium-unwrapped-72.0.3626.122.drv'...
building '/nix/store/gk0rxqmbz4drr46q7xa3vaibf1c54cym-flashplayer-ppapi-32.0.0.156.drv'...
unpacking sources
unpacking source archive /nix/store/0nab385vrawmqlcraq85w9bb58p3wbwp-source
source root is source
patching sources
@bendlas
bendlas / steam-run.module.nix
Last active August 24, 2023 21:56
Patched steam-run with https://github.com/containers/bubblewrap/pull/402 to enable SIGINT and SIGTERM
{
# patch steam-run to pass through SIGINT through bwrap
# https://github.com/containers/bubblewrap/pull/402
nixpkgs.config.packageOverrides = pkgs: {
steam-run = (pkgs.steamPackages.override {
buildFHSEnv = pkgs.buildFHSEnv.override {
bubblewrap = pkgs.bubblewrap.overrideDerivation (drv: {
patches = (drv.patches or []) ++ [(pkgs.fetchpatch {
url = "https://github.com/containers/bubblewrap/pull/402.patch";
sha256 = "sha256-0gHpmaHxxKXIzeUaRcFjkl0Du9Hy6xsfS++quc7D+iI=";
@bendlas
bendlas / datomic-console.module.nix
Created November 10, 2023 18:31
nixos postgresql monstrosities
{
services.postgresql = {
enable = true;
ensureDatabases = [ "datomic" ];
ensureUsers = [{
name = "datomic";
ensurePermissions = {
"DATABASE \"datomic\"" = "ALL PRIVILEGES";
};
} {
@bendlas
bendlas / bcachefs fs usage
Last active December 15, 2023 16:28
bcachefs hung rebalance
Filesystem: fea1b70c-5324-4471-94a1-cc43914003e4
Size: 7046143410176
Used: 4601222471680
Online reserved: 180224
Data type Required/total Durability Devices
reserved: 1/1 [] 211623936
btree: 1/2 2 [sda nvme1n1p3] 6291456
btree: 1/1 1 [sdb] 47710208
btree: 1/2 2 [sdb nvme1n1p3] 6291456