Skip to content

Instantly share code, notes, and snippets.

View PI-Victor's full-sized avatar
🐕
Life is sad without a Yorkie

Victor Palade PI-Victor

🐕
Life is sad without a Yorkie
View GitHub Profile
➜ cloudflare-tf TF_LOG=DEBUG terraform apply
2025-04-23T17:50:09.362+0200 [INFO] Terraform version: 1.11.3
2025-04-23T17:50:09.362+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-04-23T17:50:09.362+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-04-23T17:50:09.362+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-04-23T17:50:09.362+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-04-23T17:50:09.362+0200 [INFO] Go runtime version: go1.24.1
2025-04-23T17:50:09.362+0200 [INFO] CLI args: []string{"terraform", "apply"}
2025-04-23T17:50:09.362+0200 [DEBUG] Attempting to open CLI config file: /Users/vicp/.terraformrc
2025-04-23T17:50:09.362+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
➜ cloudflare-tf TF_LOG=DEBUG terraform apply
2025-04-16T14:31:45.764+0200 [INFO] Terraform version: 1.11.3
2025-04-16T14:31:45.764+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-04-16T14:31:45.764+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-04-16T14:31:45.764+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-04-16T14:31:45.764+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-04-16T14:31:45.764+0200 [INFO] Go runtime version: go1.24.1
2025-04-16T14:31:45.764+0200 [INFO] CLI args: []string{"terraform", "apply"}
2025-04-16T14:31:45.764+0200 [DEBUG] Attempting to open CLI config file: /Users/vicp/.terraformrc
2025-04-16T14:31:45.764+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
➜ cloudflare-tf TF_LOG=DEBUG terraform apply
2025-04-16T14:07:17.467+0200 [INFO] Terraform version: 1.11.3
2025-04-16T14:07:17.467+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-04-16T14:07:17.467+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-04-16T14:07:17.467+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-04-16T14:07:17.467+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-04-16T14:07:17.467+0200 [INFO] Go runtime version: go1.24.1
2025-04-16T14:07:17.467+0200 [INFO] CLI args: []string{"terraform", "apply"}
2025-04-16T14:07:17.467+0200 [DEBUG] Attempting to open CLI config file: /Users/vicp/.terraformrc
2025-04-16T14:07:17.467+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-04-14T15:48:46.974+0200 [INFO] Terraform version: 1.11.3
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-04-14T15:48:46.974+0200 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-04-14T15:48:46.974+0200 [INFO] Go runtime version: go1.24.1
2025-04-14T15:48:46.974+0200 [INFO] CLI args: []string{"terraform", "apply"}
2025-04-14T15:48:46.974+0200 [DEBUG] Attempting to open CLI config file: /Users/vicp/.terraformrc
2025-04-14T15:48:46.974+0200 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2025-04-14T15:48:46.974+0200 [INFO] Loading CLI configuration from /Users/vicp/.terraform.d/credentials.tfrc.json
```yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-deployment
spec:
replicas: 3
selector:
matchLabels:
app: my-app

Cryptographic Best Practices

Putting cryptographic primitives together is a lot like putting a jigsaw puzzle together, where all the pieces are cut exactly the same way, but there is only one correct solution. Thankfully, there are some projects out there that are working hard to make sure developers are getting it right.

The following advice comes from years of research from leading security researchers, developers, and cryptographers. This Gist was [forked from Thomas Ptacek's Gist][1] to be more readable. Additions have been added from

@PI-Victor
PI-Victor / gist:b0b7337836859d4e3103a7ff70c713ca
Created June 3, 2020 11:14
remove gnome shit shortcuts
for i in {1..9}; do gsettings set "org.gnome.shell.keybindings" "switch-to-application-$i" "[]"; done
Ubuntu:
docker run -v $(pwd):/app -w /app -ti ubuntu:19.04 /bin/bash
clone https://github.com/davatorium/rofi/releases
clone and install https://github.com/libcheck/check/releases
apt-get update && apt-get install -y wget gcc make bison flex libxkbcommon-dev gir1.2-glib-2.0 libglib2.0-dev libx11-xcb1 libxcb-xinerama0-dev libxcb-xinerama0-dev libxcb-util-dev libxcb-randr0 libxcb-randr0-dev libxcb-xrm-dev libxkbcommon-x11-dev libxcb-ewmh-dev libxcb-icccm4-dev libpango1.0-dev libstartup-notification0-dev librsvg2-dev librsvg2-dev
./configure
@PI-Victor
PI-Victor / gist:2129291db55a766a804f44e7ee31de10
Created October 16, 2019 12:48
disable docker iptables for internet exposed interface
iptables -N DOCKER-USER
iptables -I FORWARD -j DOCKER-USER
iptables -A DOCKER-USER -j RETURN
iptables -I DOCKER-USER -i br0 ! -s 192.168.1.1 -j DROP
@PI-Victor
PI-Victor / override.conf
Created July 27, 2019 10:36
Override cgroup docker driver
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --exec-opt native.cgroupdriver=systemd