Skip to content

Instantly share code, notes, and snippets.

View andersy005's full-sized avatar
:octocat:

Anderson Banihirwe andersy005

:octocat:
View GitHub Profile
@andersy005
andersy005 / from.yaml
Created August 14, 2020 05:10 — forked from Daniel-ltw/from.yaml
Github Actions repository_dispatch example
name: Build Artifacts
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
@andersy005
andersy005 / paramiko_yubikey.py
Created August 4, 2020 23:15 — forked from graysonchao/paramiko_yubikey.py
RSA+YubiKey 2FA example using Paramiko
username = raw_input("Enter SSH username:")
yubikey_string = getpass.getpass('Enter YubiKey OTP:')
client = paramiko.client.SSHClient()
# Any means of getting the PKey will do. This code assumes you've only got one key loaded in your active ssh-agent.
# See also:
# - http://docs.paramiko.org/en/1.17/api/keys.html#paramiko.pkey.PKey
# - http://docs.paramiko.org/en/1.17/api/client.html#paramiko.client.SSHClient.connect
my_pkey = paramiko.agent.Agent().get_keys()[0]
sources:
sst_oi_bulk:
driver: netcdf
cache:
- argkey: urlpath
type: file
description: "Optimum Interpolation Sea Surface Temperature (OISST) v2.1 provided by the NOAA/NCEI from their Web site at https://www.ncdc.noaa.gov/oisst/data-access"
parameters:
year:
description: 'Year'
@andersy005
andersy005 / README.md
Last active July 24, 2020 21:57
Xarray-Dask-Zarr Demo using GMET dataset
$ conda env update -f scipy-demo.yml
$ conda activate scipy-demo
$ jupyter labextension install --clean \
                            @jupyter-widgets/jupyterlab-manager  dask-labextension @pyviz/jupyterlab_pyviz
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os.path
import warnings
from glob import glob
from io import BytesIO
from numbers import Number
from pathlib import Path
from xarray.backends.common import AbstractDataStore, ArrayWriter
from xarray.core.utils import close_on_error, is_grib_path, is_remote_uri
from xarray.core import indexing
from xarray import backends, conventions, coding
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andersy005
andersy005 / prefect_coiled_demo.ipynb
Created July 10, 2020 00:39 — forked from cicdw/prefect_coiled_demo.ipynb
Outline of Prefect + Coiled demo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.