Skip to content

Instantly share code, notes, and snippets.

View hgranillo's full-sized avatar

Horacio Granillo hgranillo

View GitHub Profile
cat image.jpg | base64 | vault write /secret/image.jpg value=-
vault read -format=raw -field=value /secret/image.jpg | base64 --decode > image.out.jpg
@djfdyuruiry
djfdyuruiry / multi_brach_dsl_with_custom_strategy_and_script_path.groovy
Last active November 24, 2021 04:47
Jenkins Job DSL for a Multi-Branch Pipeline that includes Branch Source Strategy & custom Jenkinsfile script path
// A new UUID must be generated for the first run and re-used for your Job DSL, the plugin updates jobs based on ID
UUID uuid = UUID.fromString("dd847135-8391-4f66-a54c-7f8781dc3119") // generate one @ https://www.uuidgenerator.net
multibranchPipelineJob("my_awesome_job") {
displayName "my awesome job"
description "multi-branch pipeline job thingy"
configure {
it / sources / 'data' / 'jenkins.branch.BranchSource' << {
source(class: 'jenkins.plugins.git.GitSCMSource') {
id(uuid)
@matthamil
matthamil / sync_wow_addons.md
Last active December 10, 2022 21:41
Syncing WoW Addons across multiple computers

If you play WoW on multiple computers and have addons installed on one of them, you probably wish you could have the same addons installed on all of your machines. This is a guide to sync addons across multiple machines (and preserve their settings, too!).

Prerequisites

You will need the following:

  1. Google Account
  2. Google Drive storage space equal or greater than the size of your World of Warcraft\_classic_\Interface\AddOns directory.
  3. Addons you have already downloaded in your World of Warcraft\_classic_\Interface\AddOns directory.
@juliohm1978
juliohm1978 / drain.sh
Last active September 20, 2024 07:21
A bash alternative to kubectl drain
#!/bin/bash
##
## This aims to be an alternative to `kubectl drain NODE`, overcoming
## some of its limitations. A GitHub issue was closed a while ago
## without any solution or alternatives.
##
## https://github.com/kubernetes/kubernetes/issues/48307
##
## Even though `kubectl drain` respects PDBs defined by the user,