Skip to content

Instantly share code, notes, and snippets.

View hantoine's full-sized avatar

Antoine Hebert hantoine

View GitHub Profile
@hantoine
hantoine / install_xelatex_on_mac.txt
Last active February 10, 2022 21:33 — forked from peterhurford/install_xelatex_on_mac.txt
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
brew install pandoc
brew tap homebrew/cask
brew --cask install basictex
eval "$(/usr/libexec/path_helper)"
export PATH="$PATH:/Library/TeX/texbin/"
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox
sudo tlmgr install collectbox
@hantoine
hantoine / argo-in-kind.md
Last active July 11, 2022 13:44 — forked from darpr/argo-in-kind.md
"Argo Workflow" in `kind` Cluster

Argo in Kind

Play with "Argo Workflow" in your local kind cluster.

Prerequisites

The following instructions were tested in macOS Monterey (12.4), on 10 Jul 2022.

Docker Runtime

Ensure docker is installed and running.

K8s Client

@hantoine
hantoine / graceful_httpserver.go
Last active May 4, 2023 18:21 — forked from ivan3bx/graceful_httpserver.go
Example of handling graceful shutdowns with gin-gonic
// runServer will start the HTTPServer, handling graceful
// shutdown on receives SIGTERM / SIGINT.
func runServer(addr string, engine *gin.Engine) {
s := &http.Server{
Addr: addr,
Handler: engine.Handler(),
}
go func() {
log.Info("server starting")