A function hash_json(data)
, accepting a structure loaded from json.load()
and computing a hash.
$ ./hashjson.py
Hash a.json: 8212462b8e9ce805cac2f0758127c5cfd7710baf
Hash b.json: 8212462b8e9ce805cac2f0758127c5cfd7710baf
{ | |
"root": true, | |
"parserOptions": { | |
"sourceType": "module" | |
}, | |
"env": { | |
"es2020": true, | |
"node": true | |
}, | |
"extends": [ |
A function hash_json(data)
, accepting a structure loaded from json.load()
and computing a hash.
$ ./hashjson.py
Hash a.json: 8212462b8e9ce805cac2f0758127c5cfd7710baf
Hash b.json: 8212462b8e9ce805cac2f0758127c5cfd7710baf
Tip
By default npm publish
will publish all files within a working directory - excluding .gitignore
/ .npmignore
/ package-lock.json
.
This is typically fine, but often I find myself leaving un-staged files (e.g. TODO.txt
files) in a repository root and these of course get accidently taken along for the publish ride.
Helper script npm-publish-wrap.sh
will catch calls to npm publish
and:
.git
directory) found.From what I can see, there is no simple way to extract a list of installed Datadog integrations for documentation/etc. purposes.
Here is a lo-fi method of pulling it from the web UI DOM:
A pattern for using concurrent.futures.ThreadPoolExecutor()
to execute a series of "worker" functions in parallel, processing a queue of assigned "work".
How it works:
worker_init()
creates:
threading.Event()
to denote "no more work in queue".futures.ThreadPoolExecutor()
.Python utility to bulk delete GitHub Actions runs for a given workflow, either current or legacy/since removed. The GitHub web UI currently allows removal of individual workflow runs - but this becomes tedious quickly when performed in bulk.
Create a new Personal access token allowing the workflow
scope:
Create a new Personal access token with the following permissions:
delete:packages
read:packages
write:packages
Minimal YAML configuration for enabling Dependabot within a Golang based repository.
Place dependabot.yaml
at .github/dependabot.yaml
within your repository and you should be good to go.