Skip to content

Instantly share code, notes, and snippets.


Kent Kawashima kentwait

View GitHub Profile
basoro / proxmox-proxy
Created May 25, 2019 20:45
Running Proxmox behind a single IP address
View proxmox-proxy
I ran into the battle of running all of my VMs and the host node under a single public IP address. Luckily, the host is just pure Debian, and ships with iptables.
What needs to be done is essentially to run all the VMs on a private internal network. Outbound internet access is done via NAT. Inbound access is via port forwarding.
Network configuration
Here’s how it’s done:
Create a virtual interface that serves as the gateway for your VMs:
gaearon /
Last active May 22, 2023 16:11
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](
gretzky / macOS x arch linux
Last active April 29, 2023 06:39
dual booting arch linux on a macbook pro 12,1 (retina, 13", 2015)
View macOS x arch linux
# dual booting arch linux & macOS
# on a macbook pro 12,1
# ft. rEFInd
# this guide has been smashed together from a variety
# of other awesome guides out there for dual booting
# including but not limited to:
# mark nichols' 5 part guide:
# the arch linux docs:
streslab /
Last active April 4, 2022 23:45
Headless NVIDIA overclock setup under Ubuntu Server 16.04 for ethereum mining

Headless Ethereum Miner Setup - NVIDIA

Reed Slaby, March 2018

Having grown tired of wasting a perfectly good monitor on my ethereum mining rig, I finally decided to replace the Ubuntu Desktop 16.04 installation with Ubuntu Server 16.04. Many of the gtutorials available at the time of this writing range from unecessarily complicated to flat-out wrong. This guide is intended to address many of those shortfalls.


To complete this guide, you should already have:

  • Basic knowledge of Linux
  • An Ethereum wallet
AfzalivE / asoundrc
Created November 14, 2017 01:16
Ps3 eye + 3.5mm speaker asoundrc
View asoundrc
# ps3 eye + 3.5mm speaker Raspberry Pi
## Suggested by
## Modified by
pcm.jack {
type hw
card ALSA
pcm.array {
type hw
card CameraB409241
simoncos /
Last active February 18, 2023 11:38
Install Miniconda 3 on Raspberry Pi
asukakenji /
Last active June 5, 2023 13:03
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.17.1 darwin/amd64.

GOOS Values

GOOS Out of the Box
wojteklu /
Last active June 8, 2023 12:19
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.

General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

View golang-create-read-write-delete-file.go
package main
import (
var path = "/Users/novalagung/Documents/temp/test.txt"
melvincabatuan / BOOSTwithPython3
Created April 5, 2015 10:47
Compile BOOST with Python3 support
View BOOSTwithPython3
1. Check Python3 root
>>> import sys
>>> import os
>>> sys.executable
$ which python3