Skip to content

Instantly share code, notes, and snippets.

View viccuad's full-sized avatar

Víctor Cuadrado Juan viccuad

View GitHub Profile
heat_template_version: 2014-10-16
#
# you can deploy this template using the following command:
# 'openstack stack create -t example.yaml --parameter key_name=<publicKeyName> <stackName>'
description: Simple template to deploy an external concourse worker
parameters:
index:
type: string
heat_template_version: 2014-10-16
#
# you can deploy this template using the following command:
# 'openstack stack create -t example.yaml --parameter key_name=<publicKeyName> <stackName>'
description: Simple template to deploy an concourse worker
parameters:
key_name:
type: string
constraints:
#!/bin/bash
# usage: $0 <name of app>, ctrl^C to get total failures
function print_results {
echo
echo "Total failures: $fails"
}
trap print_results EXIT
@viccuad
viccuad / clean-lbs.sh
Created August 22, 2019 09:05
clean-lbs.sh for cleaning lbs on openstack
#!/usr/bin/env bash
# usage: $0 <stack name>
# needs deprecated neutron client, the new openstack client doesn't delete the lbs
# see:
# https://bugs.launchpad.net/horizon/+bug/1603458
# https://bugzilla.redhat.com/show_bug.cgi?id=1598409
# https://bugzilla.redhat.com/show_bug.cgi?id=1623041
clean_lb() {
@viccuad
viccuad / morse.go
Last active November 30, 2017 10:55
Send messages encoded in morse using irc notifications as the communication channel (for when somebody has a sound for their irc PM notifications)
package main
// so a work colleague went to an offsite training but left the sound on
// in their workstation: every time somebody writes him a PM the
// colleagues that share a room with him get annoyed.
// this is a simple way to communicate with those colleagues in that room
// by morse code (the sounds of the IRC PM notifications), using weechat
// usage: go run morse.go irc.<irc server>.<colleage handle> "<message>"
### Keybase proof
I hereby claim:
* I am viccuad on github.
* I am viccuad (https://keybase.io/viccuad) on keybase.
* I have a public key whose fingerprint is E3C5 114C 0C5B 4C49 BA03 0991 A259 1E23 1E25 1F36
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am viccuad on github.
* I am viccuad (https://keybase.io/viccuad) on keybase.
* I have a public key whose fingerprint is 4D0A 831A 5223 592B 43F5 FA2F E056 5E92 5702 AA3A
To claim this, I am signing this object: