Skip to content

Instantly share code, notes, and snippets.

View pmoranga's full-sized avatar

Pmoranga pmoranga

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@galvesribeiro
galvesribeiro / vault_raft_bu_restore_example.sh
Created November 13, 2020 17:03 — forked from mikegreen/vault_raft_bu_restore_example.sh
Vault raft snapshot backup and restore quick demo
# 2020-06-23
# this shows creating a Vault instance running integrated storage/raft,
# then adding a KV and taking a snapshot
# then kill the raft DB files to simulate a storage failure
# repeat new Vault instance, restore snapshot, unseal and auth with orig keys
# and read some data to show how backup/restore works
# not meant to be a live script to run!
# this uses the vault_config.hcl from https://gist.github.com/mikegreen/c2df5eea2283f0dbc5f3a5d3650536fd
@blake
blake / create-envoy-systemd-template-unit.md
Last active July 29, 2024 03:13
systemd template unit for envoy

Create a systemd template unit for Envoy proxies with Consul

This brief tutorial will walk through the process of creating a systemd template unit file for starting Envoy sidecars for use with Consul service mesh.

Template unit files allow systemd to address multiple units from a single configuration file. You can call a systemd template unit file using a special format to use this feature:

@JamieMagee
JamieMagee / ct.yaml
Last active January 10, 2025 02:10
GitHub Pages Helm repository
helm-extra-args: --timeout 600
check-version-increment: true
debug: true
/*
* Print storage details for all collections and indexes.
* Supports sharded clusters
*
* @author [email protected]
* @version 1.3
* @updated 2022-11-21
*
* History:
* 1.3 - Filter out admin, local and config databases
@scodx
scodx / config.yml
Last active April 16, 2022 14:58
traefik example with letsencrypt and docker and external services
# place this file in the `config` folder
http:
services:
# the urls must be accesible from the traefik installation, either native or as a container
rundeck:
loadBalancer:
servers:
- url: http://172.17.0.1:4440
php-tt:
version: '3.7'
services:
myapp:
image: myapp
ports:
- "3001:3001"
labels:
com.datadoghq.ad.check_names: '["prometheus"]'
com.datadoghq.ad.init_configs: '[{}]'
com.datadoghq.ad.instances: '[{"prometheus_url": "http://%%host%%:3001/actuator/prometheus", "extra_headers": {"Accept": "text/plain"}, "namespace": "local.test","metrics": ["jvm*"]}]'
@skinny
skinny / 00_readme.md
Last active July 3, 2024 19:52
ArgoCD & Kapitan configuration

Using ArgoCD together with Kapitan is actually pretty easy and only requires the kapitan binary in the argo-repo-server and a ConfigManagement plugin in ArgocD (https://argoproj.github.io/argo-cd/user-guide/config-management-plugins/)

1. Edit argocd-cm configmap and add :

  configManagementPlugins: |
    - name: kapitan
      init:
        command: [sh]
        args: ["kapitan-base-compile.sh"]
@mohanpedala
mohanpedala / helm-cheatsheet.md
Created August 13, 2019 22:50 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@TomLous
TomLous / setup.sh
Last active March 16, 2025 11:55
Clean Install
defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.Finder AppleShowAllFiles true
# TODO: Copy id_rsa keys to .ssh (copy from file)
chmod 600 ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa.pub
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"