Skip to content

Instantly share code, notes, and snippets.

View octoprint.nix
self: super: {
pypy3 = (super.pypy3.override {
packageOverrides = _: pySuper: {
psycopg2 = pySuper.psycopg2.overrideAttrs (_: { disabled = false; });
};
}).overrideAttrs (oldAttrs: {
meta.platforms = oldAttrs.meta.platforms ++ [ "aarch64-linux" ];
});
octoprint = super.octoprint.override { python3 = self.pypy3; };
View gist:c2ff0d63c8423093362c7805ae28b3b8
pool: tank
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-9P
scan: scrub in progress since Tue Oct 13 22:33:18 2020
1.99T scanned at 27.1G/s, 79.7G issued at 1.06G/s, 1.99T total
44K repaired, 3.92% done, 0 days 00:30:40 to go
View config.txt
[pi3]
kernel=u-boot-rpi3.bin
[pi4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
# Otherwise the resolution will be weird in most cases, compared to
# what the pi3 firmware does by default.
View config.txt
[pi3]
kernel=u-boot-rpi3.bin
[pi4]
kernel=u-boot-rpi4.bin
enable_gic=1
armstub=armstub8-gic.bin
# Otherwise the resolution will be weird in most cases, compared to
# what the pi3 firmware does by default.
View gist:0e8ca4499545e8b159ba075a4c12b2a2
[root@aurelius:/home/bemeurer]# cat /sys/kernel/debug/pinctrl/*.gpio-pinctrl-bcm2835/pins
registered pins: 54
pin 0 (gpio0) function alt2 in hi; irq 0 (none)
pin 1 (gpio1) function alt2 in hi; irq 0 (none)
pin 2 (gpio2) function alt2 in hi; irq 0 (none)
pin 3 (gpio3) function alt2 in hi; irq 0 (none)
pin 4 (gpio4) function alt2 in lo; irq 0 (none)
pin 5 (gpio5) function alt2 in lo; irq 0 (none)
pin 6 (gpio6) function alt2 in lo; irq 0 (none)
pin 7 (gpio7) function alt2 in lo; irq 0 (none)
View cpuinfo.c
int get_rpi_info(rpi_info *info)
{
FILE *fp;
char buffer[1024];
char hardware[1024];
char revision[1024];
int found = 0;
int len;
if ((fp = fopen("/proc/device-tree/system/linux,revision", "r"))) {
View gist:52bceed4e344ccf790822dd36356c1d8
error: build of '/nix/store/lc4j6ld34rfrimmgcna9rngc8ddzqm85-device-tree-overlays.drv' on 'ssh://bemeurer@147.75.47.54' failed: builder for '/nix/store/lc4j6ld34rfrimmgcna9rngc8ddzqm85-device-tree-overlays.drv' failed with exit code 1
builder for '/nix/store/lc4j6ld34rfrimmgcna9rngc8ddzqm85-device-tree-overlays.drv' failed with exit code 1; last 10 log lines:
'./marvell/armada-7040-db.dtb' -> '/nix/store/x99ip5g71rwn94mf8l8kr4hqil8bfp6m-device-tree-overlays/./marvell/armada-7040-db.dtb'
'./marvell/armada-8080-db.dtb' -> '/nix/store/x99ip5g71rwn94mf8l8kr4hqil8bfp6m-device-tree-overlays/./marvell/armada-8080-db.dtb'
'./marvell/armada-8040-db.dtb' -> '/nix/store/x99ip5g71rwn94mf8l8kr4hqil8bfp6m-device-tree-overlays/./marvell/armada-8040-db.dtb'
'./marvell/armada-8040-clearfog-gt-8k.dtb' -> '/nix/store/x99ip5g71rwn94mf8l8kr4hqil8bfp6m-device-tree-overlays/./marvell/armada-8040-clearfog-gt-8k.dtb'
'./marvell/armada-3720-espressobin.dtb' -> '/nix/store/x99ip5g71rwn94mf8l8kr4hqil8bfp6m-device-tree-overlays
View config.txt
# U-Boot used to need this to work, regardless of whether UART is actually used or not.
# TODO: check when/if this can be removed.
enable_uart=1
# Prevent the firmware from smashing the framebuffer setup done by the mainline kernel
# when attempting to show low-voltage or overtemperature warnings.
avoid_warnings=1
# Boot in 64-bit mode.
arm_64bit=1
kernel=kernel.img
View gist:c252bb10bd823ec42def23c6ac6a8cce
diff --git a/src/configuration/ArcanistConfigurationManager.php b/src/configuration/ArcanistConfigurationManager.php
index f1391a8b..8689c34e 100644
--- a/src/configuration/ArcanistConfigurationManager.php
+++ b/src/configuration/ArcanistConfigurationManager.php
@@ -181,7 +181,7 @@ final class ArcanistConfigurationManager extends Phobject {
'Config: Reading user configuration file "%s"...',
$user_config_path));
- if (!phutil_is_windows()) {
+ if (false) {
View result
#!/nix/store/z4ajipns0l1s8b2lrgpy6nng4cys7h99-bash-4.4-p23/bin/bash
PATH=/nix/store/z4ajipns0l1s8b2lrgpy6nng4cys7h99-bash-4.4-p23/bin:/nix/store/hzvl3dvv8651iqlb5g6gq5hzjzmhjn7m-coreutils-8.31/bin:/nix/store/rphcpivxfm4blw36ki262yrmqygw9pcp-findutils-4.7.0/bin:/nix/store/9k90a16frvqdcxzkhxcjsi2qczv3i4x4-gnused-4.8/bin:/nix/store/zckg7fafpkpmdhgajyalakirlw88k1jz-jq-1.6-bin/bin:/nix/store/83f38s2vp9nlkh3akilbhw2869xy0b9l-nix-2.3.3/bin:/nix/store/ban4jcddacl71ld8axbnlnlh5gr0712q-openssh-8.2p1/bin:/nix/store/nz8baf2s4wygv1nc6pybb7dc5wn3yw8f-procps-3.3.16/bin:/nix/store/308x65jfhxxybjwp46492y6zqqw2z2b8-rsync-3.1.3/bin
set -euo pipefail
# Kill all child processes when interrupting/exiting
trap exit INT TERM
trap 'for pid in $(jobs -p) ; do kill -- -$pid ; done' EXIT
# Be sure to use --foreground for all timeouts, therwise a Ctrl-C won't stop them!
# See https://unix.stackexchange.com/a/233685/214651
You can’t perform that action at this time.