Skip to content

Instantly share code, notes, and snippets.

Avatar

Dan Maas danmaas

View GitHub Profile
@danmaas
danmaas / alb-ingress-iam-policy.json
Last active Dec 27, 2018
AWS IAM policy for alb-ingress-controller (see https://github.com/helm/charts/tree/master/incubator/aws-alb-ingress-controller). This grants the necessary permissions to create and manage ALBs for supporting Kubernetes Ingress resources.
View alb-ingress-iam-policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["acm:DescribeCertificate", "acm:ListCertificates"],
"Resource": "*"
},
{
"Effect": "Allow",
@danmaas
danmaas / leelaz-remote.sh
Last active Dec 26, 2018
Leela Zero remote wrapper script
View leelaz-remote.sh
#!/bin/sh
# this is a wrapper script that runs leelaz via SSH on a fast cloud instance
# suitable as a drop-in replacement for the leelaz command used by the Lizzie GUI
# see general instructions at https://docs.google.com/document/d/1P_c-RbeLKjv1umc4rMEgvIVrUUZSeY0WAtYHjaxjD64/edit
# use p3.2xlarge instance, "Deep Learning Base AMI (Ubuntu) Version 14.0+" (ami-012b19f1736b6aae8)
# login:
# - nvidia-smi (verify GPU exists)
@danmaas
danmaas / myapp-deployment.yaml
Created Dec 11, 2018
Continuous Deployment to Google Kubernetes Engine with CircleCI (Kubernetes Deployment)
View myapp-deployment.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: staging-app
labels:
app: myapp
spec:
template:
metadata:
labels:
@danmaas
danmaas / circleci-config.yml
Last active Feb 8, 2019
Continuous Deployment to Google Kubernetes Engine with CircleCI (config.yaml)
View circleci-config.yml
version: 2
jobs:
build_and_test:
# ... insert your test suite here
docker_push:
# Build app container and push it to the GCR registry
# Note: we want to build and push an image with tags based on both
# the Git commit hash AND the branch name. This way, we can refer to
View NOTICE.txt-discrepancies-20180910
MATTERMOST-WEBAPP NPM DEPENDENCIES:
(first-degree only)
Note: "Missing" means the code is used by mattermost-webapp, but is not mentioned in NOTICE.txt.
- bootstrap-colorpicker: out-of-date copyright info
- bootstrap: removed, but still referenced in NOTICE.txt
- chart.js: out-of-date copyright info
- deep-equal: missing
- exif2css: missing
View mattermost-server-NOTICE2.txt
Mattermost Server
© 2015-present Mattermost, Inc. All Rights Reserved. See LICENSE.txt for license information.
NOTICES:
--------
This document includes a list of open source components used in Mattermost Server, including those that have been modified.
---
@danmaas
danmaas / DockerScrape.ps1
Last active Jul 29, 2018 — forked from cwilhit/DockerScrape.ps1
Scrapes over dockerhub, grabbing the pull counts of all images, the last time "latest" tag was updated, and gets the associated "FROM" image for each container.
View DockerScrape.ps1
#########################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
#########################################################################################
Microsoft.PowerShell.Core\Set-StrictMode -Version Latest
#region variables
@danmaas
danmaas / alb-ingress-singleton.yaml
Last active Oct 3, 2019
Singleton ALB ingress controller fronting Nginx for Amazon EKS
View alb-ingress-singleton.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: "myALB"
labels:
app: "myALBApp"
annotations:
# trigger the alb-ingress-controller
kubernetes.io/ingress.class: "alb"
@danmaas
danmaas / fetch-ses-email.sh
Created Feb 15, 2018
Fetch emails from Amazon S3 and feed to procmail
View fetch-ses-email.sh
#!/bin/bash
# Fetch emails from Amazon S3 (deposited by the Amazon SES receiver's S3 action)
# and feed to procmail. In the spirit of fetchmail, but using S3 instead of SMTP.
BUCKET=my-bucket-name
export AWS_PROFILE=my-aws-profile
PROCMAIL="/usr/bin/procmail"
You can’t perform that action at this time.