Emails:
[email protected]
[email protected]
[email protected]
| [credential] | |
| helper = !aws codecommit credential-helper $@ | |
| UseHttpPath = true |
| var subnetIds:String[] = []; | |
| vpc.privateSubnets.forEach((value: ISubnet)=>{ | |
| subnetIds.push(value.subnetId) | |
| }); | |
| const template = new cfninc.CfnInclude(this, "Template", { | |
| templateFile: 'template.yaml', | |
| parameters: { | |
| "ClusterName": cluster.clusterName, | |
| "Subnets": cdk.Fn.split(",", subnetIds.join(",")), |
Add these snippets to vscode yaml snippets to quickly add preconfigured snippets for .pre-commit-config.yaml pre-commit config.
| #!/usr/bin/env python3 | |
| # Usage | |
| ''' | |
| python convert_csv_to_rewrite_map.py file.csv > rewrite_map.txt | |
| ''' | |
| import csv | |
| import sys | |
| from urllib.parse import urlparse |
| # Adapted from https://stackoverflow.com/questions/35869985/datetime-datetime-is-not-json-serializable | |
| import datetime | |
| import json | |
| import boto3 | |
| def datetime_handler(x): | |
| if isinstance(x, datetime.datetime): | |
| return x.isoformat() |
| import json | |
| import MySQLdb | |
| import os | |
| import requests | |
| def handler(event, context): | |
| if event['RequestType'] == 'Create' or event['RequestType'] == 'Update': | |
| parameters = event['ResourceProperties'] | |
| create_db( |
| if !has('nvim') | |
| " Auto install vim-plug | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| endif | |
| if has('nvim') |
| from slackclient import SlackClient | |
| user = "username goes here" | |
| slack_token = os.environ["SLACK_API_TOKEN"] | |
| sc = SlackClient(slack_token) | |
| response = sc.api_call( | |
| "team.accessLogs", | |
| count=1000 | |
| ) |
| ### Keybase proof | |
| I hereby claim: | |
| * I am 1davidmichael on github. | |
| * I am davidmichael (https://keybase.io/davidmichael) on keybase. | |
| * I have a public key ASAIQ3L1qZ2pxi5lrGong4IYEwTRNMdPGfYtyOY-WIFg0wo | |
| To claim this, I am signing this object: |