Skip to content

Instantly share code, notes, and snippets.

View whatnick's full-sized avatar

Tisham Dhar whatnick

View GitHub Profile
@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
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
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
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!.
@whatnick
whatnick / cognito_auth.py
Created April 7, 2020 22:36
WIP Cognito Authentication for Airflow
# -*- coding: utf-8 -*-
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#