Skip to content

Instantly share code, notes, and snippets.

View bjesuiter's full-sized avatar

Benjamin Jesuiter bjesuiter

View GitHub Profile

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
@bjesuiter
bjesuiter / personal-awesome-list.md
Last active July 25, 2023 20:45
Personal Awesome List bjesuiter
@bjesuiter
bjesuiter / filter-async.ts
Created August 22, 2018 11:59
An rxjs 6 pipe operator which filters the data based on an async predicate function returning promise<boolean>
/**
* An operator which filters the data based on an async predicate function returning promise<boolean>
*
* NOTE:
* By using **concatMap**, the order of original data events is preserved and the filter runs sequentially for each data event
* If you want to run the filter in parallel without preserving order, use **flatMap**
* See the accepted answer at: https://stackoverflow.com/questions/28490700/is-there-an-async-version-of-filter-operator-in-rxjs
* @param predicate
* @param thisArg
*/