Skip to content

Instantly share code, notes, and snippets.

View narimantos's full-sized avatar
💭
automatizing

narimantos

💭
automatizing
View GitHub Profile
@narimantos
narimantos / fetch_raspberry_pi_firmware.sh
Created August 9, 2020 14:14 — forked from atomicstack/fetch_raspberry_pi_firmware.sh
a one-liner to fetch the latest revisions of /boot/*.{elf,dat} in the RPi firmware repository (because it's a 14GB repo and cloning takes forever, and we're only interested in ~20MB of data)
wget $( wget -qO - https://github.com/raspberrypi/firmware/tree/master/boot | perl -nE 'chomp; next unless /[.](elf|dat)/; s/.*href="([^"]+)".*/$1/; s/blob/raw/; say qq{https://github.com$_}' )
@narimantos
narimantos / Jenkinsfile
Created August 30, 2021 09:03 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples
@narimantos
narimantos / enable_ebpf_on_wsl2
Created August 14, 2022 19:25 — forked from MarioHewardt/enable_ebpf_on_wsl2
Enable EBPF on WSL2
By default, EBPF programs will not run on WSL2 due to required kernel modules missing. The following example error is an
indication of this problem:
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microso
ft-standard/modules.dep.bin'
modprobe: FATAL: Module kheaders not found in directory /lib/modules/4.19.84-microsoft-standard
chdir(/lib/modules/4.19.84-microsoft-standard/build): No such file or directory
To fix this you need to rebuild the WSL2 kernel with the missing kernel modules. The below instructions are for Ubuntu 18.04 WSL2.
1. git clone https://github.com/microsoft/WSL2-Linux-Kernel.git