Skip to content

Instantly share code, notes, and snippets.

View nemosupremo's full-sized avatar

nemosupremo nemosupremo

View GitHub Profile
{
"query": {
"filtered": {
"query": {
"query_string": {
"query": "*",
"default_operator": "AND"
}
},
"filter": {
package main
import (
//"compress/gzip"
"fmt"
//_ "github.com/SlyMarbo/spdy"
"io/ioutil"
"net/http"
"strings"
)
root@cass2:~# dsetool ring
Note: Ownership information does not include topology, please specify a keyspace.
Address DC Rack Workload Status State Load Owns VNodes
10.129.196.6 nephos-1 r1 Unknown Up Normal 455.08 GB 12.24% 256
10.129.196.9 nephos-1 r1 Unknown Up Normal 442.86 GB 11.53% 256
10.129.196.21 nephos-1 r1 Unknown Up Normal 463.47 GB 13.18% 256
10.129.196.23 nephos-1 r1 Unknown Up Normal 429.23 GB 12.71% 256
10.129.196.25 nephos-1 r1 Unknown Up Normal 482.9 GB 13.16% 256
…or create a new repository on the command line
echo "# newrepo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:nemothekid/newrepo.git
git push -u origin master
…or push an existing repository from the command line
<!DOCTYPE html>
<html ng-app="test">
<head>
<title>Performance Comparison for Knockout, Angular and React</title>
<link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.1/css/bootstrap.css" rel="stylesheet" />
<style type="text/css">
* { box-sizing:border-box; }
body { padding:30px 0; }
h2 { margin:0; margin-bottom:25px; }
h3 { margin:0; padding:0; margin-bottom:12px; }
package main
import "time"
import "fmt"
import "sync"
func processThink(n int, workChan chan<- int) {
time.Sleep(time.Duration(n) * time.Second)
workChan <- n
}
comment = React.createClass({
mixins: [React.addons.PureRenderMixin],
getDefaultProps: () ->
return {open:false, onToggle: (() -> )}
toggle: (event) ->
@props.onToggle(my_key_or_something)
render: () ->
FROM golang:1.4.1-wheezy
MAINTAINER ChannelMeter <product@channelmeter.com>
RUN go get github.com/miekg/dns
RUN go get github.com/mesosphere/mesos-dns
RUN cd $GOPATH/src/github.com/mesosphere/mesos-dns && go build -o /opt/mesos-dns
ENV MESOS_MASTERS mesos1:5050,mesos2:5050,mesos3:5050
ENV DNS_REFRESH_SECONDS 50
ENV DNS_TTL 60
{
"args": [],
"env":{
"MESOS_MASTERS":"10.129.196.31:5050",
"DNS_RESOLVERS":"10.129.196.28",
"DNS_TIMEOUT":"60",
},
"constraints": [
[
"hostname",
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: -webkit-linear-gradient(red, blue);
height:6000px
}