Skip to content

Instantly share code, notes, and snippets.

View tjunghans's full-sized avatar
💭
Open for business

Thomas Junghans tjunghans

💭
Open for business
View GitHub Profile
@tjunghans
tjunghans / Summary-Notes-On-Secure-User-Auth.md
Last active September 6, 2021 19:57
Summary Notes on "Implementing Secure User Authentication in PHP Applications with Long-Term Persistence"

Summary Notes on "Implementing Secure User Authentication in PHP Applications with Long-Term Persistence"

Source

  • Secure Authentication is hard

Secure Password Storage in 2015

Passwords: Hashes, Salts, and Policies

(function () {
"use strict";
const table = document.querySelector("table");
if (table) {
const thead = table.querySelector("thead");
const tbody = table.querySelector("tbody");
// create "Path" header column
@tjunghans
tjunghans / TJ.code-snippets
Created April 6, 2020 10:47
JavaScript, Typescript and React VSCode snippets
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
@tjunghans
tjunghans / History\-7199209e\entries.json
Last active September 8, 2022 14:37
vscode-settings.json
{"version":1,"resource":"file:///h%3A/Digital-Clock-main/Digital-Clock-main/script.js","entries":[{"id":"m8wb.js","timestamp":1662637426203},{"id":"kcQL.js","source":"undoRedo.source","timestamp":1662637430965}]}
@tjunghans
tjunghans / using-the-sass-migrator-in-monorepo.md
Last active March 12, 2020 13:08
Using the sass-migrator in monorepo

#Using the sass-migrator in monorepo

sass/migrator#68

// @use "../../../package/browser/css/file"; // alternative solution
@use "~package/browser/css/file";

Calling the migrator in the root directory, which is the same directory of packages/node_modules and node_modules will only find

@tjunghans
tjunghans / node-v8-max-old-space-size.md
Last active November 18, 2023 20:17
Node V8 max-old-space-size

Node V8 Option max-old-space-size

Command line

node --help --v8-options | grep -B 1 -A 1 max-old-space
        type: bool  default: false
  --max-old-space-size (max size of the old space (in Mbytes))
        type: size_t  default: 0
@tjunghans
tjunghans / remove-git-branch.md
Created March 3, 2020 14:53
Git Branch Unix Tools

Remove GIT Branch

Removing branches with the following name convention:

bugfix/

# use -D to force delete
git branch | grep "^  feature" | xargs git branch -d
@tjunghans
tjunghans / ExternalLink.tsx
Created February 6, 2020 08:30
External Preact Link
@tjunghans
tjunghans / typescript-references-mono-repo.md
Last active January 22, 2020 07:38
Typescript References in Mono Repo

Typescript References in Mono Repo

Mono repo directory structure:

tsconfig.json
tsconfig-base.json
package.json
packages/node_modules/packageA/tsconfig.json
packages/node_modules/packageB/tsconfig.json