This file contains hidden or 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
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
cd | |
sudo apt-get update | |
sudo apt-get upgrade |
This file contains hidden or 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
-- PostgreSQL 9.2 beta (for the new JSON datatype) | |
-- You can actually use an earlier version and a TEXT type too | |
-- PL/V8 http://code.google.com/p/plv8js/wiki/PLV8 | |
-- Inspired by | |
-- http://people.planetpostgresql.org/andrew/index.php?/archives/249-Using-PLV8-to-index-JSON.html | |
-- http://ssql-pgaustin.herokuapp.com/#1 | |
-- JSON Types need to be mapped into corresponding PG types | |
-- |
This file contains hidden or 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
tail = (channel, callback) -> | |
socket = require('zeromq').createSocket('sub') | |
socket.connect("tcp://IP_ADDRESS:5555") | |
socket.subscribe(channel) | |
socket.on 'message', (ch, data) -> callback(JSON.parse(data.toString('utf8'))) | |
tail 'channame', (row) -> console.log(row) |
This file contains hidden or 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
find /tmp -mtime +7 -type f -exec rm -rf {} \; | |
This file contains hidden or 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
current = '' | |
file_count = 0 | |
total_size = 0 | |
output = File.open('output.csv','w') | |
IO.popen('hadoop fs -lsr /user/hive/warehouse').each_line do |line| | |
split = line.split(/\s+/) | |
#permissions,replication,user,group,size,mod_date,mod_time,path | |
next unless split.size == 8 |
This file contains hidden or 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
limit nofile 20000 20000 | |
kill timeout 300 | |
env MONGO_DATA=/var/lib/mongodb/ | |
env MONGO_LOGS=/var/log/mongodb/ | |
env MONGO_EXE=/usr/bin/mongod | |
env MONGO_CONF=/etc/mongodb.conf | |
pre-start script |
This file contains hidden or 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
diff --git a/src/node_script.cc b/src/node_script.cc | |
index ce7761d..1730671 100644 | |
--- a/src/node_script.cc | |
+++ b/src/node_script.cc | |
@@ -57,6 +57,9 @@ class WrappedContext : ObjectWrap { | |
WrappedContext(); | |
~WrappedContext(); | |
+ void Dispose(); | |
+ |
NewerOlder