Skip to content

Instantly share code, notes, and snippets.

View panda1100's full-sized avatar

Yoshiaki Senda panda1100

View GitHub Profile
@panda1100
panda1100 / hook-openpyxl.py
Created September 29, 2018 13:42 — forked from GaryLee/hook-openpyxl.py
Fix ".constants.json" not found issue when using Pyinstaller to pack openpyxl.
# When you're encountering following error.
# > IOError: [Errno 2] No such file or directory: 'C:\\Users\\username\\AppData\\Local\\Temp\\_MEI502322\\openpyxl\\.constants.json'
#
# This solution tested under Python 2.7.10 and Pyinstaller 3.0.
#
# Put this file to your script folder.
# Add this hook to your distribution by
# > pyinstaller --onefile --additional-hooks-dir=. yourscript.py
#
from PyInstaller.utils.hooks import collect_data_files
@panda1100
panda1100 / mkimage_vyos.sh
Created January 29, 2019 05:56 — forked from kurochan/mkimage_vyos.sh
mkimage_vyos.sh
#!/bin/bash
# You need to install overlayroot
# sudo apt-get install overlayroot
LANG=C
set -e
set -x
@panda1100
panda1100 / main.go
Created October 29, 2021 08:54 — forked from lizrice/main.go
Container from scratch
package main
// @lizrice, mostly copied from @doctor_julz: https://gist.github.com/julz/c0017fa7a40de0543001
import (
"fmt"
"os"
"os/exec"
"syscall"
)
@panda1100
panda1100 / ls_dyna_no_tears.md
Created January 14, 2022 02:36 — forked from sean-smith/ls_dyna_no_tears.md
Create a cluster and run LS-Dyna

How to build a load balancer with BGP and ECMP using VyOS

According to this cloudflare blog article "Load Balancing without Load Balancers", we can build a rock-solid load balancer only using a router. All the magic comes from BGP and Equal-Cost Multi-Path routing.

In this howto, I will use bird as BGP router on linux instance (ie. servers).

Test environment

I use GNS3 with this architecture :

architecture