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/request-action@v2.x |
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 -e | |
# This script finds IAM users who have passwords but no MFA. | |
# Deal with them accordingly. | |
# Generate a report | |
aws iam generate-credential-report > /dev/null | |
# Download report. | |
REPORT=$(aws iam get-credential-report) |
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
"analysis": { | |
"filter": { | |
"autocomplete_filter": { | |
"type": "edge_ngram", | |
"min_gram": "1", | |
"max_gram": "20" | |
}, | |
"word_joiner": { | |
"type": "word_delimiter", | |
"catenate_all": true |
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 -e | |
CIRCLE_TOKEN=PRIVATE | |
API_ROOT=https://circleci.com/api/v1 | |
_project=PRIVATE | |
_branch=circle-ci-test | |
URL=${API_ROOT}/project/${_project}/tree/${_branch}?circle-token=${CIRCLE_TOKEN} |
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
# run grep asdf & | |
subprocess.call("pkill -f grep", shell=True) | |
# Returns -15 | |
subprocess.call("pkill -9 -f grep", shell=True) | |
# Returns -9, and grep is killed. |
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
DOT_COM_TO_TODAY = {'kozmo.com': 'postmates'} |
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 |
NewerOlder