Skip to content

Instantly share code, notes, and snippets.

View whatnick's full-sized avatar

Tisham Dhar whatnick

View GitHub Profile
@whatnick
whatnick / metrics
Created September 14, 2024 10:34
Retina Metrics while running on AWS VPC CNI with Network Policy enabled
# HELP go_gc_duration_seconds A summary of the wall-time pause (stop-the-world) duration in garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 1.5926e-05
go_gc_duration_seconds{quantile="0.25"} 4.8064e-05
go_gc_duration_seconds{quantile="0.5"} 6.3992e-05
go_gc_duration_seconds{quantile="0.75"} 7.6946e-05
go_gc_duration_seconds{quantile="1"} 0.000109021
go_gc_duration_seconds_sum 0.00057152
go_gc_duration_seconds_count 9
# HELP go_gc_gogc_percent Heap size target percentage configured by the user, otherwise 100. This value is set by the GOGC environment variable, and the runtime/debug.SetGCPercent function. Sourced from /gc/gogc:percent
@whatnick
whatnick / deployed_nodes.yaml
Created July 27, 2021 00:11
First cut of KubeSpray Kubernetes cluster on old-laptops
apiVersion: v1
items:
- apiVersion: v1
kind: Node
metadata:
annotations:
kubeadm.alpha.kubernetes.io/cri-socket: /var/run/dockershim.sock
node.alpha.kubernetes.io/ttl: "0"
projectcalico.org/IPv4Address: 192.168.1.21/24
projectcalico.org/IPv4IPIPTunnelAddr: 10.233.90.0
@whatnick
whatnick / usepods.json
Created June 3, 2021 03:12
JupyerHub Userpods
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@whatnick
whatnick / Explore_ECMWF.ipynb
Created May 29, 2021 08:51
Sample GRIB Data Loading
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@whatnick
whatnick / dependencies.svg
Last active February 26, 2021 11:05
Dependency Tree Graph of Sandbox
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@whatnick
whatnick / sandbox.txt
Created February 23, 2021 06:04
Sandbox packages
absl-py==0.11.0
access==1.1.1
affine==2.3.0
aiobotocore==1.1.2
aiohttp==3.7.2
aioitertools==0.7.0
alabaster==0.7.12
alembic==1.4.3
appdirs==1.4.4
argon2-cffi==20.1.0
@whatnick
whatnick / gist:04ecd70f52cc7831a9cb0d0dc16dbfec
Created December 11, 2020 23:26
Update MCP39F511 Datasheet Updates
I have developed and open-source hardware breakout for the MCP39F511 Energy Monitor ASIC. The KiCAD design files are here. During board bringup I have encountered a couple of issues and I believe the datasheet should be updated to highlight these details and make life easier for future engineers.
1) The MCLR pin is attached to the embedded PIC microcontroller and needs to be pulled high on power up, requires a pull-up resistor <=10k .
2) There are 2 versions of this ASIC with default baud rates of 9600 and 115200 respectively. They are pin compatible, however hard to tell apart on sites such as Digikey / Mouser.
@whatnick
whatnick / orchestrate.py
Created August 10, 2020 00:33
Use datacube-core, datacube-ows, datacube-explorer in one large script
import json
import logging
import os
from datetime import date, datetime, timedelta
from functools import partial
from hashlib import md5
from pathlib import PurePath
from time import sleep
import boto3
@whatnick
whatnick / profile.svg
Created July 20, 2020 03:11
OWS Profile with Py-Spy
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@whatnick
whatnick / CMakeCache.txt
Last active June 30, 2020 07:37
QGIS Osgeo4w64 + Msys2 CMakeCache.txt
# This is the CMakeCache file.
# For build in directory: d:/QGIS/build
# It was generated by CMake: C:/Program Files/CMake/bin/cmake.exe
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.