Skip to content

Instantly share code, notes, and snippets.

@logikal
logikal / Dubai_HoE.txt
Created October 6, 2016 16:29
Head of Engineering - Devops (Dubai)
Dear $PERSON,
I hope you're well and don't mind me contacting you directly like this. How are things going at $JOB? I see you've been there a while, so was keen to reach out about an opportunity based here in Dubai that you look great for, for a Head of Engineering - DevOps project!
Our client is backed by the people that built the worlds tallest building, the Burj Khalifa and their about to have a similar impact on the Digital space, by building a world class E-Commerce Platform. They have the biggest Polymer/Scala project taking off Globally at the moment.
They have already attracted top talent from some of the biggest Digital organisations in the world, and now they are building an elite Development Team. I wanted to speak to you about a Head of Engineering role I have here that I thought you would be a good fit for?
Based in Dubai, a stunning package is on offer that includes –
Very competitive tax-free salary
@logikal
logikal / ttl_warn_to_crit.rb
Created July 25, 2016 23:02
A sensu mutator to turn warnings into criticals when the TTL has expired.
#!/usr/bin/env ruby
#
# Mutate TTL results with warnings to critical status
# Because Sensu hardcodes a stale TTL check to status=1
# we'll never get paged for TTL failures.
# Refer to https://github.com/sensu/sensu/issues/1166
#
# Cribbed from the example at https://sensuapp.org/docs/0.25/reference/plugins.html#example-plugins
require 'json'
@logikal
logikal / consul.json
Last active May 24, 2016 19:12
y u no statsd, consul?
{
"data_dir": "/var/lib/consul/",
"addresses": {
"rpc": "127.0.0.1"
},
"ports": {
"dns": 8600,
"http": 8500,
"rpc": 8400,
"serf_lan": 8301,
@@ -290,15 +290,7 @@ static struct neighbour *neigh_alloc(struct neigh_table *tbl, struct net_device
goto out_entries;
}
- if (tbl->entry_size)
- n = kzalloc(tbl->entry_size, GFP_ATOMIC);
- else {
- int sz = sizeof(*n) + tbl->key_len;
-
- sz = ALIGN(sz, NEIGH_PRIV_ALIGN);
// http://openenergymonitor.org/emon/node/1267
//inclue lcdLibrary
#include
//intialize the library with the numbers of the interface pins
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
//set input pin
int sensorPin = A4;
@logikal
logikal / yum_logs.log
Created January 11, 2016 23:36
st2actionrunner not installing correctly
[root@default-centos-6-chef-11 bin]# yum info stactions
Loaded plugins: security, verify
Error: No matching Packages to list
[root@default-centos-6-chef-11 bin]# yum info st2actions
Loaded plugins: security, verify
Installed Packages
Name : st2actions
Arch : noarch
Version : 1.2.0
Release : 8
@logikal
logikal / answers.yaml
Last active January 8, 2016 00:25
Stackstorm answer file ssl_cert, ssl_key examples. Chef code assumes you have your preferred cert and key on disk somewhere already.
---
st2_ssl_cert: ! '-----BEGIN CERTIFICATE-----
LINE 1
LINE 2
LINE 3
LINE 4
@logikal
logikal / ruel_stracktrace.log
Created December 28, 2015 22:05
Trying to add the rule from https://github.com/logikal/packtest/blob/master/rules/inception.yaml results in the following stacktrace. completely possible that things like 'route' are not configured correctly.
2015-12-28 13:49:37,796 ERROR [-] Failed registering rule from /opt/stackstorm/packs/packtest/rules/inception.yaml.
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/st2common/bootstrap/rulesregistrar.py", line 110, in _register_rules_from_pack
rule_api.validate()
File "/usr/lib/python2.7/dist-packages/st2common/models/api/base.py", line 85, in validate
allow_default_none=True)
File "/usr/lib/python2.7/dist-packages/st2common/util/schema/__init__.py", line 223, in validate
jsonschema.validate(instance=instance, schema=schema, cls=cls, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonschema/validators.py", line 478, in validate
@logikal
logikal / rabbitmq_outline.md
Last active August 29, 2015 14:25
RabbitMQ talk
  • RabbitMQ
    • A Young Lady's Primer on Distributed Queueing
      • Concepts
        • Publishers
        • Consumers
        • The queue
      • "Networks" or "Why god hates you, and everything you think you know is wrong"
        • Exactly Once Delivery
        • More-than Once Delivery
  • Less-than Once Delivery
@logikal
logikal / running-config.txt
Created July 10, 2015 22:55
vEOS configuration - rbeapi doesn't support trunk groups
switch2#show running-config
! Command: show running-config
! device: switch2 (vEOS, EOS-4.15.0F)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
hostname switch2
!