Useful for comparing the fingerprint shown by github at https://github.com/settings/keys
against the public key on your machine to see whether it's a match:
ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
This lists the MD5 fingerprint
const fs = require('fs') | |
const utils = require('loader-utils') | |
const defaultOptions = { | |
extensions: ['.png', '.jpg'], | |
filePrefix: 'img/img-', | |
hashLength: 6 | |
} | |
module.exports = function (options) { |
<html> | |
<head> | |
<script src="node_modules/three/build/three.js"></script> | |
<script src="node_modules/three/examples/js/loaders/OBJLoader.js"></script> | |
</head> | |
<body> | |
<script> | |
const model = 'https://s3.amazonaws.com/areo-dev-wjohnson/v1/worlds/a42d78b1-a28a-4d7b-b64e-c1512ea9bac4/models/a4cd6444-fa12-4edf-aba5-8aa72e693bc6-m' | |
fetch(model) | |
.then(response => response.blob()) |
const perf = window.performance | |
class PerformanceTimer { | |
constructor (name) { | |
this.name = name | |
this.markStart = `${name}-start` | |
this.markStop = `${name}-stop` | |
} | |
start () { |
{ | |
/* | |
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and | |
// description. 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": { | |
"prefix": "log", | |
"body": [ |
Useful for comparing the fingerprint shown by github at https://github.com/settings/keys
against the public key on your machine to see whether it's a match:
ssh-keygen -l -E md5 -f ~/.ssh/id_rsa.pub
This lists the MD5 fingerprint
lsof -nP | grep '(deleted)'
A third party Gradle plugin can be difficult to debug. In my case, I couldn't figure out why an input in my build.gradle file wasn't causing the plugin to add a desired task to a build. It's also not straightforward to inspect the source code of a plugin that arrives prebuilt. Fortunately if the plugin is open source, you can breakpoint in the source.
This thread forms the basis of these steps:
Attach to Remote JVM
./gradlew --no-daemon -Dorg.gradle.debug=true app:uploadBugsnagReleaseSourceMaps
, gradle will wait for a debugger to attachI have a NetCDF I downloaded from firesmoke.ca (Bluesky Canadian Wildfire Smoke Forecasting System) and I wanted to retrieve the PM 2.5 value fo a given geo coordinate or nearest lat / lon.
The NetCDF file can't be opened as a textfile as it's a binary format but there's a few tools I used to inspect the data model inside:
Written in typescript and can be run with ts-node
. You'll also need colordiff
(brew install colordiff
). Assumes much about the cdk.out
file structure and CLI output format which may certainly change. This should give you two prompts: one for your environment (and the stack to run the diff for), and one showing you a list of lambda functions where assets have changed for which you can run a colordiff.
Replace the inline stack names, in this case mine are BackgroundJobsStackStaging
and one for prod.
Useful for understanding the impact of deploying bundled code when it's changed. In my case, my lambda code bundles share common code with my API so it can change quite often with no impact on the lambda itself necessarily.