Skip to content

Instantly share code, notes, and snippets.

View risicle's full-sized avatar

Robert Scott risicle

View GitHub Profile
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
@nix { "action": "setPhase", "phase": "configurePhase" }
unpacking sources
unpacking source archive /nix/store/k918gi00ykmpwq93jmkpcpmz0pi1cjbw-squashfs-tools-ng-0.7.tar.xz
source root is squashfs-tools-ng-0.7
setting SOURCE_DATE_EPOCH to timestamp 1570549776 of file squashfs-tools-ng-0.7/Makefile.in
patching sources
configuring
fixing libtool script ./ltmain.sh
configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/ijcbhvbzda60r3arnnaxmgqmby834jnr-squashfs-tools-ng-0.7
checking for a BSD-compatible install... /nix/store/vzvgqdqcx6hi1syivyv6phjn2dzgvvja-coreutils-8.31/bin/install -c
checking whether build environment is sane... yes
building '/nix/store/8nik5syyqvdgmd4iiwbk3j945alwm3kw-sequoia-0.11.0.drv'...
unpacking sources
unpacking source archive /nix/store/8hxwh2mfbvfz36618zcq870qaixscwyf-source
source root is source
unpacking source archive /nix/store/aps6gdaxywbw70i29qhdr6cz44gq1105-sequoia-0.11.0-vendor
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/tool/tests/sq-sign.rs
patching sources
substituteStream(): WARNING: pattern 'git grep' doesn't match anything in file 'openpgp-ffi/Makefile'
configuring
no configure script, doing nothing
@risicle
risicle / ris-cpython-3.7-pool-canary.patch
Last active April 22, 2020 18:10
Rudimentary CPython 3.7 pool allocator canary implementation - useful for debugging python C/Cython extensions
:100644 100644 1248a3937e... 0000000000... M Objects/obmalloc.c
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index 1248a3937e..29ad3081b6 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -1402,10 +1402,12 @@ pymalloc_alloc(void *ctx, size_t nbytes)
if (nbytes == 0) {
return NULL;
}
{ lib, stdenv, buildGoModule, aws-vault, makeWrapper, yubikey-manager, git }:
buildGoModule rec {
pname = "gds-cli";
version = "5.100.0";
src = (builtins.fetchGit {
url = "ssh://git@github.com/alphagov/gds-cli.git";
ref = "v${version}";
rev = "a15c8842b7b953386fb065bd37c88e34b058f650";
allRefs = true;
@risicle
risicle / aws-vault-6.nix
Created September 9, 2020 12:44
aws-vault 6.0.0 for nixpkgs 20.03
{ buildGoModule, lib, fetchFromGitHub }:
buildGoModule rec {
pname = "aws-vault";
version = "6.0.0";
src = fetchFromGitHub {
owner = "99designs";
repo = pname;
rev = "v${version}";
sha256 = "0ssm58ksk5jb28w1ipa57spzf6wixjy1m7flw61ls8k86cy7qb7c";
@risicle
risicle / local.nix
Created September 9, 2020 12:47
will use `pkgs`-provided aws-vault if >= 5.0.0, otherwise will substitute its own 6.0.0 (defined elsewhere)
args: oldAttrs: let
aws-vault = if
(builtins.compareVersions (builtins.parseDrvName args.pkgs.aws-vault.name).version "5.0.0") != -1 then args.pkgs.aws-vault
else (import ../aws-vault-6.nix {
inherit (args.pkgs) buildGoModule fetchFromGitHub;
inherit (args.pkgs.stdenv) lib;
});
in oldAttrs // {
buildInputs = oldAttrs.buildInputs ++ [
args.pkgs.vim
@risicle
risicle / word2vec.fail
Last active September 17, 2020 22:18
macos 10.14 failures
=================================== FAILURES ===================================
____________________________ test_run_word2clusters ____________________________
@pytest.mark.data
def test_run_word2clusters():
> word2vec.word2clusters(input_text, output_clusters, 10)
word2vec/tests/test_core.py:45:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
word2vec/scripts_interface.py:182: in word2clusters
@risicle
risicle / netplan-to-nixos.jq
Created May 2, 2021 21:18
jq expression to turn netplan yaml configs into nixos network configurations, supporting bonding and vlans
{
systemd: {
network: {
netdevs: (
.network.ethernets | with_entries(.value |= {
netdevConfig: {Name: ."set-name"},
matchConfig: {MACAddress: .match.macaddress}
})
)
}
#0 0x00000000174ef025 in dlar1v_ () from /nix/store/413dlxvbzrsfaakf00ffsgw7f1qapx3f-lapack-3/lib/liblapack.so.3
#1 0x00000000174f5ed9 in dlarrv_ () from /nix/store/413dlxvbzrsfaakf00ffsgw7f1qapx3f-lapack-3/lib/liblapack.so.3
#2 0x000000001756f767 in dstemr_ () from /nix/store/413dlxvbzrsfaakf00ffsgw7f1qapx3f-lapack-3/lib/liblapack.so.3
#3 0x000000001752f5df in dsyevr_ () from /nix/store/413dlxvbzrsfaakf00ffsgw7f1qapx3f-lapack-3/lib/liblapack.so.3
#4 0x00000000273b45e1 in f2py_rout.flapack_dsyevr () from /nix/store/gmcby9wc7c5agdilcqq8ngzvn0psz2gy-python3.9-scipy-1.8.0/lib/python3.9/site-packages/scipy/linalg/_flapack.cpython-39-x86_64-linux-gnu.so
#5 0x0000000004906aa9 in _PyObject_Call (kwargs=<optimized out>, args=(), callable=<fortran at remote 0x13e90720>, tstate=0x50589e0) at Objects/call.c:281
#6 PyObject_Call (callable=<fortran at remote 0x13e90720>, args=(), kwargs=<optimized out>) at Objects/call.c:293
#7 0x00000000048bbe0d in do_call_core (kwdict={'a': <numpy.ndarray at remote 0x40eb8900>,