Skip to content

Instantly share code, notes, and snippets.

View higebu's full-sized avatar
🏠
Working from home

Yuya Kusakabe higebu

🏠
Working from home
View GitHub Profile
@higebu
higebu / gobgp_mup.md
Last active October 12, 2022 14:14
Usage of gobgp BGP-MUP Support
@higebu
higebu / gcp_workload_identity_test_on_gke_autopilot.md
Created April 25, 2022 23:54
[GCP] Workload Identity Test on GKE Autopilot
@higebu
higebu / cloud-init-config-for-github-runner.yml
Last active July 4, 2023 06:31
cloud-init config for GitHub-hosted runner on Ubuntu 20.04
package_update: true
package_upgrade: true
groups:
- docker
- lxd
users:
- default
- name: runner
gecos: GitHub-hosted runner User
groups: docker, lxd
@higebu
higebu / build_vyos_with_debian_sid.md
Last active July 31, 2023 23:47
WIP: Build VyOS with Debian sid
  1. git clone and checkout branch
git clone https://github.com/higebu/vyos-build.git
cd vyos-build
git checkout sid
  1. Run docker image
@higebu
higebu / main.go
Created October 11, 2021 02:18
Generate GTPv1-U packet in Go
package main
import (
"fmt"
"net"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
)
@higebu
higebu / config
Created October 11, 2021 01:38
kernel config for xdp testing
# Enable BPF related things
CONFIG_BPF_STREAM_PARSER=y
CONFIG_BPF_SYSCALL=y
CONFIG_BPF=y
CONFIG_BPFILTER=y
CONFIG_CGROUP_BPF=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO=y
CONFIG_EPOLL=y
CONFIG_EVENTFD=y
@higebu
higebu / install_debian_to_apu2c4.md
Last active May 12, 2024 18:31
Install Debian to apu2c4
@higebu
higebu / packer.log
Created January 22, 2021 05:37
nixos-20.09 release nixos-20.09.2660.da3378c4aaf packer build error log
virtualbox-iso: output will be in this color.
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying https://releases.nixos.org/nixos/20.09/nixos-20.09.2660.da3378c4aaf/nixos-minimal-20.09.2660.da3378c4aaf-x86_64-linux.iso
==> virtualbox-iso: Trying https://releases.nixos.org/nixos/20.09/nixos-20.09.2660.da3378c4aaf/nixos-minimal-20.09.2660.da3378c4aaf-x86_64-linux.iso?checksum=sha256%3A4f4a7f798f9000ff361a08785e476e7d27d2ad096cb96ae0e6841f547f5227cf
==> virtualbox-iso: https://releases.nixos.org/nixos/20.09/nixos-20.09.2660.da3378c4aaf/nixos-minimal-20.09.2660.da3378c4aaf-x86_64-linux.iso?checksum=sha256%3A4f4a7f798f9000ff361a08785e476e7d27d2ad096cb96ae0e6841f547f5227cf => C:\Users\kusak\Documents\Vagrant\nixbox\packer_cache\3d0eb02770cdf46f7276435843106749d6943258.iso
==> virtualbox-iso: Starting HTTP server on port 8252
==> virtualbox-iso: Using existing SSH private key for the communicator...
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
#!/bin/bash
gh release download -p ghq_linux_amd64.zip -R x-motemen/ghq
unzip ghq_linux_amd64.zip
sudo cp ghq_linux_amd64/ghq /usr/local/bin/
sudo cp ghq_linux_amd64/misc/bash/_ghq /etc/bash_completion.d/ghq
rm ghq_linux_amd64.zip
rm -rf ghq_linux_amd64
. /etc/bash_completion
@higebu
higebu / expand_lvm_partition.sh
Created July 27, 2020 01:41
Expand LVM partition
sudo apt install -y parted
sudo parted /dev/vda
resizepart 2 -1s
resizepart 5 -1s
quit
sudo pvresize /dev/vda5
sudo lvextend -r -l +100%FREE /dev/mapper/sv--112901438283--vg-root