Skip to content

Instantly share code, notes, and snippets.

View cattz's full-sized avatar

Xabier Davila cattz

  • Xabarin
  • Amsterdam
  • 09:15 (UTC -12:00)
View GitHub Profile
@cattz
cattz / gist:d1a6557cfa4153c9f1993c00caf1120e
Created December 19, 2020 23:04 — forked from cdown/gist:1163649
Bash urlencode and urldecode
urlencode() {
# urlencode <string>
old_lc_collate=$LC_COLLATE
LC_COLLATE=C
local length="${#1}"
for (( i = 0; i < length; i++ )); do
local c="${1:$i:1}"
case $c in
@cattz
cattz / centos_vmware_guestinfo.sh
Created October 9, 2020 08:35 — forked from p0rkjello/centos_vmware_guestinfo.sh
cloud-init-vmware-guestinfo
# required when using cloud-init on vmware
# setup on image creation provisioner or ks.
sudo yum install epel-release -y
sudo yum install python-netifaces -y
sudo yum install python-pip -y
# the rpm is not the current release.
sudo curl -sSL https://raw.githubusercontent.com/vmware/cloud-init-vmware-guestinfo/master/install.sh | sudo sh -
@cattz
cattz / Jenkinsfile
Created April 2, 2020 15:35 — forked from gazoakley/Jenkinsfile
Jenkinsfile for running Terraform
pipeline {
agent any
parameters {
string(name: 'environment', defaultValue: 'default', description: 'Workspace/environment file to use for deployment')
string(name: 'version', defaultValue: '', description: 'Version variable to pass to Terraform')
booleanParam(name: 'autoApprove', defaultValue: false, description: 'Automatically run apply after generating plan?')
}
environment {
@cattz
cattz / keybase.md
Created February 17, 2020 14:07
KeyBase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: