Skip to content

Instantly share code, notes, and snippets.

View achille-roussel's full-sized avatar

Achille achille-roussel

View GitHub Profile
@achille-roussel
achille-roussel / go1.22rc1.md
Last active January 29, 2024 22:50
Go 1.22 rc1 installation to enable the range functions experiment

This file describes how to install Go 1.22 and enable the range functions experimental feature.

Go has standard instructions for managing multiple installations at https://go.dev/doc/manage-install, this document focuses on how to install Go 1.22 rc1 to enable the range functions experiment.

💡 These instructions are only useful until Go 1.22 is officially released (the target is February 2024)

💡 Go 1.22 rc2 has now been released, these instructions are still valid, simply replace rc1 with rc2 to adapt (e.g., https://pkg.go.dev/golang.org/dl/go1.22rc2)

Installing Go 1.22 rc1

@achille-roussel
achille-roussel / go-vendor-add-submodules.sh
Last active July 20, 2016 07:04
Go: add github vendor submodules
# Run in the root directory of a go package to list all direct github dependencies
# and create git submodules for them in the vendor directory.
for package in $(
go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | grep github.com | cut -d/ -f1-3 | grep -v $(go list .) | uniq
)
do
git submodule add https://$package vendor/$package
done
@jvns
jvns / kernelfuntalk.md
Last active August 24, 2023 16:02
You can be a kernel hacker

Hello!

Did you see my talk at CUSEC? If you're interested in hacking on the Linux kernel, here are some more resources! If you have suggestions for learning about OS X or Windows, or you're interested in learning about BSD, let me know!

Reading kernel code: