Skip to content

Instantly share code, notes, and snippets.

@shaftoe
shaftoe / gist:7584009
Created November 21, 2013 15:46
My most hated Puppet code line ever
if($geo_cluster != '' and $stage_name != '' and exist_key($portal_config::config[$geo_cluster][$stage_name], "thomas_tomcat_fix") and $portal_config::config[$geo_cluster][$stage_name]["thomas_tomcat_fix"]) {
#!/usr/bin/python
# running Python 2.7.5+
def testing():
print('testing')
import gtk
gtk.timeout_add(100, testing)
gtk.main()

Keybase proof

I hereby claim:

To claim this, I am signing this object:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCx4HC/rUHJvpaLds5ZJDncX3P90S/EwLtPnPQouHDirEe3TNQCwdGajteWkwOj+UZ0cgxf+BTu1bqR4R1FeZwDoa58zwpXoVKf2H+qcFWMXY5AWX0CLja0P2M9E52QBMgCKPy3c/6bTyhvmkT15ak5zTbQK0OnfITlxz/Y+FEpod7auIZICBO59Cu/WDJ+aScsWXsW/j6UY4+E5qA3UnPl8GC8ZkxrE1guykjfkrDukZ3cSCoSTykidx3p8sATiHo3y9A2+5Iq2lWd7SYsrkWJrtj2S/o/qd5+gWYV4ABNvz23r3el13YUXKbPIT/hYc0gw7JTehMAdKt12/0pIbCiVw1uiKRkKlXU8DfXo2w8X9X3xvJ/VS878CSDPQeTxD7FfQbSwpa6WymzZCXQT7+3ewXPJv0DlCs6j9MpeepXuvi7dNdRU2HPu6DRXNclxO63QjuYitr5X91HWNToTb43NxiEZjn8XwIcUURVc9VA20JxwcAK/Rl9Few36QgbiW73RpJuo1+SNMogukrcYAJOoila5nHnGR7woLAq3i9oCKcLLsNV+CpGffelc+fM4rVjeBMjVoP3DpvA184fDdYOwmLOX1k+KbfjJWCgJLuNOuw6/JkfzzzLLXtkveZ3z0GBJQjhnFx1alCKUEyVRZBQTcoCrTNP2vVl58waS1EjrQ==
# Welcome to Sonic Pi
use_bpm 100
live_loop :tick do
play :c
sleep 0.5
play :b3
sleep 0.5
end
{
"name": "lib",
"extraneous": false,
"path": "/usr/local/lib",
"_dependencies": {},
"devDependencies": {},
"peerDependencies": {},
"dependencies": {
"@babel/cli": {
"version": "7.10.3",
@shaftoe
shaftoe / main.go
Last active January 23, 2021 13:17
aws-sdk-go-v2 service/ec2: VolumeAvailableWaiter.Wait() doesn't seem to work as expected
package main
import (
"context"
"log"
"time"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/ec2"
"github.com/aws/aws-sdk-go-v2/service/ec2/types"