Skip to content

Instantly share code, notes, and snippets.

Avatar

Tisham Dhar whatnick

View GitHub Profile
@whatnick
whatnick / deployed_nodes.yaml
Created Jul 27, 2021
First cut of KubeSpray Kubernetes cluster on old-laptops
View deployed_nodes.yaml
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 Jun 3, 2021
JupyerHub Userpods
View usepods.json
{
"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
Sample GRIB Data Loading
View Explore_ECMWF.ipynb
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 Feb 26, 2021
Dependency Tree Graph of Sandbox
View dependencies.svg
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 Feb 23, 2021
Sandbox packages
View sandbox.txt
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 Dec 11, 2020
Update MCP39F511 Datasheet Updates
View gist:04ecd70f52cc7831a9cb0d0dc16dbfec
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 Aug 10, 2020
Use datacube-core, datacube-ows, datacube-explorer in one large script
View orchestrate.py
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 Jul 20, 2020
OWS Profile with Py-Spy
View profile.svg
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 Jun 30, 2020
QGIS Osgeo4w64 + Msys2 CMakeCache.txt
View 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 Apr 7, 2020
WIP Cognito Authentication for Airflow
View cognito_auth.py
# -*- 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
#