The point of the list is not to complain, but to educate (informing people about unexpected and suprisingly broken things), and propose workarounds.
Bug report: nodejs/node#8569.
MIT License | |
Copyright (c) 2021 Daniel Ethridge | |
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: |
import bip39 from 'bip39' | |
import hdkey from 'ethereumjs-wallet/hdkey' | |
import uuid from 'uuid' | |
import SHA256 from 'crypto-js/sha256' | |
import pbkdf2 from 'pbkdf2' | |
const SHARED_SALT = 'MaWe^C?2uButtKymBeRw5z*h3Z^x6LN*Bcj%d9xh@rkBFfA5X+#dwd5SRraYPY&2vjP_s*w$kd*!en7-%td&?R+zgtpHGLeBrSnh=-J#Fj=qpg%GwSpA=H83bG53sjmNBNe-DR6NDVXe@SJgps!-zx2^FFEk*DWsqYPg&edC3rR9n%$M*h2W+6*ADwc$Hpj*bESS?aV!&S8xnJ%%Z6jeFCBnHsXANVC2ZjD%8C3*P5e=CWn+x8Y?8CKJA3@fF6*=e8!L5$BWSBNQ2B3ECYbJ4-EkTE=!4#5nhPb5sw#3N4bCQDcGt7_QEE4xYpYz6EvJF9?5BD7bwwV7?kS9B6RRXBe3WYFwuG88yr$#JHb=?*vfMe=F+8rkTxNY2T^RyE4BFaDQenaj?$XHgafsRU#n!XnD3ageyWEMjSu&vPa9yy!$XCBFURfL#G9!u@B^5U%ZJx9$Gm6P5jjfAkZ=U@JqUq^YPY74DTbZaxjMRgVJ&$$q_v?r@fKsvJfSJp3fGYGq' | |
export function openWallet(walletid = uuid(), password) { | |
console.time('timetodecrypt') |
The point of the list is not to complain, but to educate (informing people about unexpected and suprisingly broken things), and propose workarounds.
Bug report: nodejs/node#8569.
ssh-keygen | |
-t ed25519 - for greatest security (bits are a fixed size and -b flag will be ignored) | |
-t rsa - for greatest portability (key needs to be greater than 4096 bits) | |
-t ecdsa - faster than RSA or DSA (bits can only be 256, 284, or 521) | |
-t dsa - DEEMED INSECURE - DSA limted to 1024 bit key as specified by FIPS 186-2, No longer allowed by default in OpenSSH 7.0+ | |
-t rsa1 - DEEMED INSECURE - has weaknesses and shouldn't be used (used in protocol 1) | |
-b 4096 bit size | |
-a 500 rounds (should be no smaller than 64, result in slower passphrase verification and increased resistance to brute-force password cracking) | |
-C "[email protected]" comment.. |
/** | |
* This script will automatically sync all updates from one database to another. It is meant to be run while | |
* syncing the database using mongodump and mongorestore. | |
* | |
* Example: | |
* node livesync.js mongodb://<user>:<pass>@dbhost.com:10645/app-production \ | |
* mongodb://<user>:<pass>@dbhost.com:10499/local?authSource=app-production \ | |
* app-production \ | |
* mongodb://<user>:<pass>@newdbhost.com/app-prod | |
*/ |
{ | |
"International Date Line West":"Pacific/Midway", | |
"Midway Island":"Pacific/Midway", | |
"American Samoa":"Pacific/Pago_Pago", | |
"Hawaii":"Pacific/Honolulu", | |
"Alaska":"America/Juneau", | |
"Pacific Time (US & Canada)":"America/Los_Angeles", | |
"Tijuana":"America/Tijuana", | |
"Mountain Time (US & Canada)":"America/Denver", | |
"Arizona":"America/Phoenix", |
The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.
It uses Open Source tools that are widely available, tested and understood:
Update: https://www.cyanhall.com/posts/notes/7.homebrew-cheatsheet/#java
on El Capitan, after installing the brew...
$ brew update
$ brew tap caskroom/cask
$ brew install Caskroom/cask/java
And Java 8 will be installed at /Library/Java/JavaVirtualMachines/jdk1.8.xxx.jdk/
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |