Skip to content

Instantly share code, notes, and snippets.

View bjesuiter's full-sized avatar

Benjamin Jesuiter bjesuiter

View GitHub Profile
@bjesuiter
bjesuiter / policy.json
Created June 5, 2022 17:52
AWS Policy Access to Single S3 Bucket
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetBucketLocation", "s3:ListAllMyBuckets"],
"Resource": "arn:aws:s3:::*"
},
{
"Sid": "VisualEditor0",

JB Tech Stacks

A List of all my tech-stacks and useful libraries

Deno

@bjesuiter
bjesuiter / grid-blowout-guard-example.css
Created May 23, 2022 09:26
Prevent CSS Grid Blowout / Overflowing it's Parent
.document-tile-control-box.desktop-mode {
// The reason for minmax(0, value) here is:
// - forces grid columns to have a defined min-width
// - which forces the grid to assume defined sizes and to not grow columns indefinitely
// - more details: https://css-tricks.com/preventing-a-grid-blowout/
grid-template-columns: minmax(0, max-content) minmax(0, max-content);
grid-template-rows: 1fr min-content min-content;
@bjesuiter
bjesuiter / angular-api-proxy.md
Last active March 25, 2022 15:09
Development Quicktips

Angular API Proxies

Base Problem

  • Requests from Localhost to REST Services on Testing & Staging Environments may be forbidden by CORS.

Solution - Angular API Proxy

@bjesuiter
bjesuiter / default.conf
Created July 13, 2021 07:54
Multi-SPA Nginx Config
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
bjesuiter / awesome-macos-tools.md
Last active July 1, 2022 15:38
Awesome MacOS Tools

Awesome MacOS Tooling

Problems with 4K 60Hz Monitor?

Use SwitchResX Tool! https://www.madrau.com/

Control Brightness of external Monitors

For Intel: Lunar & MonitorControl - Caschys Blog

# '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%
# reload windows environment variables (win env) without reboot
@bjesuiter
bjesuiter / box-reset.css
Created June 25, 2021 11:58
Awesome CSS Tricks
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
@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)
@bjesuiter
bjesuiter / personal-awesome-list.md
Last active July 25, 2023 20:45
Personal Awesome List bjesuiter