Skip to content

Instantly share code, notes, and snippets.

View reski-rukmantiyo's full-sized avatar

Reski Rukmantiyo reski-rukmantiyo

View GitHub Profile

README.MD

@reski-rukmantiyo
reski-rukmantiyo / add-win32-lib
Last active January 11, 2023 16:27 — forked from rpavlik/winvm.md
onboard-missing-libs-virt-v2v
#
# How to get Rhsrvy and pnp_wait for virt-v2v
#
# Activate Debug
# export LIBGUESTFS_TRACE=1
# export LIBGUESTFS_DEBUG=1
# export LIBVIRT_DEBUG=1
@reski-rukmantiyo
reski-rukmantiyo / k3s_on_alpine.md
Created February 19, 2022 03:04 — forked from ruanbekker/k3s_on_alpine.md
Install k3s on Alpine Linux
$ apk add --no-cache curl
$ echo "cgroup /sys/fs/cgroup cgroup defaults 0 0" >> /etc/fstab

$ cat > /etc/cgconfig.conf <<EOF
mount {
  cpuacct = /cgroup/cpuacct;
  memory = /cgroup/memory;
  devices = /cgroup/devices;
  freezer = /cgroup/freezer;
@reski-rukmantiyo
reski-rukmantiyo / go-build-all.sh
Created April 8, 2021 16:56 — forked from makew0rld/go-build-all.sh
Cross compile for all possible Golang targets. This script will always be updated, because it uses the `go` command to see what can be built.
#!/usr/bin/env bash
# Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4
# but improved to use the `go` command so it never goes out of date.
type setopt >/dev/null 2>&1
contains() {
# Source: https://stackoverflow.com/a/8063398/7361270
[[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]]
@reski-rukmantiyo
reski-rukmantiyo / postgres-benchmark.sh
Last active March 23, 2021 22:12 — forked from sharoonthomas/postgres-benchmark.sh
Benchmark postgres servers
# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
# Import the repository signing key:
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
# Update the package lists:
sudo apt-get update
# Install the latest version of PostgreSQL.
@reski-rukmantiyo
reski-rukmantiyo / go-os-arch.md
Created March 22, 2021 23:58 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

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

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android