Skip to content

Instantly share code, notes, and snippets.

Avatar
🕳️
∖𝟶𝚊𝚜𝚖

Max McDonnell maxmcd

🕳️
∖𝟶𝚊𝚜𝚖
View GitHub Profile
@maxmcd
maxmcd / .block
Created Oct 14, 2020 — forked from texodus/.block
regular-table / Minesweeper
View .block
license: apache-2.0
@maxmcd
maxmcd / embly.hcl
Created Jan 11, 2020
embly-minimal-example
View embly.hcl
function "hello" {
runtime = "rust"
path = "./hello"
}
gateway {
type = "http"
port = 8080
route "/" {
function = "${function.hello}"
View main.go
package main
var stateAbbrv = []string{
"AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID",
"IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO",
"MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA",
"PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "VI", "WA", "WV", "WI",
"WY",
}
View keybase.md

Keybase proof

I hereby claim:

  • I am maxmcd on github.
  • I am maxmcd (https://keybase.io/maxmcd) on keybase.
  • I have a public key ASAaiTj7IljgqHFVFAAv8iKgaFZUkQ-A9vzCt_xxrkJnWgo

To claim this, I am signing this object:

@maxmcd
maxmcd / Diabolical.c
Created Mar 25, 2018 — forked from Benjamin-Dobell/Diabolical
Pfft, crashes are for chumps
View Diabolical.c
static jmp_buf jmpEnv;
enum {
kPrepareBinaryAddress = 0x44dd,
kMutexBinaryAddress = 0x9090
};
void signal_handler(int n, siginfo_t *info, void *context)
{
longjmp(jmpEnv, 1);
@maxmcd
maxmcd / Dockerfile
Last active Mar 17, 2018
Gstreamer cerbero dockerfiles
View Dockerfile
FROM python:2.7.14
# cerbero needs python 2.7.*
RUN apt-get update && apt-get install -y \
--no-install-recommends \
git \
software-properties-common \
python-software-properties \
yasm \
python-setuptools \
@maxmcd
maxmcd / main.py
Last active Jan 11, 2018
Terminate all stopped instances in all AWS regions
View main.py
import boto3
regions = [
'us-east-2',
'us-east-1',
'us-west-1',
'us-west-2',
'ap-south-1',
'ap-northeast-2',
'ap-southeast-1',
@maxmcd
maxmcd / main.go
Created Nov 11, 2015 — forked from thehowl/main.go
test for gitbao
View main.go
package main
import (
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.GET("/", func(c *gin.Context) {
c.String(200, "Welcome. This is a test.")
})
@maxmcd
maxmcd / main.go
Last active Nov 9, 2015 — forked from skaffen2/main.go
Gitbaotest
View main.go
package main
import (
"fmt"
"net/http"
"time"
"github.com/maxmcd/baodata"
)
@maxmcd
maxmcd / Baofile
Last active Oct 8, 2015
Gitbao Email Signup Example
View Baofile
# Bao admin app
#
PORT 8080