Skip to content

Instantly share code, notes, and snippets.

View davidcsejtei's full-sized avatar

Dávid Csejtei davidcsejtei

  • CEO & Co-Founder of Amicode Expert Kft.
  • Hungary
View GitHub Profile
@kyoncy
kyoncy / downloadBlocklyWorkspaceAsImage.ts
Last active December 8, 2023 08:55
Download Blockly.Workspace as SVG or PNG file
import Blockly from 'blockly';
declare interface CustomNode extends Node {
removeAttribute(arg0: string);
}
const DOMURL = window.URL || window.webkitURL;
const getSvgBlob = (workspace: Blockly.WorkspaceSvg) => {
const canvas = workspace.svgBlockCanvas_.cloneNode(true) as CustomNode;
@Drag13
Drag13 / v8-debug-flags
Last active June 21, 2024 19:21
v8 engine flags for DEBUG version v9.4.143
Options:
--abort-on-contradictory-flags (Disallow flags or implications overriding each other.)
type: bool default: true
--allow-overwriting-for-next-flag (temporary disable flag contradiction to allow overwriting just the next flag)
type: bool default: false
--use-strict (enforce strict mode)
type: bool default: false
--harmony (enable all completed harmony features)
type: bool default: false
--harmony-shipping (enable all shipped harmony features)
@ygotthilf
ygotthilf / jwtRS256.sh
Last active July 14, 2024 00:03
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
@lurcio
lurcio / htpasswd-add-user
Created April 24, 2012 09:30
Add user to htpasswd file
sudo htpasswd /path/to/password/file anotheruser