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 / install_nginx_on_debian.sh
Created March 5, 2024 23:54
Install Nginx on Debian
#!/bin/bash
codename=$(lsb_release -c -s)
sudo wget https://nginx.org/keys/nginx_signing.key -O /etc/apt/keyrings/nginx_signing.key
cat <<EOF | sudo tee /etc/apt/sources.list.d/nginx.list
deb [signed-by=/etc/apt/keyrings/nginx_signing.key] https://nginx.org/packages/debian/ $codename nginx
deb-src [signed-by=/etc/apt/keyrings/nginx_signing.key] https://nginx.org/packages/debian/ $codename nginx
EOF
sudo apt-get update
sudo apt-get install -y nginx
@higebu
higebu / vrf_on_github_actions.yml
Created February 13, 2024 01:07
VRF on GitHub Actions
name: use vrf
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
@higebu
higebu / git-pull-hard
Last active March 12, 2024 11:44
git-pull-hard
#!/bin/bash
current_branch=$(git branch --show-current)
tracking_branch=$(git branch -vv | grep ${current_branch} | grep -oP '\[\K[^]]*(?=\])' | cut -d':' -f1)
if [ -z "$tracking_branch" ]; then
echo "No tracking branch found for ${current_branch}"
exit 1
fi
@higebu
higebu / vyos_vm_on_lxd.md
Last active August 1, 2023 14:46
VyOS VM on LXD

Import vyos image

lxc image import --alias vyos {path to lxd image file}

Init vyos instance

lxc profile set default security.secureboot=false
@higebu
higebu / ietf116_hackathon_gobgp_configuration.md
Last active April 10, 2023 06:49
IETF116 Hackathon GoBGP Configuration

OS

Ubuntu 22.04

cloud-init

#cloud-config
hostname: gobgp
manage_etc_hosts: True
@higebu
higebu / cml2_gobgp_cloud_config.yaml
Last active March 25, 2023 01:19
gobgp cloud config for CML2
#cloud-config
hostname: gobgp1
manage_etc_hosts: True
timezone: Asia/Tokyo
system_info:
default_user:
name: cisco
password: cisco
chpasswd: { expire: False }
ssh_pwauth: True
@higebu
higebu / vpp_srv6_mup_plugin_errors.md
Last active September 13, 2022 02:25
VPP SRv6 MUP Plugin Errors

Install VPP

https://packagecloud.io/fdio/release

curl -s https://packagecloud.io/install/repositories/fdio/release/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk
sudo usermod -aG vpp $USER
sudo systemctl start vpp
@higebu
higebu / gobgp_mup.md
Last active October 12, 2022 14:14
Usage of gobgp BGP-MUP Support