Skip to content

Instantly share code, notes, and snippets.

View bjesuiter's full-sized avatar

Benjamin Jesuiter bjesuiter

View GitHub Profile
@bjesuiter
bjesuiter / DisableSynergy.sh
Created February 4, 2018 08:51
SH Script for MacOS to disable Symless Synergy
#!/usr/bin/env bash
# Option for enabling and disabling the Service will come in 2018 to Synergy directly
launchctl unload /Library/LaunchAgents/com.symless.synergy.synergy-service.plist
sudo killall synergy-core
@bjesuiter
bjesuiter / EnableSynergy.sh
Created February 4, 2018 08:53
SH Script for MacOS to enable Symless Synergy after disabling it
#!/usr/bin/env bash
# Option for enabling and disabling the Service will come in 2018
launchctl load /Library/LaunchAgents/com.symless.synergy.synergy-service.plist
@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 / 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 / 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 / _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 / 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 / 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 / .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 / linux-on-mbp15-2016.md
Last active June 10, 2021 21:25
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)