Skip to content

Instantly share code, notes, and snippets.

just testing my app
Fixed Length Header
Header | Bytes | Type
-------------------------------
version 1 uint
id 32 utf-8 string
action 1 uint
sessionId 36 utf-8 string
token 16 utf-8 string
ctoken 16 utf-8 string
fpath 1 int
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kafka-ingress
spec:
rules:
- host: minikube
http:
paths:
- path: /
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kafka-broker
spec:
replicas: 1
template:
metadata:
labels:
@pidah
pidah / signal.go
Created March 20, 2018 01:37 — forked from reiki4040/signal.go
signal handling example for golang
package main
import (
"fmt"
"os"
"os/signal"
"syscall"
)
func main() {
# kubectl describe rs es-client-3602079238
Name: es-client-3602079238
Namespace: default
Image(s): quay.io/pires/docker-elasticsearch-kubernetes:2.3.5_1
Selector: component=elasticsearch,pod-template-hash=3602079238,role=client
Labels: component=elasticsearch,pod-template-hash=3602079238,role=client
Replicas: 2 current / 2 desired
Pods Status: 2 Running / 0 Waiting / 0 Succeeded / 0 Failed
Volumes:
storage:
---
chain:
-
name: "cloudformation_spec"
ref: "kubernetes.cloudformation_spec"
params:
payload: "{{payload}}"
on-success: "create_cloudformation_stack"
-
name: "create_cloudformation_stack"
from st2actions.runners.pythonrunner import Action
import json
class CloudFormationSpec(Action):
def run(self, payload, config):
# take the payload name and replace any non-alphanumerical characters with "-"
# to create a name for the database
try:
stack_name = "pidah-test-bucket"

Keybase proof

I hereby claim:

  • I am pidah on github.
  • I am peteridah (https://keybase.io/peteridah) on keybase.
  • I have a public key whose fingerprint is F0A6 2FFA 8EB0 3257 D036 EC3A 567B 6442 F90A C229

To claim this, I am signing this object:

@pidah
pidah / keybase.md
Created April 28, 2015 16:01
keybase.md

testing