Skip to content

Instantly share code, notes, and snippets.

View bjesuiter's full-sized avatar

Benjamin Jesuiter bjesuiter

View GitHub Profile
@bjesuiter
bjesuiter / personal-awesome-list.md
Last active July 25, 2023 20:45
Personal Awesome List bjesuiter
@bjesuiter
bjesuiter / demo.md
Created January 16, 2021 09:14
Typora - Useful Math Blocks

Typora - Useful Math Blocks

Multiple Calculation Lines aligned at '='

Explanation:

  • 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
bjesuiter / demo.component.ts
Created November 24, 2020 11:33
How to get static data of activeRoute from route definition
class DemoComponent () {
constructor(
private router: Router,
) {
this.router.events
.pipe(
filter((event) => event instanceof NavigationEnd),
map(() => this.router.routerState.root),
map((route) => {
@bjesuiter
bjesuiter / _aliase.sh
Last active July 23, 2020 11:33
Shell-based build scripting environment with aliases
#!/bin/bash
###
# 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
bjesuiter / Readme.md
Last active March 26, 2024 15:41
SSH Best Practice Keygen Commands

SSH Best Practices

Generate new Keys

## SSH Keygen
# -t key algorithm, use "-t rsa -b 4096" for legacy systems
# -N you can pass the key's passphrase directly in the arguments
#    CAUTION: Security Risk because of shell command logging!
# -a = Anzahl der "Verschlüsselungsrunden", höher ist besser
@bjesuiter
bjesuiter / .prettierrc.yaml
Last active February 20, 2021 14:42
Bjesuiter default prettier config
# Using Yaml to be able to use comments :)
# Source Gist: https://gist.github.com/bjesuiter/97e2cc820804003090d51e9656151062
trailingComma: "es5"
printWidth: 100
tabWidth: 2
useTabs: true
singleQuote: true
bracketSpacing: true
arrowParens: "always"
semi: true
@bjesuiter
bjesuiter / logger.js
Last active March 7, 2020 15:25
BJesuiter Default Winston logging config
import {createLogger, format, transports} from 'winston';
import * as configService from '../config.service.js';
import {SPLAT} from 'triple-beam';
import jsonColorize from 'json-colorizer';
const {combine, timestamp, printf, colorize} = format;
const jsonColorizeOptions = {
pretty: true,
colors: {
@bjesuiter
bjesuiter / improvements.md
Last active August 10, 2019 14:23
DeckDeckGo Bugs / Improvements

DeckDeckGo Bugs / Improvements

Improvements

Show Slides in Presenter Mode

The presenter mode does not show the slide contents of the current slide. This is very unfortunate, since it requires looking at the beamer when presenting, especially when no notes are attached to a specific slide.

Allow 'reveal' effect for all child elements, not only li, p and img

@bjesuiter
bjesuiter / Readme.md
Last active April 23, 2019 13:22
Evert Ramos Reverse Proxy - Backend Service Connection problem (Issue 144)

Description

This Gist contains some more debugging information for the following issue:
evertramos/nginx-proxy-automation#144

Notes

  • My nginx-web container is called bnware-reverse-nginx-web
@bjesuiter
bjesuiter / reset.css
Last active April 30, 2024 13:43
bjesuiter best-practice css reset (simplest)
/*
* bjesuiter's CSS Reset, last updated 2024-04-30
* My Github Gist: https://gist.github.com/bjesuiter/71bd3f919c9a70d0a41553fada832174
*
* Based on: Josh's Custom CSS Reset
* Blogpost: https://www.joshwcomeau.com/css/custom-css-reset/
*
* Added: Font Size Considerations from this blogpost:
* - Blogpost: https://adrianroselli.com/2024/03/the-ultimate-ideal-bestest-base-font-size-that-everyone-is-keeping-a-secret-especially-chet.html
* - Video from t3dotgg: https://www.youtube.com/watch?v=rg3zgQ3xBRc