Skip to content

Instantly share code, notes, and snippets.

View bramanda48's full-sized avatar
πŸ‘¨β€πŸ’»
Tahun baru, semangat baru!

BRAM bramanda48

πŸ‘¨β€πŸ’»
Tahun baru, semangat baru!
View GitHub Profile
@bramanda48
bramanda48 / change_origin_proxy.js
Last active February 18, 2025 04:04 — forked from andris9/README.md
Extremely simple HTTP proxy for changing Host: headerUseful when proxying requests to virtual hosts that require Host: header to be set.
"use strict";
/*
Creates a HTTP proxy that rewrites Host: header to a predefined value
Useful when forwarding requests to Apache or Nginx virtual hosts
Usage:
PORT_LISTEN=123 PORT_TARGET=456 HOST_TARGET=127.0.0.1 HOST_ORIGIN="tere.ee" node proxy.js
@bramanda48
bramanda48 / webcrypto-examples.md
Created August 17, 2024 04:45 — forked from pedrouid/webcrypto-examples.md
Web Cryptography API Examples
@bramanda48
bramanda48 / docker-aliases.sh
Created November 29, 2023 02:12 — forked from jgrodziski/docker-aliases.sh
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@bramanda48
bramanda48 / git-ssh-auth-win-setup.md
Created April 26, 2022 03:50 — forked from bsara/git-ssh-auth-win-setup.md
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config
@bramanda48
bramanda48 / create_k3s_cluster.md
Created October 25, 2020 10:40 — forked from kalaspuffar/create_k3s_cluster.md
Simple description how to create a k3s cluster.

Creating a small K3S cluster.

First ensure that you have curl installed the nodes and server so you can install the packages for k3s.

First run the command below in order to create a control node, a server that all your other nodes will connect to in order to get their commands from.

curl -sfL https://get.k3s.io | sh -

Next up we need to setup the nodes. And in order to set this up we need some information. Run the commands below on the server to fetch the internal IP address of the network with the controller and nodes. We also need a security token from the server which we can fetch with cat.