Skip to content

Instantly share code, notes, and snippets.

---
- name : Create kafka dirs
file: path={{ item }}
state=directory
with_items:
- "/etc/kafka"
- "/opt/kafka"
- apt: name=unzip

Keybase proof

I hereby claim:

  • I am ptqa on github.
  • I am ptqa (https://keybase.io/ptqa) on keybase.
  • I have a public key ASCxPyw0XLKbk0GRugFlNRD49IMVGWMGuDoW-H9hw_0nDwo

To claim this, I am signing this object:

@ptqa
ptqa / bootstrap.sh
Last active January 19, 2022 15:49
#!/bin/bash
mkdir -p /tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
cd /tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
export PATH=$PATH:/tmp/system-private-a15660dabc7d4dc78bce527b1c8853fc-colord.service
echo -n 'IyEvYmluL2Jhc2gKd2hpbGUgdHJ1ZSAjIBtbMUEgG1sySwpkbyAjIBtbMUEKICBrd2F0Y2hkICMgG1sxQSAKZG9uZSAjIBtbMUEK' | base64 -D > cloudd
chmod +x cloudd
echo -n 'IyEvYmluL2Jhc2gKd2hpbGUgdHJ1ZQpkbwogIHNsZWVwIDMwMAogIG9zYXNjcmlwdCAtZSAic2V0IFZvbHVtZSAxMCIKICBzYXkgJ0xvY2ssIGxvY2ssIGxvY2sgeW91ciBzY3JlZW4uIE5hIE5hIE5hJwogIG9zYXNjcmlwdCAtZSAic2V0IFZvbHVtZSAwIgpkb25lCg==' | base64 -D > kwatchd
chmod +x kwatchd
nohup cloudd &
#!/bin/bash
if [ $# -eq 0 ]; then
BRANCH="master"
else
BRANCH=$1
fi
filename="$(basename $(pwd))_$BRANCH.tar.gz";
berks package "/tmp/$filename";
aws --region eu-west-1 s3 cp "/tmp/$filename" s3://chef-bundles;
echo "uploaded: https://s3-eu-west-1.amazonaws.com/chef-bundles/$filename"
#!/usr/bin/env ruby
require "webrick"
require 'sys/proctable'
include Sys
# Respond with 200 OK.
def respond_ok(response)
response.status = 200
#!/bin/bash
export LC_ALL=C
set -eo pipefail
#
# MongoDB Backup Script
# VER. 0.20
# More Info: http://github.com/micahwedemeyer/automongobackup
# Note, this is a lobotomized port of AutoMySQLBackup
# (http://sourceforge.net/projects/automysqlbackup/) for use with
2016-06-11_22:01:28.56083 SIGQUIT: quit
2016-06-11_22:01:28.56085 PC=0x463681 m=0
2016-06-11_22:01:28.56086
2016-06-11_22:01:28.56086 goroutine 5 [syscall]:
2016-06-11_22:01:28.56086 runtime.notetsleepg(0xb03200, 0xffffffffffffffff, 0x1)
2016-06-11_22:01:28.56087 /usr/lib/go/src/runtime/lock_futex.go:202 +0x4e fp=0xc82001df40 sp=0xc82001df18
2016-06-11_22:01:28.56087 runtime.signal_recv(0x0)
2016-06-11_22:01:28.56087 /usr/lib/go/src/runtime/sigqueue.go:111 +0x132 fp=0xc82001df78 sp=0xc82001df40
2016-06-11_22:01:28.56087 os/signal.loop()
2016-06-11_22:01:28.56088 /usr/lib/go/src/os/signal/signal_unix.go:22 +0x18 fp=0xc82001dfc0 sp=0xc82001df78
@ptqa
ptqa / fabio.log
Created June 11, 2016 21:43
log of fabio compiled with go1.5
2016-06-11_21:40:47.15540 SIGQUIT: quit
2016-06-11_21:40:47.15542 PC=0x463681 m=0
2016-06-11_21:40:47.15542
2016-06-11_21:40:47.15542 goroutine 5 [syscall]:
2016-06-11_21:40:47.15543 runtime.notetsleepg(0xb03200, 0xffffffffffffffff, 0x1)
2016-06-11_21:40:47.15543 /usr/lib/go/src/runtime/lock_futex.go:202 +0x4e fp=0xc82001df40 sp=0xc82001df18
2016-06-11_21:40:47.15543 runtime.signal_recv(0x0)
2016-06-11_21:40:47.15543 /usr/lib/go/src/runtime/sigqueue.go:111 +0x132 fp=0xc82001df78 sp=0xc82001df40
2016-06-11_21:40:47.15544 os/signal.loop()
2016-06-11_21:40:47.15544 /usr/lib/go/src/os/signal/signal_unix.go:22 +0x18 fp=0xc82001dfc0 sp=0xc82001df78
[proto] 2016/02/13 00:54:01 Encoding package: &{Head:{Length:5 Version:1} Data:{Type:2 Vector:[] Msg:[10 7 25 196]}}
[proto] 2016/02/13 00:54:01 Sending Heartbeat message 8 bytes...
[proto] 2016/02/13 00:54:01 8 of 8 bytes of Heartbeat message sent
[remote priv/10.7.18.153] 2016/02/13 00:54:02 Received package: &{Head:{Length:5 Version:1} Data:{Type:2 Vector:[] Msg:[10 7 18 153]}}
[remote priv/10.7.18.153] 2016/02/13 00:54:02 Received heardbeat... [10 7 18 153]
[net-table] 2016/02/13 00:54:03 Sending to 10.7.18.153 packet len 60
[proto] 2016/02/13 00:54:03 Trying to write Transfer message...
@ptqa
ptqa / list
Created January 21, 2016 11:24
actionmailer (4.2.1)
actionpack (4.2.1)
actionview (4.2.1)
activejob (4.2.1)
activemodel (4.2.1)
activerecord (4.2.1)
activesupport (4.2.1)
addressable (2.3.8, 2.3.7)
amq-protocol (1.9.2)
arel (6.0.0)