See this article first.
Use node --inspect
Most of the time it should give you a chrome URL. If not, go to about:inspect
in chrome and you should see a target to inspect
See this article first.
Use node --inspect
Most of the time it should give you a chrome URL. If not, go to about:inspect
in chrome and you should see a target to inspect
(I always forget this!)
https://stackoverflow.com/questions/29283040/how-to-add-custom-certificate-authority-ca-to-nodejs
export NODE_EXTRA_CA_CERTS=[your CA certificate file path]
Some of the greatest info I've seen on creating a healthy engineering courtesy of Spotify:
TODO make notes on this one
# original source based on: https://github.com/fabiohbarbosa/docker-healthcheck-oracle/blob/master/assets/healthcheck.sh | |
CHECK=$(${ORACLE_HOME}/bin/sqlplus -s ${HEALTHCHECK_USER}/${HEALTHCHECK_PASSWORD}@localhost/${HEALTHCHECK_SERVICE_NAME} as sysdba <<END | |
--set pagesize 0 feedback off verify off heading off echo off; | |
-- the simplest type of health check | |
--select count(*) from dual; | |
-- this will check if a | |
SELECT count(*) FROM V\$INSTANCE where INSTANCE_NAME = 'xe' and DATABASE_STATUS = 'ACTIVE'; | |
exit; | |
END |
-- https://stackoverflow.com/questions/1690404/how-to-drop-all-user-tables | |
BEGIN | |
FOR cur_rec IN (SELECT object_name, object_type | |
FROM user_objects | |
WHERE object_type IN | |
('TABLE', | |
'VIEW', | |
'PACKAGE', | |
'PROCEDURE', |
()[https://www.youtube.com/watch?v=kuqgrvUPc5g]
// this | |
if ( logger.isDebugEnabled() ) { | |
logger.debug("Some code with a parameter: " + param1 + " - " + param2 + " - " + param3); | |
} | |
// becomes this | |
logger.debug("Some code with a parameter: {} - {} - {}", param1, param2, param3"); |
rsync -azP --delete --filter=":- .gitignore" . targethost:/targetdirectory |
mkdir -p ~/.ssh; touch ~/.ssh/authorized_keys; chmod -R 700 ~/.ssh;
cat .ssh/id_rsa.pub | ssh username@host "cat >> ~/.ssh/authorized_keys"
# from https://github.com/nodejs/node/issues/3742#issuecomment-225939382 | |
openssl x509 -inform der -in /Path/to/the.crt -out /Path/to/the/file.pem |