Skip to content

Instantly share code, notes, and snippets.

@Sleepdealr
Sleepdealr / update_route53_ip.sh
Last active April 5, 2022 20:56
Update Route53's IP to the server's current IP
#!/bin/bash
ZONE_ID="[REDACTED]"
NAME="[REDACTED]"
AWS_IP=`aws route53 list-resource-record-sets --hosted-zone-id $ZONE_ID | jq '(.ResourceRecordSets[] | select(.Name | test("'$NAME'")) | [.ResourceRecords] )' | jq -r '.[0][0].Value'`
RETVAL=$?
if [ $RETVAL -ne 0 ]; then # Check if exit code doesn't equal 0
exit 0

Best practices for PCB Design

Schematics

  • Power symbols should point upwards
  • Ground symbols should point downards
  • Sections should be labeled
  • Nets should generally not cross
  • Nets should be labeled
  • Either global or regular labels are fine