Skip to content

Instantly share code, notes, and snippets.

Linus Heckemann lheckemann

Block or report user

Report or block lheckemann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2271d8d9292cfe57084a0df713900c86
U-Boot TPL board init
Trying to boot from BOOTROM
Returning to boot ROM...
U-Boot SPL board init
Trying to boot from MMC1
mmc_load_image_raw_sector: mmc block read error
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
View gist:277bec4ca3018cc2093d5d76e19ee756
In file included from /virtual/main.c:3:
In file included from include/linux/fs.h:5:
In file included from include/linux/wait.h:6:
In file included from include/linux/list.h:8:
In file included from include/linux/kernel.h:13:
In file included from include/linux/printk.h:8:
In file included from include/linux/cache.h:5:
In file included from ./arch/arm64/include/asm/cache.h:19:
In file included from ./arch/arm64/include/asm/cachetype.h:19:
In file included from ./arch/arm64/include/asm/cputype.h:99:
View kanboard.nix
{
services.nginx.virtualHosts."kanboard.sphalerite.org" = {
forceSSL = true;
root = pkgs.buildEnv {
name = "kanboard-configured";
paths = [
(pkgs.runCommand "kanboard-over" {meta.priority = 0;} ''
mkdir -p $out
for f in index.php jsonrpc.php ; do
echo "<?php require('$out/config.php');" > $out/$f
View gist:9478e5d48256413ae5887c62f7fb60d6
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 4.19.34 (nixbld@localhost) (gcc version 7.4.0 (GCC)) #1-NixOS SMP PREEMPT Fri Apr 5 20:33:17 UTC 2019
[ 0.000000] Machine model: FriendlyElec NanoPi M4
[ 0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[ 0.000000] bootconsole [uart8250] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Failed to reserve 32 MiB
[ 0.000000] Kernel panic - not syncing: ERROR: Failed to allocate 0x0000000000001000 bytes below 0x0000000000000000.
[ 0.000000]
View gist:7c0b6eb1d5c8387ba0a1f5da600ea66f
[root@thirtythree:~]# zfs inherit mountpoint thirtythree/nixos/root
umount: /: target is busy.
cannot unmount '/': umount failed
[root@thirtythree:~]# zfs list thirtythree/nixos/root
NAME USED AVAIL REFER MOUNTPOINT
thirtythree/nixos/root 3.14G 1.99T 3.14G /
View initrd.nix
{ pkgs ? import <nixpkgs> {} }: with pkgs;
let linuxPackages = callPackage /etc/nixos/thirtythree/kernel.nix {}; in
rec {
linux = linuxPackages.kernel;
initrd = (makeInitrd {
contents = [
{ object = init; symlink = "/sbin/init"; }
{ object = init; symlink = "/init"; }
{ object = "${modulesClosure}/lib"; symlink = "/lib"; }
];
View kernelPackages.nix
# 6min kernel, 7m30 zfs, on community box
{ pkgs ? import <nixpkgs> {}}: with pkgs;
linuxPackagesFor ((buildLinux rec {
src = fetchFromGitHub {
owner = "friendlyarm";
repo = "kernel-rockchip";
rev = "decbad503ca983f939baca6c19a79117b11f5bd6";
sha256 = "1mwykah9yr68gscrc8lqi3jay4553yq9cs86m5b21wizm5ikhpfn";
};
version = "4.4.154";
View gist:526f3ef8933171f218683a8b3c96c347
pool: thirtythree
state: ONLINE
scan: scrub repaired 0B in 0h1m with 0 errors on Fri Mar 15 19:43:58 2019
config:
NAME STATE READ WRITE CKSUM
thirtythree ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
sdc ONLINE 0 0 0
sdd ONLINE 0 0 0
@lheckemann
lheckemann / 0-install
Last active Jan 13, 2019
nice cursors for urxvt
View 0-install
nix-build -E 'with import <nixpkgs> {}; rxvt_unicode.overrideAttrs (o: {patches = [(builtins.fetchurl https://gist.githubusercontent.com/lheckemann/a613f7eaf19b5fdd8b490ff7019de134/raw/bae5dccf7c5fdf20bec44ad337f0f20ebcd91495/urxvt-nice-cursors.patch)] ++ o.patches or []; buildInputs = [xorg.libXcursor] ++ o.buildInputs or []; nativeBuildInputs = [autoreconfHook] ++ o.nativeBuildInputs or [];})'
View gist:b67d699f3c0442ec6b1e3dfb042eac8b
#!/usr/bin/env nix-shell
#! nix-shell -i bash -E "with import <nixpkgs> {}; mkShell {buildInputs = [pkgconfig]; shellHook = ''echo hello'';}"
echo world
You can’t perform that action at this time.