Skip to content

Instantly share code, notes, and snippets.


Benjamin Jesuiter bjesuiter

View GitHub Profile
bjesuiter / default.conf
Created Jul 13, 2021
Multi-SPA Nginx Config
View default.conf
server {
listen 8080;
server_name localhost;
# Logging Settings
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
root /usr/share/nginx/www/;
index index.html;
bjesuiter /
Last active Jul 10, 2021
Awesome MacOS Tools

Awesome MacOS Tooling

Problems with 4K 60Hz Monitor?

Use SwitchResX Tool!

Control Brightness of external Monitors

Full bootable Backups

View gist:5c7b882fa71f0b15186aa5714cd0f419
# 'Res-Params' - Get a list of all params after a finite amout of params
# For Example: Collect all params after %1 to pass them to another cli.
set param_1=%1
for /f "tokens=1,* delims= " %%a in ("%*") do set ALL_BUT_FIRST_PARAM=%%b
echo "Call Some other cli with the rest of the params: %ALL_BUT_FIRST_PARAM%"
# For Example: call %CMDER_ROOT%\opt\.wapm\wapm_packages\.bin\%command% %ALL_BUT_FIRST%
bjesuiter / box-reset.css
Created Jun 25, 2021
Awesome CSS Tricks
View box-reset.css
html {
box-sizing: border-box;
*, *:before, *:after {
box-sizing: inherit;
bjesuiter /
Last active Jun 10, 2021
Linux on MacBook Pro Late 2016

Linux on MacBook Pro Late 2016

General Stuff

MX Linux "Advanced Hardware Edition (AHS)

  • Default: native Auflösung des MBP Bildschirms
  • Trackpad geht
  • Touchbar geht nicht (aber wahrscheinlich weil gerade kein funktionierendes MacOS drauf ist
  • externer LAN Adapter geht, aber nur, wenn schon bei Boot angeschlossen (kein Hotplug)
bjesuiter /
Last active Jan 3, 2022
Personal Awesome List bjesuiter
bjesuiter /
Created Jan 16, 2021
Typora - Useful Math Blocks

Typora - Useful Math Blocks

Multiple Calculation Lines aligned at '='


  • the \begin{align*} and \end{align*} commands start an alignment block
  • all lines with &= will be aligned to the Positioon of &= in the first line
bjesuiter / demo.component.ts
Created Nov 24, 2020
How to get static data of activeRoute from route definition
View demo.component.ts
class DemoComponent () {
private router: Router,
) {
filter((event) => event instanceof NavigationEnd),
map(() => this.router.routerState.root),
map((route) => {
bjesuiter /
Last active Jul 23, 2020
Shell-based build scripting environment with aliases
# This file can be sourced from a development shell (for example in VSCode)
# to make shortcut commands available for the project.
# This is kind of like your local build script system for each developer.
# This file should NOT be checked into version control!
# This file should contain shortcuts to other scripts with specialized settings, which are distinct for each developer.
bjesuiter /
Last active Feb 20, 2021
SSH Best Practice Keygen Commands
# Use RSA 4096 or Ed25519 (if supported), for more details, see:
ssh-keygen -t rsa -b 4096
ssh-keygen -t rsa -b 4096 -N [new passphrase (if wanted)]
ssh-keygen -t ed25519
# Interactive Input:
# - Name for private key: for example bjesuiter@zephir-mbp-15
# - Password for private key: save in JB_SSH.kdbx
# Set Key Permission (when copied into ~/.ssh from outside