Skip to content

Instantly share code, notes, and snippets.

{"time":"2016-04-26T14:28:31.773Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"proxy response 200"}
{"time":"2016-04-26T14:28:31.773Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"10.65.74.7 - - [26/Apr/2016:14:28:31 +0000] \"GET /d/deep-extend/_attachments/deep-extend-0.4.1.tgz HTTP/1.1\" 200 - \"install\" \"npm/3.8.1 node/v4.2.4 linux x64\" \"application/x-tar, application/vnd.github+json; q=0.1\" 1 ms"}
{"time":"2016-04-26T14:28:31.788Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"package read handler; package=/isparta"}
{"time":"2016-04-26T14:28:31.866Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"forwarding 200 response from couchdb"}
{"time":"2016-04-26T14:28:31.868Z","hostname":"npm-2522174-4-68833243","pid":4768,"level":"info","name":"npme","message":"10.65.74.8 - - [26/Apr/2016:14:28:31 +0000] \"GET /isparta HTTP/1.1\" 200 54316 \"i
{
"fullName": "LabsSmartSourcing/mcse_lite_oracle_dbaas",
"orgName": "Smart Sourcing Team",
"teams": [
"Owners"
],
"peblTeam": "SmartSourcing",
"pipelineName": "MCSE_Lite_DbaaS",
"pillars": [],
"ownerLogin": "LabsSmartSourcing",
File webResources = new File("/tmp/eded");
WebServer server = new WebServerBuilder()
.port(9000)
.at("/").resource(webResources.getAbsolutePath())
.build();
server.start();
WebServer server = new WebServerBuilder()
.port(13033)
.serve("/").at("/tmp/eded")
.build();
System.out.println("Directory Listing is for:" + dir + ":on port:" + port + ":");
server.start();
public void test() throws Exception {
Path wd = Files.createTempDirectory("watcher-test");
SyncWatcher sw = new SyncWatcher(wd);
// sw.watch();
(new Thread(sw.runner)).start();
Thread.sleep(10000);
java.lang.ClassCastException: sun.nio.fs.UnixPath cannot be cast to java.io.File
at io.takari.watcher.OsxDirectoryWatcher.processEvents(OsxDirectoryWatcher.java:50)
at com.walmartlabs.looper.sync.SyncWatcher.watch(SyncWatcher.java:43)
at com.walmartlabs.looper.sync.SyncWatcher$Runner.run(SyncWatcher.java:59)
at java.lang.Thread.run(Thread.java:745)
@mcqueenorama
mcqueenorama / gist:c63f0c2aa332558515d5
Last active September 21, 2015 00:25
basic auth token source for github
package main
import (
"fmt"
"net/url"
"os"
"github.com/google/go-github/github"
"golang.org/x/oauth2"
)
@mcqueenorama
mcqueenorama / gist:20e2439fa5ac0b1b80da
Last active August 29, 2015 14:24
github oauth2 basic auth WIP
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"os"
"github.com/google/go-github/github"
@mcqueenorama
mcqueenorama / gist:8c7864a67b24eac38ab8
Last active August 29, 2015 14:20
sample runproc output
l-sclX1Q0DV7-M:dt_ansible bmcquee$ circuit ls -d circuit://10.9.201.38:11022/4903/Q7419172fc40c193d / | parallel cat df.in \| circuit runproc --anchors -d circuit://10.9.201.38:11022/4903/Q7419172fc40c193d {}
/Xd4ed1096eec448a6/bin/df Filesystem 1K-blocks Used Available Use% Mounted on
/Xd4ed1096eec448a6/bin/df /dev/vda1 10219384 2411468 7288800 25% /
/Xd4ed1096eec448a6/bin/df tmpfs 11915816 0 11915816 0% /dev/shm
/Xd4ed1096eec448a6/bin/df /dev/mapper/npm--eph-volume--4354455--2 175456944 14238556 152305700 9% /app
/Xba25faad440badd0/bin/df Filesystem 1K-blocks Used Available Use% Mounted on
/Xba25faad440badd0/bin/df /dev/vda1 10219384 2411404 7288864 25% /
/Xba25faad440badd0/bin/df tmpfs 11915816 0 11915816 0% /dev/shm
/Xba25faad440badd0/bin/df /dev/mapper/npm--eph-volume--4354455--1
@mcqueenorama
mcqueenorama / gist:8d99314b30d3b1a5777c
Last active August 29, 2015 14:15
couchdb start prob
Apache CouchDB 1.6.0 (LogLevel=info) is starting.
[error] [<0.101.0>] {error_report,<0.31.0>,
{<0.101.0>,crash_report,
[[{initial_call,{couch_file,init,['Argument__1']}},
{pid,<0.101.0>},
{registered_name,[]},
{error_info,
{exit,
{{badmatch,{error,eacces}},
[{couch_file,init,1},