Skip to content

Instantly share code, notes, and snippets.

View dmd's full-sized avatar

Daniel M. Drucker, Ph.D. dmd

View GitHub Profile
#!/bin/bash
# aws ecr-public create-repository --repository-name rapidtide-cloud --region us-east-1
# RETURNED:
REPO=public.ecr.aws/l0v4l2q2/rapidtide-cloud
docker build -t dmd3eorg/rapidtide-cloud .
docker buildx build --push --platform=linux/amd64,linux/arm64 -t dmd3eorg/rapidtide-cloud .
docker login --username AWS --password $(aws ecr-public get-login-password --region us-east-1) $REPO
#!/bin/bash
# aws ecr-public create-repository --repository-name rapidtide-cloud --region us-east-1
# RETURNED:
REPO=public.ecr.aws/l0v4l2q2/rapidtide-cloud
docker build -t dmd3eorg/rapidtide-cloud .
docker buildx build --push --platform=linux/amd64,linux/arm64 -t dmd3eorg/rapidtide-cloud .
docker push dmd3eorg/rapidtide-cloud
AWSTemplateFormatVersion: 2010-09-09
Description: >-
AWS CloudFormation to create the batch job to run rapidtide-cloud,
and IAM roles to allow it access to S3 and Secrets.
Resources:
VPC:
Type: 'AWS::EC2::VPC'
Properties:
CidrBlock: 10.0.0.0/16
InternetGateway:
{
"data": [
{
"id": "1",
"type": "sensor_statuses",
"attributes": {
"assetId": 1,
"inputId": 1,
"lastSensorContact": "2022-08-06T18:02:16.000+00:00",
"minRange": "35.00",
{"data":[{"id":"1","type":"sensor_statuses","attributes":{"assetId":1,"inputId":1,"lastSensorContact":"2022-08-06T18:02:16.000+00:00","minRange":"35.00","maxRange":"37.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":null,"emergencyAlarmMax":null,"overLimit":0,"underLimit":0,"value":"36.49","units":"C","signalStrength":100,"batteryLevel":23},"links":{"self":"/api/v1/sensor_statuses/1"}},{"id":"2","type":"sensor_statuses","attributes":{"assetId":1,"inputId":2,"lastSensorContact":"2022-08-06T18:02:16.000+00:00","minRange":"60.00","maxRange":"100.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":null,"emergencyAlarmMax":null,"overLimit":0,"underLimit":0,"value":"74.62","units":"%RH","signalStrength":100,"batteryLevel":23},"links":{"self":"/api/v1/sensor_statuses/2"}},{"id":"3","type":"sensor_statuses","attributes":{"assetId":2,"inputId":3,"lastSensorContact":"2022-08-06T17:54:04.000+00:00","minRange":"25.00","maxRange":"30.00","preAlarmMin":null,"preAlarmMax":null,"emergencyAlarmMin":nul
movies:
A Cat in Paris (2010).mkv
A Night at the Opera (1935).avi
Airplane.mp4
Apollo 11 (2019).mkv
Apollo 13 (1995).mp4
Apollo 13 (1995).srt
Army of Darkness.avi
Blazing Saddles.avi
Brazil.avi
movies
movies/The Adventures of Robin Hood (1938).mp4
movies/Harry Potter and the Prisoner Of Azkaban (2004).mkv
movies/Harry Potter and the Deathly Hallows Part 1 (2010).mkv
movies/No Time To Die (2021).mp4
movies/Harry Potter and the Sorcerer's Stone (2001) mkv.mkv
movies/The Court Jester (1956).mp4
movies/Brazil.avi
movies/Wakko's Wish (1999) (Animaniacs).mp4
movies/The 5000 fingers of Doctor T.mp4
#!/usr/bin/env python
import random
seed = 0
i = 0
found = False
while True:
seed=seed+1
random.seed(seed)
import random
random.seed(883573)
i = 1
while True:
r = random.randint(0, 1000000)
print(f"{i}: {r}")
if r == 420:
print("nice")
break
#!/usr/bin/env python3
import glob
import os
import sys
import json
import googlemaps
gmaps = googlemaps.Client(key='fucku')