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
  • 15:22 (UTC -05:00)
View GitHub Profile
@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
@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 / 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 / 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 / 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 / Work Public Key
Last active March 10, 2019 16:38
Work Laptop Public Key - https://git.io/fh12g
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDO7e1kS/mEtcTdGKPE4dMm+WltMgJDMDCDjg3oBOtZmeWwrRmUyxzE22pJXjBOCoPcrzAN43hZvjCGk6qMkA+MEsjz2gDfA9hku2le9QA+0HKPVjc6zk5VmTmivEw00m5fnWl3yrCNNMHs0TmoNHwUC/RTuE9OAubOzvkF2SFABEfg8cMIY8oj38tqhfoV9XGPI7iQG/YUwPWpv55YKqJ22QUqvNC0OzG1Bui9doF23TwPFp8qCSyD94jAuK6IuMn/9e+8DkSYlN16QNGkcKqGBkdUrQdiVxzFv701EHEJnDzen1pQWEjBIqVW3qG5Tn8szee4yGugEO6YnkcfFxBG5VOnIu1icTWUT9aP7mdV8xm8BkhDpO5dJKPlgSRN8ZSSM8E9aM32hJDSBS5sfdszmKPa9hZBkEp6Qv2t77FVbWjj8LLffk0wB3KbbtSu+opyb8pIckI015plWvKYZzafJ/8KC0hxieV6jUU2mWIZl7IR7bRlBpbEMEXz4W3jCNrWj/B7FD4iIkctFT6gVYKRtWevVQ6QNGLxJBpcUTFPtNv5PwDflmHKO0QuI6XLv7CcHw1g30gRcJg+JA8qSO0jPFFDlRY5l5wOd/kfIzGNK25lfWsKkbelHhFsCsMS6URcjF8mLB9iB/wqADeRQl57Ej9pddNKoMiwosLIfvbMkw== [email protected]
@dotCipher
dotCipher / idea.sh
Created July 26, 2018 22:00
Intellij idea launcher script, that can handle multiple inputs
#!/bin/sh
# Determine where intellij is installed
DEFAULT_IDEA_TOOLBOX_LOCATION=$(ls -1d ~/Library/Application\ Support/JetBrains/Toolbox/apps/*/*/*/IntelliJ\ IDEA.app 2>&1 | tail -n1)
DEFAULT_IDEA_LOCATION=$(ls -1d /Applications/IntelliJ\ IDEA.app 2>&1 | tail -n1)
IDEA=""
if [[ $DEFAULT_IDEA_TOOLBOX_LOCATION = *"No such file or directory"* ]]; then
IDEA="$DEFAULT_IDEA_LOCATION"
elif [[ $DEFAULT_IDEA_LOCAITON = *"No such file or directory"* ]]; then
@dotCipher
dotCipher / [email protected]
Last active January 11, 2020 03:41
Personal Macbook Public Key - http://bit.ly/ssh-personal-mac
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSFRS/H7tQ6nrU6sLwcmEwi2/WRXq9yku5jCoXPP42YnesPuOi+SFavADCGXrb5FEgLQTO5RFdOPX3EZGkhcw23pVhbnXMV+mw6Waa32PdHSglMZQO3H9EQgHW66As2FDzGckjAnSr8Ua3SXMvMLPEuGKf6NbPBZcWxlk0DvvHlGMOJ4w5GWlxXNdeOqDcc++hZ3yV9Il+xyQZgNySbaazqAs0obnD8Nxbnh0D8K/sx4OwfjTSShoKj7pSdJtc0EtYgUEktqQn1QNZKqXAehdDWrxFdV3c3LzASWXNzVmf+kdxkcbkERTHgHvB6hAoMWIMlcDOF7e/H7QutbJUyQEj [email protected]
@dotCipher
dotCipher / cmoore@cmoore02-mac
Last active July 21, 2018 04:40
Work Laptop Public Key - https://git.io/fNW82
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCrDMKaGllZMfwFKpvRVD3HWuqa0eB0vYZdCW1pSptIe7aiOBMuON81t6sy5jbZK85XWxGf+qpZTMz9rbrz3OsCRFCkRzx+h8mMvG7YjJd9pPhaLbGC8NxOMCQ83mMKk4wv0alWqrV7DLGALDMGn15OtJPkIWQmhqVs0yA/eG4BRt1aZcHHfOOd7WCG4AKDsTjDG9KjtTHiQeW18VQH5STQ7erguGUfz//RWvm3r/nAIKMwJQsQxdxzpMJ3GLlXOHvOJdzWEsnCiexMM+Ss1eKjxVyqLD5Lz02X6zsxm9KMiM3Ik/XKiCcXo7G5k0KZ0pf/y2soGlmr0kcfg7FLtptWtzvHLfaRCgvz7xaVgCMZN6lFYZOXDS4Ms/lB6DOYcy0K8E9hVCYOTXv2QMP2rOynNDrzi3xBDjp7QbzFY35rF3r/MsFAjFgQ5g2H9jsipa6h7Df4imSU26bjMWbo46jtGXxghLJQZf9kQBJCPTEHOnUJlCDSKR9Aav9GBkzjgOCImcCdNAukKeDf65uiTz40s/DMgELn6m5fVexMC9E0SFS7e60V1k7+hzHXcFhx+ORrfMkea1lU/aPegnWa81inJ4oI3iWpYzjG7odQ5df56nbnxB4ARMpCgMX9bG4CMrEk/ywFF5wFNCMKOfldfL3rL2hXD3aTfD+WObgnG0yQfw== cmoore@cmoore02-mac
@dotCipher
dotCipher / make_targets.sh
Created August 23, 2016 01:39
Lists all make targets
make -qp | awk -F':' '/^[a-zA-Z0-9][^$#\/\t=]*:([^=]|$)/ {split($1,A,/ /);for(i in A)print A[i]}'