Skip to content

Instantly share code, notes, and snippets.

View arielsalvo's full-sized avatar

Ariel Salvo arielsalvo

  • Buenos Aires, Argentina
View GitHub Profile
@arielsalvo
arielsalvo / bootstrap.sh
Last active February 22, 2023 18:10
Bootstrap scripts
#!/usr/bin/env bash
set -euf -o pipefail
## Fresh linux bootstrap
# Copy this file to the new machine
# Should only be used on "local" workstations.
# Modify the parameters below
HOSTNAME=`hostname`
@arielsalvo
arielsalvo / aws_delete-default-vpc.sh
Last active June 24, 2021 20:17 — forked from jokeru/aws_delete-default-vpc.sh
Script to delete all AWS default VPCs from all regions using AWS CLI
#!/usr/bin/env bash
if [ "$AWS_PROFILE" = "" ]; then
echo "No AWS_PROFILE set"
exit 1
fi
LIVERUN=false
if [ "$1" == "confirm" ]; then
@arielsalvo
arielsalvo / crash.log
Created July 30, 2019 14:24
TF IBM-Cloud Loading config file in k8s provider panics
2019/07/29 23:06:11 [INFO] Terraform version: 0.11.14
2019/07/29 23:06:11 [INFO] Go runtime version: go1.12.4
2019/07/29 23:06:11 [INFO] CLI args: []string{"/home/asalvo/.manus/software/terraform/versions/0.11.14/terraform", "plan"}
2019/07/29 23:06:11 [DEBUG] Attempting to open CLI config file: /home/asalvo/.terraformrc
2019/07/29 23:06:11 Loading CLI configuration from /home/asalvo/.terraformrc
2019/07/29 23:06:11 [INFO] CLI command args: []string{"plan"}
2019/07/29 23:06:11 [TRACE] Preserving existing state lineage "87abf53f-e4ff-899f-6954-3670f0c57325"
2019/07/29 23:06:11 [TRACE] Preserving existing state lineage "87abf53f-e4ff-899f-6954-3670f0c57325"
2019/07/29 23:06:11 [DEBUG] Service discovery for app.terraform.io at https://app.terraform.io/.well-known/terraform.json
2019/07/29 23:06:11 [DEBUG] Retrieve version constraints for service tfe.v2.1 and product terraform
#!/usr/bin/env python
"""
Recipe for creating and updating security groups programmatically.
"""
import collections
import boto
base dc=ldap,dc=office
uri ldap://ldap.office
ssl start_tls
tls_cacert /etc/ssl/certs/CA.pem