Skip to content

Instantly share code, notes, and snippets.

View ctide's full-sized avatar

Chris Burkhart ctide

View GitHub Profile
Chris-Burkharts-MacBook-Pro-2:Me ctide$ brew install clucene
==> Downloading http://downloads.sourceforge.net/project/clucene/clucene-core-stable/0.9.21/clucene-core-0.9.21.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/clucene/0.9.21 --disable-debug --disable-dependency-tracking
==> make install
/usr/local/Cellar/clucene/0.9.21: 136 files, 4.9M, built in 59 seconds
Chris-Burkharts-MacBook-Pro-2:Me ctide$ l
Chris-Burkharts-MacBook-Pro-2:Locker ctide$ npm install
> clucene@0.0.1 install /development/Locker/node_modules/clucene
15 Aug 17:46:51 - info: [Search] proxying GET /Me/search/query?q=ctide to http://localhost:18044//query?q=ctide
15 Aug 17:46:51 - error: [Locker Search]
15 Aug 17:46:51 - error: [Locker Search] undefined:1
15 Aug 17:46:51 - error: [Locker Search] pment/Locker/Me/
15 Aug 17:46:51 - error: [Locker Search] ^^
15 Aug 17:46:51 - error: [Locker Search] SyntaxError: Unexpected token ILLEGAL
render: function(config){
// default to empty
config = config || {};
var filteredCollection,
contactsEl, contactTemplate, contactsHTML,
searchFilter, addContactToHTML;
var that = this;
filteredCollection = this.collection;
var app = require('express').createServer();
var processInfo;
app.get('/', function(req, res) {
res.writeHead(200, {'content-type':'application/json'});
res.end(JSON.stringify(processInfo));
});
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk) {
1 Sep 19:33:46 - info: [Links] a({"link":"http://www.facebook.com/photo.php?v=2392164203831"}) b({"link":"http://www.facebook.com/photo.php?v=2392164203831"})
1 Sep 19:33:46 - info: [Links] a({"link":"http://www.facebook.com/photo.php?v=2392164203831"}) b({})
1 Sep 19:33:46 - info: [Links] Going to add http://www.facebook.com/photo.php?v=2392164203831
1 Sep 19:33:46 - info: [Links] Added http://www.facebook.com/photo.php?v=2392164203831
1 Sep 19:33:46 - error: [Links] QUEUE SIZE: 3
locker@0.0.0 /development/Locker
├── api-easy@0.2.3
├── async@0.1.9
├── clucene@0.1.2
├─┬ connect@1.1.4
│ ├── mime@1.2.2
│ └── qs@0.3.1
├── dropbox@0.3.1
├─┬ express@2.1.0
│ ├── mime@1.2.2
[ctide@Chris-Burkharts-MacBook-Pro-2 /development/integral/site] [master]:~$ npm install -g forever
> daemon@0.3.2 preinstall /Users/ctide/.nvm/v0.4.11/lib/node_modules/forever/node_modules/daemon
> node-waf configure build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
[ctide@Chris-Burkharts-MacBook-Pro-2 /development/Locker/APps] [master]:~$ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: MergedContacts (new commits)
function parse_git_branch_and_add_brackets {
/usr/bin/git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \[\1\]/'
}
NM="\[\033[0;38m\]" #means no background and white lines
HI="\[\033[0;37m\]" #change this for letter colors
HII="\[\033[0;31m\]" #change this for letter colors
HIB="\[\033[0;32m\]" #change this for bg colors
SI="\[\033[0;33m\]" #this is for the current directory
IN="\[\033[0m\]"
curl -H "content-type: application/json" -d '{"data": [ { "obj" : {"id" : 500, "someData":"BAM"}, "type" : "new", "timestamp" : 1312325283581 }]}' http://localhost:8042/push/test
curl http://localhost:8042/push/test/getCurrent
curl http://localhost:8042/push/test/500