I hereby claim:
- I am sturadnidge on github.
- I am stu (https://keybase.io/stu) on keybase.
- I have a public key whose fingerprint is D119 6CCC 1CA6 35C7 ADA2 FB55 1528 858E 6E7D 4E0B
To claim this, I am signing this object:
| 'use strict'; | |
| /*jshint node:true */ | |
| // npm install lodash colors minimist request sync-request | |
| var _ = require('lodash'), | |
| colours = require('colors/safe'), | |
| parseArgs = require('minimist'), | |
| request = require('request'), | |
| requestSync = require('sync-request'), |
| 'use strict'; | |
| // npm install cheerio colors moment optimist | |
| // builtins | |
| var http = require('http'), | |
| // 3rd party | |
| cheerio = require('cheerio'), | |
| colors = require('colors/safe'), | |
| moment = require('moment'), |
| function uuidGen() { | |
| var uuid = 'xxxxxxxxxxxxyxxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, | |
| function(c) { | |
| var r = Math.random() * 16 | 0, | |
| v = c == 'x' ? r : (r & 0x3 | 0x8); | |
| return v.toString(16); | |
| }); | |
| return uuid; | |
| } |
| // nice one paul irish + friends | |
| // http://www.paulirish.com/2009/random-hex-color-code-snippets/ | |
| function hexGen() { | |
| return Math.floor(Math.random()*16777215).toString(16) | |
| } |
| 'use strict'; | |
| // npm install colors moment optimist | |
| // builtins | |
| var http = require('http'), | |
| // 3rd party | |
| colors = require('colors/safe'), | |
| moment = require('moment'); |
| 'use strict'; | |
| // npm install cheerio moment optimist | |
| var http = require('http'), | |
| cheerio = require('cheerio'), | |
| moment = require('moment'), | |
| argv = require('optimist') | |
| .usage('\nCheck csgolounge match stats every 30 secs.\n\nUsage: $0') | |
| .demand(['d', 'i', 'm']) |
I hereby claim:
To claim this, I am signing this object:
| 'use strict'; | |
| var db, | |
| MongoClient = require('mongodb').MongoClient; | |
| var database_name = checkExists(process.env.MONGODB_DATABASE) ? process.env.MONGODB_DATABASE : 'test', | |
| env_user = process.env.MONGODB_USER, | |
| env_pass = process.env.MONGODB_PASSWORD, | |
| env_host = checkExists(process.env.MONGODB_HOST) ? process.env.MONGODB_HOST : 'localhost', | |
| env_port = checkExists(process.env.MONGODB_PORT) ? parseInt(process.env.MONGODB_PORT, 10) : 27017; |
| # if the 4th field is 'SRV', then strip trailing dots, set the output field separator to comma and print accordingly | |
| awk '$4 ~ /SRV/ {gsub(/\.( |$)/, " "); OFS = ","; print "srv-host=" $1,$8,$7,$5,$6}' netlogon.dns |
| # Add Cloudera RPM-GPG-KEY and repo | |
| rpm --import http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera | |
| rpm -ivh http://archive.cloudera.com/cdh4/one-click-install/redhat/6/x86_64/cloudera-cdh-4-0.x86_64.rpm | |
| # note: if you want to install a specific version, | |
| # modify /etc/yum.repos.d/cloudera-cdh4.repo accordingly. | |
| # For example, if you want to install 4.2.1, use the following baseurl: | |
| # baseurl=http://archive.cloudera.com/cdh4/redhat/6/x86_64/cdh/4.2.1/ | |
| # Install CDH4 httpfs Base |