Skip to content

Instantly share code, notes, and snippets.

View frank-dspeed's full-sized avatar
🇩🇪
I Engineer

Frank Lemanschik frank-dspeed

🇩🇪
I Engineer
View GitHub Profile
@frank-dspeed
frank-dspeed / Security-in-ECMAScript.md
Created February 13, 2022 14:56
How Javascript EcmaScript Security Audits Work.

How Javascript EcmaScript Security Audits Work.

the secret ingridients are

!global
!window
!globalThis
![NameOftheRealGlobal]
!this // outside class

Git Design Administration Maintanance and Planning Guide

Targeted Audience https://github.com/nodejs/package-maintenance

There are a few topics to consider when creating and maintaining gitrepos this guide should be a first start point and help you to understand how to grow and morph a repo structure without braking things for other people.

Submodules & Forks

There are situations where you need to depend on something that some one else maintains and creates now you need to choose how to integrate and update that part of your product as also you want to make sure that it does never break your product.

@frank-dspeed
frank-dspeed / RANT_WHATSAPP.WEB.MD
Created February 9, 2022 11:13
HASS WHATSAPP BUISSNES

Whatsapp is the biggest ... on earth

they are to silly to keep the most vital component alive whatsapp web it is so hard to find the right naviagation point in the Buissnes app that i waisted really hours for it

I hate that so much that i will replace facebook instagram and whatsapp where ever possible for every one who needs it

@frank-dspeed
frank-dspeed / upgrade-path-to-regexp.md
Created February 7, 2022 12:05
express 4 regex upgrade from 0.1.7 to 6.2 current

Running with path-to-regexp 0.1.7

> express@4.17.2 test
> mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/

path:  /
regexp:  /^\/?(?=\/|$)/i
path:  /
regexp:  /^\/?(?=\/|$)/i
path:  /
@frank-dspeed
frank-dspeed / backups.md
Last active January 25, 2022 15:19
Better Backups and change detection

bash.sh

export SRC_NAME=Projekte
export SRC_FOLDER=~/${SRC_NAME}
export RO_FS=${SRC_FOLDER}.sqsh
export RO_MNT=${SRC_FOLDER}.ro
export RW_MNT=${SRC_FOLDER}.rw
export TMP_MNT=${SRC_FOLDER}.tmp

echo "SRC_FOLDER=${SRC_FOLDER}"
@frank-dspeed
frank-dspeed / typescript_declaration_reading.md
Created January 24, 2022 16:39
Some Helpers to read d.ts files and create JSDoc Imports Programatical.

Here i collected some experiments.

"export interface "
"export declare function "
"export declare class "

const test = `
export interface CommandProperties {
export declare function issueCommand(command: string, properties: CommandProperties, message: any): void;
export declare function issue(name: string, message?: string): void;
@frank-dspeed
frank-dspeed / overrides-overwrite-package.json.md
Last active February 9, 2022 08:54
overrides in package.json

npm v8.3+ configuring-npm/package-json#overrides

Update currently this is never working correct for deep dependencies at Feb 2022

Cheats

npm-shrinkwrap.json is able to dictate dependencies to outside package.json overrides do only count in project root that gets installed

bundleDependencies can break all this maybe?

@frank-dspeed
frank-dspeed / TYPESCRIPT-CHEATS.md
Last active January 26, 2022 10:26
Typescript Cheats for JSDOC and JS

Make an Object index able by String

// example 1
const objToOutput = (/** @type {{ [x: string]: any; filename?: string; path?: string; }} */ obj) => Object.keys(obj).forEach(key=>core.setOutput(key, obj[key]));

// Example 2
/** @type {{ [property: string|number]: any; }} */
const me = {
    "hi": true
}
@frank-dspeed
frank-dspeed / ubuntu-desktop-software-upgrade-example.md
Last active June 9, 2022 06:52
Ubuntu Desktop Software Upgrades Example.

VSCODE

wget 'https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-x64' -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb

VSCODE Insiders

wget 'https://code.visualstudio.com/sha/download?build=insider&os=linux-deb-x64' -O /tmp/code_insiders_amd64.deb
sudo dpkg -i /tmp/code_insiders_amd64.deb