Skip to content

Instantly share code, notes, and snippets.

View js32's full-sized avatar
🌴
On vacation

jens js32

🌴
On vacation
View GitHub Profile
@js32
js32 / WireGuard_Setup.txt
Created March 22, 2024 09:00 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@js32
js32 / README.md
Last active May 31, 2023 11:29 — forked from itsmikita/README.md
Create bootable USB drive from InstallMacOSX.pkg

Create bootable USB drive from InstallMacOSX.pkg

  1. Erase USB drive with Disk Utility using format Mac OS Extended (Journaled) and Master Boot Record and call it MyVolume
  2. Use Finder to mount/open InstallMacOSX.dmg.
  3. Run following commands:
pkgutil --expand /Volumes/Install\ OS\ X/InstallMacOSX.pkg /tmp/El\ Capitan
diskutil eject Install\ OS\ X
cd /tmp/El\ Capitan
@js32
js32 / nginxproxy.md
Created March 9, 2023 11:18 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

Keybase proof

I hereby claim:

  • I am js32 on github.
  • I am js32 (https://keybase.io/js32) on keybase.
  • I have a public key ASA9XigNPOEEa4Rpi3bHbLrZrgJpmzqXicq5FJFB7k_mbwo

To claim this, I am signing this object: