Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

2018/02/20 13:41:29 [INFO] Terraform version: 0.11.3 3802b14260603f90c7a1faf55994dcc8933e2069
2018/02/20 13:41:29 [INFO] Go runtime version: go1.9.1
2018/02/20 13:41:29 [INFO] CLI args: []string{"/home/yasser/WORK/drie/GIT/azure-demo/terraform", "validate", "."}
2018/02/20 13:41:29 [DEBUG] Attempting to open CLI config file: /home/yasser/.terraformrc
2018/02/20 13:41:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2018/02/20 13:41:29 [INFO] CLI command args: []string{"validate", "."}
2018/02/20 13:41:29 [DEBUG] checking for provider in "."
2018/02/20 13:41:29 [DEBUG] checking for provider in "/home/yasser/WORK/drie/GIT/azure-demo"
2018/02/20 13:41:29 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2018/02/20 13:41:29 [DEBUG] found provider "terraform-provider-azurerm_v1.1.2_x4"
@yasn77
yasn77 / helm-upstream-sync.sh
Created January 22, 2020 15:19
Script to keep upstream Kong chart in sync with local chart
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
LAST_SYNC_COMMIT=$(git log -n1 --grep '^\[upstream-sync\]' --pretty='format:%h' helm/)
TMPDIR=$(mktemp -d)
UPSTREAM_ZIP_URL=${UPSTREAM_ZIP_URL:-"https://github.com/Kong/charts/archive/master.zip"}
@yasn77
yasn77 / helm-kong-migrate-plugin-values.py
Created January 27, 2020 01:51
Helm/Kong PR 13 (migrate plugin values)
#!/usr/bin/env python
import ruamel.yaml
import sys
yaml = ruamel.yaml.YAML()
with open(sys.argv[1], 'r') as f:
values = yaml.load(f)
[Unit]
Description=Update opsctl using daily timer
Wants=update-opsctl.timer
[Service]
Type=oneshot
ExecStart=<PATH_TO_UPDATE_OPSCTL_SCRIPT>
[Install]
WantedBy=multi-user.target
apiVersion: v1
kind: Namespace
metadata:
name: mayastor
# https://taskfile.dev
version: '3'
vars:
KUBECONFIG: "/path/to/incuded/kubeconfig.yaml"
tasks:
get-kubeconfig:
desc: "Show Kubeconfig location"
@yasn77
yasn77 / README.md
Last active August 6, 2024 17:11
Install Podman on Mac Silicon Chipset
  1. Install cfkit for Apple Hypervisor for VMs (not using Qemu)
brew tap cfergeau/crc
brew install vfkit
  1. Install Podman + Podman Desktop