Skip to content

Instantly share code, notes, and snippets.

View kpucynski's full-sized avatar
🥑
Why so devops?

Karol Pucyński kpucynski

🥑
Why so devops?
View GitHub Profile
@kpucynski
kpucynski / dishy.md
Created February 22, 2023 00:00
USG-3P with dual-wan Startlink & UMTS

USG-3P with dual-wan Startlink & UMTS

Static routes for Startlink Dishy management and UMTS modem admin page. WAN1 (eth0) -> Startlink WAN2 (eth2) -> UMTS

configure
set protocols static table 6 interface-route 192.168.100.1/32 next-hop-interface eth0
set protocols static table 7 interface-route 34.120.255.244/32 next-hop-interface eth0

Manual terraform state upload to AWS S3

aws --profile profile s3 cp state.json s3://terraform-state/path/ --sse aws:kms
LOCK_HASH=$(md5sum state.json | awk '{ print $1 }')
aws --profile profile dynamodb update-item --table-name terraform-state-lock-dynamodb --key '{"LockID": {"S": "terraform-state/path/state.tfstate-md5"}}' --attribute-updates '{"Digest": {"Value": {"S": "'$LOCK_HASH'"},"Action": "PUT"}}' --return-values UPDATED_NEW

Jenkins S3 plugin configuration with Helm

If you will want to add Jenkins S3 plugin (or any other plugin) to your Jenkins Configuration as Code deployment you may hit problem that the plugin cannot be configured easily using YAML.

In such case you can go with groovy init script. Just add them to your values.yaml, for example:

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

Import certificate with own CA to Unifi CloudKey

I was trying to import certs with own CA according to Ubiquity docs, but it fails. Probably because my CA was self-signed. So I've had to do it manually.

You should consider making backup, really

Unifi Controller