State Machine
So the events if you triggered them around the circle look like this (latest on top)
#! /usr/bin/env bash | |
function cpuConsumingFunc { | |
echo 'worker started' | |
dd if=/dev/urandom | bzip2 -9 >> /dev/null; | |
} | |
function fulload { | |
x=0 | |
while [ $x -lt $1 ]; do |
echo "hello world!" | gpg --no-default-keyring --keyring /tmp/gpg-$$ --encrypt --armor --auto-key-locate pka -r [email protected] |
# | |
# INSTALLING GEPHI ON UBUNTU TRUSTY | |
# | |
# Edit the sources file and add this to end: | |
# deb http://ppa.launchpad.net/rockclimb/gephi-daily/ubuntu precise main | |
sudo joe /etc/apt/sources.list | |
# You can't just install gephi because it's missing libgoogle-collections-java | |
# And that one's not packaged with Ubuntu anymore as of Trusty at least |
neo4j-sh (?)$ MATCH (p0:Page {title:'Neo4j'}), (p1:Page {title:'Kevin Bacon'}), | |
> p = shortestPath((p0)-[*..6]-(p1)) | |
> RETURN p | |
> ; | |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| p | | |
+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| [Node[6831172]{title:"Neo4j"},:Link[83114204]{},Node[5350170]{title:"San Francisco Bay Area"},:Link[71148851]{},Node[327060]{title:"Barack Obama"},:Link[969118]{},Node[10735]{title:"Kevin Bacon"}] | | |
+------------------------------------------------------------------------------------- |
# == Examples: | |
# | |
# class Post < ActiveRecord::Base | |
# | |
# include Sunspot::Document | |
# | |
# searchable do | |
# text :title |
module Sunspot #:nodoc: | |
module Rails #:nodoc: | |
# | |
# This module adds Sunspot functionality to ActiveRecord models. As well as | |
# providing class and instance methods, it optionally adds lifecycle hooks | |
# to automatically add and remove models from the Solr index as they are | |
# created and destroyed. | |
# | |
module Searchable | |
class <<self |
startup_message off | |
defscrollback 20000 | |
termcapinfo xterm ti@:te@ | |
termcapinfo xterm-color ti@:te@ | |
hardstatus alwayslastline | |
hardstatus string '%{gk}[%{G}%H%{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}]%{=b C}[%m/%d/%y %C %A]%{W}' | |
vbell off | |
#shell -$SHELL | |
logtstamp on | |
logtstamp after 1 |
DROP TABLE octoe_events CASCADE; | |
DROP TABLE octoe_transitions CASCADE; | |
DROP TABLE octoe_states CASCADE; | |
DROP TYPE octoe_state CASCADE; | |
DROP TYPE octoe_vector CASCADE; | |
DROP TYPE octoe_event CASCADE; | |
DROP FUNCTION octoe_vclock(); | |
DROP DOMAIN octoe_token CASCADE; | |
CREATE DOMAIN octoe_token as int4 CHECK(VALUE >= 0 and VALUE <= 65536); |
global | |
log 127.0.0.1 local2 | |
stats socket /etc/haproxy/haproxy.stat mode 777 level admin | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4000 | |
user root | |
group root | |
daemon |