This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
consul1: | |
image: "consul:latest" | |
container_name: "consul1" | |
hostname: "consul1" | |
ports: | |
- "8400:8400" | |
- "8500:8500" | |
- "8600:53" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. | |
├── Saltfile | |
├── config | |
│ ├── master | |
│ ├── pki | |
│ ├── roster | |
│ ├── salt.log | |
│ └── var | |
├── pki | |
│ └── ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/davedash/code/personal/salt/salt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while True: | |
// do something forever | |
if x==1: | |
break | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
from collections import defaultdict | |
__author__ = 'davedash' | |
def main(): | |
# Store the most recent/complete data here. | |
companies = defaultdict(lambda: defaultdict(str)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~* (\.php|\.cgi)$ { | |
deny all; | |
} | |
location ~* ^/(cgi-bin|scripts)/ { | |
deny all; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hi |
NewerOlder