Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dankilman on github.
  • I am dankilman (https://keybase.io/dankilman) on keybase.
  • I have a public key ASCdeJrduFE5vfyiqxf0llsrywqYa4VHswCq-DUAtYnDlQo

To claim this, I am signing this object:

@dankilman
dankilman / aria_extensions.py
Created December 6, 2016 12:07
ARIA extension mechanism suggestion
# The current extension mechanism in ARIA is not consistent in different locations of the code base. This is not healty. What follows is
# suggested solution of consolidating the API's to define how different extensions may "register" themselves. Extensions may be parser
# related, CLI commands, etc... The mechanism is general.
# The mechanism is build out of two different phases
# 1. Extension authors should somehow specify which modules in their code contains extensions
# 2. After a module is loaded, extensions then need to register with specific hooks
#
# (1) is addressed by extending the current implementation that was implemented as part of the parser effort. The logic suggested is:
# * Start by iterating all top level packages, for each package if its name starts with `aria_extension_`, simply load it.
# * In addition, iterate all entry_point that are registered under the name `aria_extension` and load them.
<!doctype html>
<html>
<head>
<title>ARIA</title>
<meta name="dashboard" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" />
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/flexboxgrid/6.3.1/flexboxgrid.min.css" />
</head>
<body>
@dankilman
dankilman / update.py
Created May 17, 2016 19:25
update improvement
from cloudify import ctx
@operation
def some_op(**kwargs):
# do wonderful things
def handler(current_runtime_properties):
# make modification
current_runtime_properties.setdefault('prop', []).append('some_value')
root@442f64b8a337:~# rabbitmqctl list_queues
Listing queues ...
00dd3c54da4440c8bcdb7f8b32bd04fd 1
0254fdf54e2945a8937d8eb196992ed4 1
034e2da71c6149db8806fae2fdd865f8 1
037ce410c5234eb59dc55f56d73fe41a 1
039cf1cfbdcc413cbf34d246976983a1 1
03a95319ef83411589e2bb6ae563a76c 1
045c6aa7593348d081c35ddff68dd089 1
04acc4dc36244dae9bf6568e1214d125 1
@dankilman
dankilman / commit-msg
Created November 8, 2014 21:22
Prefix CFY-XXX to commit messages
#!/bin/python
import re
import subprocess
import sys
CURRENT_BRANCH_CMD = 'git symbolic-ref --short HEAD'
JIRA_ISSUE_REGEX = '(CFY-\d+)-.*?'
output_message_path = sys.argv[1]
@dankilman
dankilman / mapping.txt
Last active December 10, 2015 02:38
Object - Column Family mapping
Property | Column Name (and type) in Person column family
---------------------------------------------------------------------------------
person.id | (row key) (type: Long)
person.name | name (type: UTF8)
person.address.streetName | address.streetName (type: UTF8)
person.address.streetNumber | address.streetNumber (type: Long)
@dankilman
dankilman / WritingPerson.java
Created December 24, 2012 12:00
Writing a Person entry
Person person = new Person();
person.setId(123);
// ...
gigaSpace.write(person);
@dankilman
dankilman / Person.java
Created December 24, 2012 11:58
Person and Address
// implementation omitted for brevity
@SpaceClass
public class Person {
@SpaceId
public Long getId() ...
public String getName() ...
public Address getAddress() ...
@dankilman
dankilman / failed.log
Created October 22, 2012 16:06
Atomikos tests logs
System Out
2012-10-21 22:41:31,699 CONFIG [com.gigaspaces.logger] - Log file: /opt/buildserver/quickbuild-4.0.40/workspace/root/xap/trunk/GigaSpaces/CI/logs/2012-10-21~22.41-gigaspaces-service-192.168.9.18-1089.log
No org.slf4j.impl.StaticLoggerBinder found in ClassPath, trying with log4j...
No org.apache.log4j.Logger found found in ClassPath, falling back default...
System Error
Oct 21, 2012 10:41:30 PM org.springframework.test.AbstractSingleSpringContextTests loadContextLocations