Skip to content

Instantly share code, notes, and snippets.

View risicle's full-sized avatar

Robert Scott risicle

View GitHub Profile
#0 dlar1v (n=10, b1=1, bn=10, lambda=6.206329040168803e-15, d=..., l=..., ld=..., lld=..., pivmin=2.2250738585072014e-308, gaptol=0, z=..., wantnc=.TRUE., negcnt=0, ztz=<optimized out>, mingma=6.3108872417680944e-30, r=8, isuppz=..., nrminv=3.6057425056094288, resid=1.4901161193847656e-08, rqcorr=2.0984948872810358, work=...)
at dlar1v.f:405
#1 0x0000000017cc6ed9 in dlarrv (n=10, vl=-0.34647963093462386, vu=3.6057425056094288, d=..., l=..., pivmin=2.2250738585072014e-308, isplit=..., m=10, dol=1, dou=10, minrgp=0.001, rtol1=1.4901161193847656e-08, rtol2=7.4505805969238283e-11, w=..., werr=..., wgap=..., iblock=..., indexw=..., gers=..., z=..., ldz=10, isuppz=...,
work=..., iwork=..., info=0) at dlarrv.f:875
#2 0x0000000017d40767 in dstemr (jobz=..., range=..., n=10, d=..., e=..., vl=0, vu=1, il=1, iu=10, m=10, w=..., z=..., ldz=10, nzc=10, isuppz=..., tryrac=.FALSE., work=..., lwork=330, iwork=..., liwork=100, info=0, _jobz=1, _range=1) at dstemr.f:669
#3 0x0000000017d005df in dsyevr (jobz=..., r
@risicle
risicle / _flapackmodule.c
Created March 11, 2022 22:45
scipy flapack intermediate files generated with numpy 26e656e7989e776a9292b9eba88cef7ec9fec5cb (good)
This file has been truncated, but you can view the full file.
/* File: _flapackmodule.c
* This file is auto-generated with f2py (version:1.21.99).
* f2py is a Fortran to Python Interface Generator (FPIG), Second Edition,
* written by Pearu Peterson <[email protected]>.
* Generation date: Fri Feb 4 14:45:41 2022
* Do not edit this file directly unless you know what you are doing!!!
*/
#ifdef __cplusplus
extern "C" {
@risicle
risicle / _flapackmodule.c
Created March 11, 2022 22:50
scipy flapack intermediate files generated with numpy 468142495461319f06a8debf57a3c0aa2703f9df (bad)
This file has been truncated, but you can view the full file.
/* File: _flapackmodule.c
* This file is auto-generated with f2py (version:1.21.99).
* f2py is a Fortran to Python Interface Generator (FPIG), Second Edition,
* written by Pearu Peterson <[email protected]>.
* Generation date: Fri Feb 4 14:45:41 2022
* Do not edit this file directly unless you know what you are doing!!!
*/
#ifdef __cplusplus
extern "C" {
@risicle
risicle / src-inspector.nix
Last active June 3, 2025 19:22
src-inspector.nix - related to https://github.com/NixOS/nixpkgs/pull/179845 but more specialized to native binary sniffing
# nix-build -E 'let pkgs = import ./. {}; lib = pkgs.lib; attrList = builtins.fromJSON (builtins.readFile ./attrs.json); in pkgs.callPackage ./src-inspector.nix { toInspect = (lib.genAttrs attrList (x: lib.attrByPath (lib.splitString "." x) {} pkgs)); }'
# given a json array (attrs.json) of dotted attr paths
{ lib, stdenv, dpkg, unzip, toInspect }:
builtins.mapAttrs (
name: value: let
dp = builtins.tryEval value.drvPath or null;
res = if dp.success && dp.value != null then builtins.tryEval value.src or null else dp;
in if !(value.dontUnpack or false)
#!/bin/bash
ALL_ATTRS_NIX=$(mktemp)
PKGS_PATH="."
#NIX_SYSTEM="x86_64-linux"
cat > "$ALL_ATTRS_NIX" <<EOF
{}@args: let pkgs = (import $(realpath "$PKGS_PATH") args); in with pkgs; builtins.filter (x: x != null) (builtins.map (x: if (builtins.tryEval x.drvPath).success then x else null) [
EOF
sum by (instance) (rate(http_server_request_duration_seconds_sum{org="digitalmarketplace", space="$space", job=~"$app(-release)?"}[1m]))
@risicle
risicle / gist:2b87aedcdf3bb59fa4fbd245228ea070
Created August 21, 2022 22:13
flask-restful test failure
_________________ APITestCase.test_exception_header_forwarded __________________
self = <tests.test_api.APITestCase testMethod=test_exception_header_forwarded>
def test_exception_header_forwarded(self):
"""Test that HTTPException's headers are extended properly"""
app = Flask(__name__)
app.config['DEBUG'] = True
api = flask_restful.Api(app)
unpacking sources
unpacking source archive /nix/store/m51ns7p2rjn91lzr1021b05z57176d3y-root_v5.34.38.source.tar.gz
source root is root
setting SOURCE_DATE_EPOCH to timestamp 1520866180 of file root/etc/gitinfo.txt
patching sources
applying patch /nix/store/xzi1l7qs3ms4bsc1qnrsjv723rv0frdn-sw_vers_root5.patch
patching file build/unix/compiledata.sh
patching file cmake/modules/SetUpMacOS.cmake
patching file config/root-config.in
patching file cint/ROOT/CMakeLists.txt
unpacking sources
unpacking source archive /nix/store/ydb6n6fghhx32izg0pdk8x0bkrmnd61k-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
Updating Autotools / GNU config script to a newer upstream version: ./nng/extern/msquic/submodules/openssl/krb5/src/config/config.sub
Updating Autotools / GNU config script to a newer upstream version: ./nng/extern/msquic/submodules/openssl/krb5/src/config/config.guess
configuring
fixing cmake files...
cmake flags: -GNinja -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/csi69820lpy04q1rc610qkm3k7cxs7i8-nanomq-0.18.2/share
unpacking sources
unpacking source archive /nix/store/mw664kgniq3ch73i66zlgbg7krksizlp-source
source root is source
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
no configure script, doing nothing
building
build flags: SHELL=/nix/store/a7f7xfp9wyghf44yv6l6fv9dfw492hd3-bash-5.2-p15/bin/bash
[CC] buffer.o