Skip to content

Instantly share code, notes, and snippets.

View markwang0's full-sized avatar

Mark Wang markwang0

View GitHub Profile
@markwang0
markwang0 / aws_imelda_dl.sh
Last active October 26, 2023 03:54
Download NWM v2.1 retrospective AWS data for a given period (TS Imelda example)
#!/bin/sh
# https://registry.opendata.aws/nwm-archive/
# This shell script downloads data from the NWM retrospective dataset.
# Files are accessed with their timestamps in the format YYYYMMDDHH00
# Example: channel routing data at 3pm Jan 1 2010:
# "201001011500.CHRTOUT_DOMAIN1.comp"
# Example: channel routing data from Sep 2019:
@markwang0
markwang0 / tf-metal-env.yml
Created November 10, 2022 22:26
tensorflow conda environment optimized for apple silicon
name: tf-metal-env
channels:
- apple
- conda-forge
dependencies:
- python
- pip
- tensorflow-deps
- ipykernel
@markwang0
markwang0 / micromamba_install_arm64.sh
Last active January 3, 2023 23:50
micromamba install script for mac & zsh
#!/bin/sh
# download latest micromamba and install
# https://mamba.readthedocs.io/en/latest/installation.html
# to install arm64 micromamba binary do
mkdir -p ~/.local/bin
curl -Ls https://micro.mamba.pm/api/micromamba/osx-arm64/latest |
tar -xvj -C ~/.local/bin/ --strip-components=1 bin/micromamba