Skip to content

Instantly share code, notes, and snippets.

View bjesuiter's full-sized avatar

Benjamin Jesuiter bjesuiter

View GitHub Profile
@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
@bjesuiter
bjesuiter / injectCustom.ts
Last active April 27, 2024 09:43
Angular Snippets & Tricks
// See here: https://twitter.com/tomasz_ducin/status/1781953013961085248?t=NFfNAU_RiPYF1ZaXZxJ7qA

JB Tech Stacks

A List of all my tech-stacks and useful libraries

Deno

@bjesuiter
bjesuiter / extract-files.sh
Last active April 11, 2024 13:12
Docker Tipps
#!/usr/bin/env bash
# docker run \
# --name ${container_name} \
# ${image} \
# ${cmd}
# docker cp ${container_name}:${path_to_copy} ${output_dir}
@bjesuiter
bjesuiter / mit.md
Created March 29, 2024 11:19
my-license.md

MIT License

Copyright (c) 2023 Benjamin Jesuiter (CodeMonument)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@bjesuiter
bjesuiter / convert-doc-to-pdf.applescript
Last active March 26, 2024 22:56
AppleScript Snippets
# Credits for this script to ALYB at https://forum.keyboardmaestro.com/t/applescript-save-microsoft-word-doc-x-document-to-pdf/20614
tell application "Finder"
set input to selection
end tell
tell application id "com.microsoft.Word"
activate
set view type of view of active window to draft view
@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 / gist:015782a048ce674e509e82c23bbd2294
Last active November 20, 2023 16:20
Meine Lieblings-Softwareentwicklungs-Kurse / My favorite software development courses
Angular (Maximilian Schwarzmüller ): https://www.udemy.com/course/the-complete-guide-to-angular-2/
CSS (Josh W. Comeau): https://css-for-js.dev/
React (Josh W. Comeau): https://www.joyofreact.com/
Algortihms (ThePrimeagen): https://frontendmasters.com/courses/algorithms/
HTML (SelfHTML): https://wiki.selfhtml.org/wiki/Wie_fange_ich_an%3F
Go Basics (GoByExample): https://gobyexample.com/
[credential "helperselector"]
selected = wincred
[credential]
helper = wincred
autoDetectTimeout = -1
[user]
email = myemail@gmail.com
name = My Name
[pull]
ff = only
# '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