Skip to content

Instantly share code, notes, and snippets.

View mgdaily's full-sized avatar

Matt Daily mgdaily

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mgdaily
mgdaily / bias_dark.json
Created March 25, 2020 17:44
Bias/Dark Requests
[
{
"id": 1972602,
"location": null,
"configurations": [
{
"id": 2995402,
"constraints": {
"max_airmass": 1.6,
"min_lunar_distance": 30.0,
@mgdaily
mgdaily / deploy_jade_and_dbs.sh
Last active January 24, 2019 18:25
Handy scripts for quickly bringing up a site-software Kubernetes test stack
#!/bin/bash
#deploy jade and required databases for site-software kubernetes test stack
#$1 - directory containing kubernetes deployment configuration files e.g site-software/deployment/
deployment_dir=$1
kubectl apply -f $deployment_dir/pond-db-deployment.yaml
kubectl apply -f $deployment_dir/lake-db-deployment.yaml
kubectl apply -f $deployment_dir/pubsub-db-deployment.yaml
kubectl apply -f $deployment_dir/jade-deployment.yaml

STEP UP CKT

@mgdaily
mgdaily / my_broker.py
Last active August 29, 2018 20:18
Example alert broker for TOM Toolkit's 'Creating an Alert Broker with the TOM Toolkit'
from django import forms
import requests
from tom_alerts.alerts import GenericQueryForm, GenericAlert
from tom_alerts.models import BrokerQuery
from tom_targets.models import Target
broker_url = 'https://gist.githubusercontent.com/mgdaily/f5dfb4047aaeb393bf1996f0823e1064/raw/6fe1680f22b86467c50a21a138177838378eb143/example_broker_data.json'
class MyBrokerForm(GenericQueryForm):
@mgdaily
mgdaily / example_broker_data.json
Last active August 27, 2018 20:00
Example broker data for the TOM Toolkit's 'Creating an Alert Broker with the TOM Toolkit' Tutorial
[
{
"mag":8,
"dec":-20,
"id":1,
"ra":32,
"name":"Tatooine",
"timestamp":"08/27/18 15:43:47",
"score":20
},