Skip to content

Instantly share code, notes, and snippets.

@Pandapip1
Pandapip1 / GJ_Ch3A_Lab8.csv
Created May 26, 2026 06:20
GJ - Ch 3A Lab 8
Filename--> GJ - Ch 3A Lab 8 - Sample 1.ABS8 GJ - Ch 3A Lab 8 - Sample 2.ABS8 GJ - Ch 3A Lab 8 - Sample 3.ABS8 GJ - Ch 3A Lab 8 - Standard 1.ABS8 GJ - Ch 3A Lab 8 - Standard 2.ABS8 GJ - Ch 3A Lab 8 - Standard 3.ABS8 GJ - Ch 3A Lab 8 - Standard 4.ABS8
Mode/Unit-->
Int.time[ms]--> 80 80 80 80 80 80 80
NrOfAverages--> 5 5 5 5 5 5 5
Smoothing--> 1 1 1 1 1 1 1
Wavelength [nm] GJ - Ch 3A Lab 8 - Sample 1 GJ - Ch 3A Lab 8 - Sample 2 GJ - Ch 3A Lab 8 - Sample 3 GJ - Ch 3A Lab 8 - Standard 1 GJ - Ch 3A Lab 8 - Standard 2 GJ - Ch 3A Lab 8 - Standard 3 GJ - Ch 3A Lab 8 - Standard 4
179.135 -0.017801446 0.054115467 0.011041987 0.387171821 0.264454556 0.193706473 0.050018303
179.477 -0.04405768 0.262111942 -0.100514129 0.051576848 0.317159488 0.542938527 0.020850153
179.819 0.021651546 1.475805187 -0.05217808 -0.225529298 0.53042451 0.525969724 -0.037898561
180.160 0.064204036 4 0.143091016 -0.10942655 1.002546563 0.641931178 0.023481031
@Pandapip1
Pandapip1 / check-bootstrap.nix
Created October 27, 2025 08:40
Check bootstrap
{ pkgs }:
let
# Recursively collect derivations safely, skipping anything that throws
collectDerivationsSafe = root:
let
processQueue = values: seen:
if values == [] then [] else
let
head = builtins.head values;
@Pandapip1
Pandapip1 / ollama.log
Created October 11, 2025 09:04
ollama sigill
░░
░░ The job identifier is 996186.
Oct 11 08:49:07 cantaloupe ollama[82293]: time=2025-10-11T08:49:07.668Z level=INFO source=routes.go:1475 msg="server config" env="map[CUDA_VISIBLE_DEVICES: GPU_DEVICE_ORDINAL: HIP_VISIBLE_DEVICES: HSA_OVERRIDE_GFX_VERSION:9.0.6 HTTPS_PROXY: HTTP_PROXY: NO_PROXY: OLLAMA_CONTEXT_LENGTH:4096 OLLAMA_DEBUG:INFO OLLAMA_FLASH_ATTENTION:false OLLAMA_GPU_OVERHEAD:0 OLLAMA_HOST:http://127.0.0.1:11434 OLLAMA_INTEL_GPU:false OLLAMA_KEEP_ALIVE:5m0s OLLAMA_KV_CACHE_TYPE: OLLAMA_LLM_LIBRARY: OLLAMA_LOAD_TIMEOUT:5m0s OLLAMA_MAX_LOADED_MODELS:0 OLLAMA_MAX_QUEUE:512 OLLAMA_MODELS:/var/lib/ollama/models OLLAMA_MULTIUSER_CACHE:false OLLAMA_NEW_ENGINE:false OLLAMA_NOHISTORY:false OLLAMA_NOPRUNE:false OLLAMA_NUM_PARALLEL:1 OLLAMA_ORIGINS:[http://localhost https://localhost http://localhost:* https://localhost:* http://127.0.0.1 https://127.0.0.1 http://127.0.0.1:* https://127.0.0.1:* http://0.0.0.0 https://0.0.0.0 http://0.0.0.0:* https://0.0.0.0:* app://* file://* tauri://* vscode-webview://* v
@Pandapip1
Pandapip1 / wine-rt-programmer.log
Created February 18, 2025 23:26
RT Systems QRZ-1 programmer with wine
00e4:err:ole:com_get_class_object class {de52502e-f837-492b-ae14-a182531afaf4} not registered
00e4:err:ole:com_get_class_object class {de52502e-f837-492b-ae14-a182531afaf4} not registered
00e4:err:ole:com_get_class_object no class object {de52502e-f837-492b-ae14-a182531afaf4} could be created for context 0x3
wine: Unhandled page fault on read access to 010F95BF at address 0242812C (thread 00e4), starting debugger...
Unhandled exception: page fault on read access to 0x010f95bf in wow64 32-bit code (0x0242812c).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:0242812c ESP:00acee3c EBP:00acee3c EFLAGS:00010202( R- -- I - - - )
EAX:0000609d EBX:000000e5 ECX:010c74d8 EDX:02428120
ESI:010c75a8 EDI:010c74d8
@Pandapip1
Pandapip1 / test_atx.scad
Last active January 18, 2025 00:16
ATX Test
$fn=200;
$fs=0.01;
epsilon = 0.1;
// https://danielupshaw.com/openscad-rounded-corners/
module roundedcube(size = [1, 1, 1], center = false, radius = 0.5, apply_to = "all") {
// If single value, convert to [x, y, z] vector
size = (size[0] == undef) ? [size, size, size] : size;
@Pandapip1
Pandapip1 / deduplicate-spack.py
Created June 8, 2024 14:37
Spack Deduplicate
#!/usr/bin/env python3
from pathlib import Path
import json
import sys
import filecmp
import os
import shutil
import subprocess
is_binary_string = lambda bytes: bool(bytes.translate(None, (bytearray({7,8,9,10,12,13,27} | set(range(0x20, 0x100)) - {0x7f}))))
@Pandapip1
Pandapip1 / coreutils-install.log
Created April 12, 2024 18:37
Coreutils install failure
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /ref/djslab/software/nix/store/mp706h9p7ailmwcqh5q4fy9bj6zrslw3-coreutils-9.4.tar.xz
source root is coreutils-9.4
setting SOURCE_DATE_EPOCH to timestamp 1693318957 of file coreutils-9.4/doc/coreutils.info
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
substituteStream(): WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file './tests/install/install-C.sh')
@nix { "action": "setPhase", "phase": "autoreconfPhase" }
Running phase: autoreconfPhase
@Pandapip1
Pandapip1 / mount.scad
Created March 31, 2024 22:14
A helper to create custom mounts
// Params
height_difference = 14; // mm
top_mount_thickness = 2; // mm
top_mount_diameter = 6; // mm
top_mount_dimension_x = 85; // mm
top_mount_dimension_y = 40; // mm
bottom_mount_thickness = 2; // mm
bottom_mount_diameter = 3; //mm
bottom_mount_dimension_x = 62.5; // mm
bottom_mount_dimension_y = 62.5; // mm
@Pandapip1
Pandapip1 / build.log
Last active March 26, 2024 16:17
Build failure: xgcc
these 103 derivations will be built:
/ref/djslab/software/nix/store/plsah8kbwwr2xv5fiqvwcm8ln5gbcmix-update-autotools-gnu-config-scripts-hook.drv
/ref/djslab/software/nix/store/23lj7wmb4r3k1hivr89dlipchnb9spv4-bootstrap-stage2-stdenv-linux.drv
/ref/djslab/software/nix/store/8js47l3ipxnd0lld9w11wcdmn6idgb8w-nuke-references.drv
/ref/djslab/software/nix/store/5ycp7yliv4pddc0r5nyidl5ihv58pp3i-xgcc-13.2.0.drv
/ref/djslab/software/nix/store/yam5rgz4v69cp0rhxk5ni1mw11120gnm-binutils-2.41.drv
/ref/djslab/software/nix/store/lv6r3ip59i24kld1skqa7xyp6qpjbj93-binutils-wrapper-2.41.drv
/ref/djslab/software/nix/store/cj3il0h4r553hplwr8dn6qdj39xdzb8c-bootstrap-stage2-gcc-wrapper-13.2.0.drv
/ref/djslab/software/nix/store/agshv8wyzkscnzmir53bgpbag0wkj3z7-bootstrap-stage2-stdenv-linux.drv
/ref/djslab/software/nix/store/g5ps8391bq19kwg0wvlcbikflvrkpin3-bootstrap-stage0-glibc-iconv-bootstrapFiles.drv
@Pandapip1
Pandapip1 / pdf_extract_images
Created February 19, 2024 17:22
A simple gist to pull all the images from a PDF file
#!/usr/bin/env python3
# coding=utf-8
from PIL import Image
import fitz
import os
import sys
import io
def pdf_extract_images(pdf_path, output_dir):