Skip to content

Instantly share code, notes, and snippets.

@@ -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
!
### Keybase proof
I hereby claim:
* I am logikal on github.
* I am logikal (https://keybase.io/logikal) on keybase.
* I have a public key whose fingerprint is 4AA7 1915 C6EE E036 8E65 F4AF 2A9D 8844 0180 009A
To claim this, I am signing this object:
consul:
image: progrium/consul
name: consul
ports:
- "8500:8500"
- "53:53/udp"
command: -server -bootstrap -ui-dir /ui
registrator:
image: progrium/registrator
@logikal
logikal / config.json
Last active August 29, 2015 14:14 — forked from anonymous/config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#f7941e",
"@brand-success": "#5cb85c",