Skip to content

Instantly share code, notes, and snippets.

View WillEngler's full-sized avatar
🦔

Will Engler WillEngler

🦔
View GitHub Profile
@WillEngler
WillEngler / sensorCommentThread.md
Created July 6, 2016 14:22
Plenario Sensor API Comment Thread

For stakeholders to comment on the draft metadata specification in this wiki page. (I don't think there's a way to comment directly on a wiki page.)

from os import environ
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_admin import Admin
from geoalchemy2 import Geometry
from flask_admin.contrib.geoa import ModelView
app = Flask(__name__)
@WillEngler
WillEngler / howto.md
Last active June 20, 2019 09:33
Build GDAL from source with Postgres support on AWS Linux

How to make custom Elastic Beanstalk AMI

  1. Start environment with your desired configuration (e.g. Python 3.4)
  2. Find generated instance in EC2 console. The AMI ID is your base image.
  3. Launch an instance from the base AMI (It will be in the list of community AMISs)
  4. Provision that instance.
  5. Make an AMI from it. Use the AMI ID in your beanstalk environment configuration.
@WillEngler
WillEngler / gist:b66c9d3cacf00cbefe1379987db9cc9c
Created August 14, 2023 18:46
Dockerfile for container for running Eliu's models
# FROM continuumio/miniconda3:22.11.1
FROM docker.io/bengal1/funcx_bc7c6ce2-cc71-4c53-ad0c-fa0b3ad65854:latest
# Make bash our default shell
# SHELL ["/bin/bash", "-c"]
USER root
# Install necessary packages to run Conda
RUN apt-get update && \
apt-get install -y build-essential && \
@WillEngler
WillEngler / test.py
Created February 21, 2024 22:11
Garden debugging
import docker
import json
import tarfile
import io
client = docker.from_env()
# PUT YOUR IMAGE HERE
my_image_id = ""
# Trying to do this without going through stdout
from garden_ai.mlmodel import ModelMetadata, DatasetConnection
from garden_ai import local_data
dc1 = DatasetConnection(
title="Benchmark Dataset for Locating Atoms in STEM images",
doi="10.18126/e73h-3w6n",
url="https://foundry-ml.org/#/datasets/10.18126%2Fe73h-3w6n",
repository="Foundry",
)