Skip to content

Instantly share code, notes, and snippets.

View danielz02's full-sized avatar

Chenhui Zhang danielz02

View GitHub Profile
@veekaybee
veekaybee / normcore-llm.md
Last active September 21, 2026 14:25
Normcore LLM Reads

Anti-hype LLM reading list

Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.

Foundational Concepts

Screenshot 2023-12-18 at 10 40 27 PM

Pre-Transformer Models

@qinjian623
qinjian623 / onnx2pytorch.py
Last active September 26, 2024 13:55
ONNX file to Pytorch model
import onnx
import struct
import torch
import torch.nn as nn
import torchvision as tv
import warnings
# enum DataType {
# UNDEFINED = 0;
@kennychufk
kennychufk / file-system-check-failure.sh
Created February 8, 2018 09:16
Arch Linux troubleshooting
# Failed to boot:
# Failed to start file system check on /dev/disk/by-uuid/....
journalctl -xb
# (look at the disk label that fsck failed)
fsck /dev/sda3
#
@dcasati
dcasati / kube-dns-port-forward.sh
Last active October 21, 2024 19:46
kubernetes - Kube-DNS port forwarding and DNS querying.
# Use dig to find out about the k8s records
# dig +vc -p 5300 @127.0.0.1 cluser.local
# Use dig to retrieve an A Record
# dig +vc -p 5300 @127.0.0.1 A cb-example-0000.default.svc.cluster.local
# Use dig to do a reverse lookup (-x flag)
#dig +vc -p 5300 @127.0.0.1 -x 10.0.50.156
# Add the port forward
@perrygeo
perrygeo / zonal_stats.py
Last active August 18, 2025 08:33
Python implementation of zonal statistics function. Optimized for dense polygon layers, uses numpy, GDAL and OGR to rival the speed of starspan.
"""
Zonal Statistics
Vector-Raster Analysis
Copyright 2013 Matthew Perry
Usage:
zonal_stats.py VECTOR RASTER
zonal_stats.py -h | --help
zonal_stats.py --version