Skip to content

Instantly share code, notes, and snippets.

@lucjross
lucjross / spooky.ino
Created November 9, 2020 23:08
Dark Sorceror of Treats - Arduino program
#include <DFMiniMp3.h>
#include <AccelStepper.h>
#define GUY_PUL_PIN 9
#define GUY_DIR_PIN 10
#define GUY_ENA_PIN 11
#define CONVEY_PUL_PIN 6
#define CONVEY_DIR_PIN 7
#define CONVEY_ENA_PIN 8
#define CONVEY_LS_PIN 5
@lucjross
lucjross / .tf
Last active May 20, 2020 02:54
ALB Listener Rule, weighted Target Groups
resource "aws_alb_listener_rule" "http_80" {
count = local.lb ? 1 : 0
listener_arn = data.aws_alb_listener.http_80.arn
action {
type = "forward"
target_group_arn = aws_alb_target_group.http_80[0].arn
}
condition {
host_header {
values = [local.host_name]

Keybase proof

I hereby claim:

  • I am lucjross on github.
  • I am lucrossodc (https://keybase.io/lucrossodc) on keybase.
  • I have a public key ASBNlVMx8B-NkvugwwblzaUX8DxLVmQc2P7cPpEOyWJejAo

To claim this, I am signing this object:

@lucjross
lucjross / ecs-run
Created January 29, 2020 05:49 — forked from vcastellm/ecs-run
Run task and wait for result in AWS ECS
#!/usr/bin/env bash
set -e
function usage() {
set -e
cat <<EOM
##### ecs-run #####
Simple script for running tasks on Amazon Elastic Container Service
One of the following is required:
Required arguments: