Skip to content

Instantly share code, notes, and snippets.

View WillEngler's full-sized avatar
🦔

Will Engler WillEngler

🦔
View GitHub Profile
@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
@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 / 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.
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 / 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.)

@WillEngler
WillEngler / plenario-sensor-mock.js
Last active April 2, 2016 20:16
What should Plenario's sensor API look like?
// Every network maintainer gets an API key to authenticate POST, PATCH, DELETE requests on sensors and observations in their network
// What a network maintainer would POST to /sensor-observation
{
"data": {
"type": "sensor-observation",
"api-key": "abc123mykey", // Assigned to maintainer of sensor network
"attributes": {
"time": "2016-02-29T18:39:30.519207", // The one attribute that we mandate.
"observation": {
// The maintainer of the sensor network is responsible
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / cabotDrugCrimes2014.json
Created March 11, 2016 04:03
Drug crimes committed in the ward of Cabot in 2014
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / bristolCrimesByWard.json
Last active March 11, 2016 03:57
Crimes committed in Bristol by ward ('count' attribute in each ward is number of crimes)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@WillEngler
WillEngler / asbestos.json
Last active February 18, 2016 23:30
Asbestos-related complaints to the CDPH in 2016, tagged with the zip code the complaint occurred in. (Made with plenar.io)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.