Skip to content

Instantly share code, notes, and snippets.

View davedash's full-sized avatar
🏠
Working from home

Dave Dash davedash

🏠
Working from home
View GitHub Profile
@davedash
davedash / vercel-alias.yml
Created March 15, 2021 05:45
Vercel Alias Github Action
name: Vercel Alias
on: [deployment_status]
jobs:
alias:
if: |
github.event.deployment_status.state == 'success' &&
endsWith( github.event.deployment_status.target_url, '.vercel.app')
runs-on: ubuntu-latest
steps:
- uses: octokit/request-action@v2.x
version: '2'
services:
consul1:
image: "consul:latest"
container_name: "consul1"
hostname: "consul1"
ports:
- "8400:8400"
- "8500:8500"
- "8600:53"
@davedash
davedash / -
Created October 21, 2016 06:00
test
.
├── Saltfile
├── config
│   ├── master
│   ├── pki
│   ├── roster
│   ├── salt.log
│   └── var
├── pki
│   └── ssh
/Users/davedash/code/personal/salt/salt
while True:
// do something forever
if x==1:
break
import csv
from collections import defaultdict
__author__ = 'davedash'
def main():
# Store the most recent/complete data here.
companies = defaultdict(lambda: defaultdict(str))
location ~* (\.php|\.cgi)$ {
deny all;
}
location ~* ^/(cgi-bin|scripts)/ {
deny all;
}
#!/bin/bash
# Script to download all RDS logs for a DB instance
# requires AWS cli and jq.
DB=${1}
if [ -z ${DB} ]; then
echo "Please pass an argument for the database. E.g.:"
echo " ${0} my_rds_db"
fi
hi