This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# puma - this script starts and stops the puma daemon | |
# | |
# chkconfig: - 85 15 | |
# description: Description \ | |
# goes here... | |
# processname: puma | |
# config: /etc/puma.conf | |
# pidfile: /home/stanislaw/apps/micro-apps/puma/puma.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
morphlines : [ | |
{ | |
# Name used to identify a morphline. E.g. used if there are multiple | |
# morphlines in a morphline config file | |
id : morphline1 | |
# Import all morphline commands in these java packages and their | |
# subpackages. Other commands that may be present on the classpath are | |
# not visible to this morphline. | |
importCommands : ["com.cloudera.**", "org.apache.solr.**", "org.kitesdk.**"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# open iptables for each node | |
iptables_ng_rule 'cluster' do | |
name '01-cluster-access' | |
chain 'INPUT' | |
rule search(:node,"chef_environment:#{node.chef_environment}").map {|node| "--source #{node[:ipaddress]} --jump ACCEPT" } | |
ip_version 4 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
array=( | |
10.0.0.1 | |
10.0.0.2 | |
10.0.0.3 | |
10.0.0.4 | |
10.0.0.5 | |
) | |
for i in "${array[@]}" | |
do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
npm install ws | |
node demo-websocket-client.js | |
( ---> curl 'localhost:9200/myindex/_search') | |
Ctrl-C | |
*/ | |
var WebSocket = require('ws') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'chef/provisioning/docker_driver' | |
with_chef_server "https://api.opscode.com/organizations/ossom", | |
:client_name => Chef::Config[:node_name], | |
:signing_key_filename => Chef::Config[:client_key] | |
machine_image 'web_server' do | |
recipe 'nginx' | |
machine_options :docker_options => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var kafkaHost="kafka.example.com:2181" | |
var kafka = require('kafka-node'), | |
Producer = kafka.Producer, | |
Consumer = kafka.Consumer, | |
client = new kafka.Client(kafkaHost, "default_topic"), | |
consumer = new Consumer( | |
client, | |
[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM library/java:8-jre | |
ENV NODE_VERSION 4.2.0 | |
ENV NVM_DIR /usr/local/nvm | |
ENV DISPLAY :10 | |
ENV DEBIAN_FRONTEND noninteractive | |
# Replace shell with bash so we can source files | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rspec' | |
require 'json' | |
require 'active_support/all' | |
require 'pry' | |
def input | |
[ | |
{lastmodificationdate:"2012-11-16",userproject:'FCBIZ',totalcost:10}, | |
{lastmodificationdate:"2012-11-16",userproject:'LMS',totalcost:20}, | |
{lastmodificationdate:"2012-11-16",userproject:'NetEngine',totalcost:52}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">Comix Sample</tspan> | |
</label> | |
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
OlderNewer