Skip to content

Instantly share code, notes, and snippets.

View dotCipher's full-sized avatar
🏗️
Buildin' stuff

Cody Moore dotCipher

🏗️
Buildin' stuff
  • New York, NY, USA
  • 04:18 (UTC -04:00)
View GitHub Profile
@dotCipher
dotCipher / wsl.conf
Created March 2, 2019 03:56
Auto config default template for WSL
[automount]
enabled = true
root = /mnt/
options = "metadata,umask=22,fmask=11"
mountFsTab = false
[network]
generateHosts = true
generateResolvConf = true
@dotCipher
dotCipher / Hal Public Key
Last active March 10, 2019 16:41
Hal Desktop Public Key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC5clPFsqt8zDKwBcoJNm4NhTM/BW6ORoWWChiz1VsQTXbRt6sMEFmvxIrw5WPNl5n96XM3nfUYR17t9xuJCy3meigsiXAtQmcasi5jV3SY49FotsrgssQ9KFRAVXpfHeo0x+6aWnlDd0pIhbj+hl7yn2CszSBaYyTLa0iur1+oSgXjCz5MFERFFF1MgWNevdY/r2LVlFNMROLSYD4LuqWhZ/D9iyyJqrh5T4/g2QgcbhFy9VY/XFUG1CrvAvkGfYYlYtG1RM1fZE4RDussx4t0U6RKV2f6DdHzcjzstFpTOddMGyXz5wNDSbMqpP9fkCSG0d7F3lyW/wndWAWgHpDS+9x+L86RAEcE5PPwdTnhV55npcITBZLVZ1uDSpBx8dzYwbba3yEz7BdhRStPKiJb3Z56PzcSrRloW8ZJG4fiEwqEE13xgbkVrpPebhDa0WyDV4ObZyKv50/1dtwua0a4qbaf2FqMstY6iSKddSu2YuC+Ebzb2TOqaKQYXlvPExFeaP0koz7a29I0KZTKNOUscPIEw0PAGJ7CBPk/dtH9QITzoD53PJffJ57hD7B8rdAFSazSdYzkoOkMkB7yAMj2Qf0rcQLx3rei9pv1r5KlktF3FCdA2F/ncCESFuRiDdvTKtUIlTMRDG8OOzxFvclaK39/8tco0kz+0xVVDpYwgw== [email protected]
@dotCipher
dotCipher / keybase.md
Last active April 3, 2020 19:14
keybase.md

Keybase proof

I hereby claim:

  • I am dotcipher on github.
  • I am dotcipher (https://keybase.io/dotcipher) on keybase.
  • I have a public key ASCfejWd3kiLlLs4vIwvAPQC9Pq1bVsDBHhIvphhGVYf4go

To claim this, I am signing this object:

@dotCipher
dotCipher / aws_describe_vpc_dependencies.sh
Created October 22, 2020 21:09
Describes all VPC dependencies, which is useful for VPC cleanup
#!/bin/bash
vpc="vpc-xxxxxxxxxxxxx"
aws ec2 describe-internet-gateways --filters 'Name=attachment.vpc-id,Values='$vpc | grep InternetGatewayId
aws ec2 describe-subnets --filters 'Name=vpc-id,Values='$vpc | grep SubnetId
aws ec2 describe-route-tables --filters 'Name=vpc-id,Values='$vpc | grep RouteTableId
aws ec2 describe-network-acls --filters 'Name=vpc-id,Values='$vpc | grep NetworkAclId
aws ec2 describe-vpc-peering-connections --filters 'Name=requester-vpc-info.vpc-id,Values='$vpc | grep VpcPeeringConnectionId
aws ec2 describe-vpc-endpoints --filters 'Name=vpc-id,Values='$vpc | grep VpcEndpointId
aws ec2 describe-nat-gateways --filter 'Name=vpc-id,Values='$vpc | grep NatGatewayId
aws ec2 describe-security-groups --filters 'Name=vpc-id,Values='$vpc | grep GroupId
@dotCipher
dotCipher / helm-ecr-semver-retag.sh
Created February 7, 2024 19:34
Retags a `.dev-` semantic-release helm chart into a semver compliant format using `.rc` instead
#!/usr/bin/env bash
# Retags a helm chart in ECR, finding the chart by name and version,
# then updating the version in the Chart.yaml and pushing the new chart to ECR.
# The version it will re-tag as will be a reformatted semver compliant version.
# ** OSX Note: **
# Make sure to install gnused
# brew install gnused
# Otherwise this won't work with the sed command natively
# sed: 1: "foo-bar ...": invalid command code j