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
Verifying that +higebu is my blockchain ID. https://onename.com/higebu
@higebu
higebu / niftycloud-dns-create-hosted-zone.sh
Created October 27, 2015 03:04
NIFTY Cloud DNS CreateHostedZone in bash
#!/bin/bash
ZONE=<Zone name>
ACCESS_KEY_ID=<NIFTY Cloud Access Key ID>
SECRET_KEY=<NIFTY Cloud Secret Key>
ENDPOINT=https://dns.api.cloud.nifty.com/2012-12-12N2013-12-16/hostedzone
# Generate signature version 2
datetime=$(LC_ALL=en TZ='GMT' date "+%a, %d %b %Y %H:%M:%S %Z")
@higebu
higebu / active.md
Created November 20, 2015 10:59
Most active GitHub NIFTY Cloud members (by contributions)

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Thu, 20 Nov 2014 10:54:18 GMT till Fri, 20 Nov 2015 10:54:18 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter((user) -&gt; user.followers &gt; 14)
@higebu
higebu / wait.go
Created December 11, 2015 11:23
Example Golang script for WaitForUpdateEx
package main
import (
"fmt"
"net/url"
"os"
"github.com/vmware/govmomi"
"github.com/vmware/govmomi/property"
"github.com/vmware/govmomi/vim25/types"
@higebu
higebu / build.sh
Last active February 25, 2016 09:15
Install squid 3.5.15 to VyOS
#!/bin/bash
apt-get install build-essential libdb4.8-dev libcppunit-dev libntlm0-dev libldap2-dev libxml2-dev libpam0g-dev libc6-dev
version=3.5.15
cd squid-$version
./configure \
--build=x86_64-linux-gnu \
--prefix=/usr \
--includedir=${prefix}/include \
--mandir=${prefix}/share/man \
@higebu
higebu / test.md
Last active February 26, 2016 00:39
markdown test
  • aaa

    aaa
    aaa
    
  1. I'm going to include a fenced code block as part of this bullet:

Code

@higebu
higebu / setup_snmp_trap_monitoring_for_vcsa_with_zabbix.md
Last active December 22, 2023 09:28
Setup SNMP Trap monitoring for vCenter Server Appliance with Zabbix

Setup SNMP Trap monitoring for vCenter Server Appliance with Zabbix

Environment

  • VCSA 6.0
  • Zabbix 3.0
    • on Ubuntu 14.04

Zabbix Server side

@higebu
higebu / aaa.sh
Created March 3, 2016 12:19
memo
sudo apt-get install -y qemu-kvm qemu-system-x86
@higebu
higebu / build_vyos.sh
Last active October 11, 2017 12:00
build vyos
# Install apt-cacher-ng
sudo apt-get install -y apt-cacher-ng
echo 'Acquire::http::Proxy "http://127.0.0.1:3142/";' > /etc/apt/apt.conf.d/proxy
# Build iso
sudo apt-get install -y live-build pbuilder devscripts python3-pystache
./configure --debian-mirror http://127.0.0.1:3142/debian/ --build-by '[email protected]'
sudo make iso
# Build qemu image
@higebu
higebu / use_mpls_in_vyos.sh
Last active October 12, 2019 16:17
use mpls in vyos
modprobe mpls_router
modprobe mpls_iptunnel
modprobe mpls_gso
sysctl -w net.mpls.platform_labels=1000
ip link add veth0 type veth peer name veth1
ip link add veth2 type veth peer name veth3
sysctl -w net.mpls.conf.veth0.input=1
sysctl -w net.mpls.conf.veth2.input=1
ifconfig veth0 10.3.3.1/24 up