Skip to content

Instantly share code, notes, and snippets.

View max-hk's full-sized avatar

max-hk

View GitHub Profile
@shawwn
shawwn / What happens when you allocate a JAX tensor on a TPU.md
Last active April 15, 2023 04:11
JAX C++ stack trace walkthrough for TpuExecutor_Allocate
@KamilPacanek
KamilPacanek / git-signing-setup.md
Last active June 19, 2021 09:08
Setup Git signing

Verify downloaded GPG installation package

  1. Download GPG (GPG Binary releases) and *.sig file.
    • Windows: GnuPG simple installer (CLI tools)
  2. Import GnuPG public keys with verified gpg binary.
    • Use gpg that comes with Git installation from Git Bash
      where gpg
      gpg --version
@Rich-Harris
Rich-Harris / http-apis.md
Last active November 3, 2022 09:02
Next-gen Node HTTP APIs

I saw this poll on Twitter earlier and was surprised at the result, which at the time of writing overwhelmingly favours option 1:

Screen Shot 2020-09-10 at 10 19 22 AM

I've always been of the opinion that the (req, res, next) => {} API is the worst of all possible worlds, so one of two things is happening:

  • I'm an idiot with bad opinions (very possibly!)
  • People like familiarity
@maks
maks / dart2native-on-freebsd.md
Created September 6, 2020 08:14
getting dart2native Linux executables running on FreeBSD
Solidity 2 hrs 59 mins ████████████████████▌ 97.7%
Git Config 4 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.3%
@jasonboukheir
jasonboukheir / git
Last active March 29, 2024 18:12
git when in unix, git.exe when in wsl
#!/bin/sh
if pwd | grep /mnt/c > /dev/null; then
exec git.exe "$@"
else
exec /usr/bin/git "$@"
fi
import {Directive, ElementRef, Input, OnInit} from '@angular/core';
import { FormControl } from '@angular/forms';
type ErrorTypes = {
[key: string]: () => void;
};
@Directive({
selector: '[FormErrorsMessage]'
})
@WisdomSky
WisdomSky / README.md
Last active September 25, 2023 15:47
Signal Server Installation v1.88 Full Guide

# Requirements

  • Java 11
  • Maven
  • Redis
  • PostgreSQL
@kyletravis
kyletravis / delete-from-v2-docker-registry.md
Created June 15, 2019 04:44 — forked from jaytaylor/delete-from-v2-docker-registry.md
One liner for deleting images from a v2 docker registry

One liner for deleting images from a v2 docker registry

Just plug in your own values for registry and repo/image name.

registry='localhost:5000'
name='my-image'
curl -v -sSL -X DELETE "http://${registry}/v2/${name}/manifests/$(
    curl -sSL -I \
        -H "Accept: application/vnd.docker.distribution.manifest.v2+json" \
@TennousuAthena
TennousuAthena / qwq.gif
Last active May 4, 2020 20:25
你看我辣么可爱,给个Star好不好?
qwq.gif