Skip to content

Instantly share code, notes, and snippets.

echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list
curl https://bazel.build/bazel-release.pub.gpg | apt-key add -
apt-get update -qy && apt-get install bazel -qy
apt-get upgrade bazel -qy
apt-get install python3-numpy python3-dev python3-pip python3-wheel -qy
apt-get install libcupti-dev -qy

IPFN Contracts

Blockchain

IPFN Blockchain is a contract itself, running on infinite amount of nodes with a budget that is slightly limited.

Contract operations

Neurons in the contract can be called publicly or by the owner if contract is private.

@crackcomm
crackcomm / docker-compose.yml
Created March 20, 2017 17:19
NSQ docker-compose
nsqlookup:
image: nsqio/nsq
hostname: nsqlookup
ports:
- "4160:4160"
- "4161:4161"
command: /nsqlookupd
nsq:

Keybase proof

I hereby claim:

  • I am crackcomm on github.
  • I am crackcomm (https://keybase.io/crackcomm) on keybase.
  • I have a public key ASAfr1iPMff7sAuuJXZb2XXMmDW2e1lYQXaxdXwfmoLZUQo

To claim this, I am signing this object:

@crackcomm
crackcomm / 0_reuse_code.js
Created April 22, 2016 21:31
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
"Mozilla/5.0 (compatible; 008/0.83; http://www.80legs.com/webcrawler.html) Gecko/2008032620"
"Accoona-AI-Agent/1.1.2 (aicrawler at accoonabot dot com)"
"Accoona-AI-Agent/1.1.2"
"Accoona-AI-Agent/1.1.1 (crawler at accoona dot com)"
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) AddSugarSpiderBot www.idealobserver.com"
"Mozilla/4.0 (compatible; Arachmo)"
"Mozilla/4.0 (compatible; B-l-i-t-z-B-O-T)"
"Mozilla/5.0 (compatible; BecomeBot/3.0; MSIE 6.0 compatible; +http://www.become.com/site_owners.html)"
"Mozilla/5.0 (compatible; BecomeBot/2.3; MSIE 6.0 compatible; +http://www.become.com/site_owners.html)"
"Mozilla/5.0 (compatible; BeslistBot; nl; BeslistBot 1.0; http://www.beslist.nl/"
@crackcomm
crackcomm / freezer.go
Created December 29, 2015 17:28
Freezer - freezer.go from crawl
package crawl
import "sync"
// Freezer - Makes things freeze.
type Freezer struct {
mutex *sync.RWMutex
freeze bool
notify chan chan bool
}
@crackcomm
crackcomm / main.go
Last active December 12, 2015 22:58
Gographviz example.
package main
import (
"bufio"
"encoding/json"
"flag"
"fmt"
"io"
"os"
"x/glog"
@crackcomm
crackcomm / Dockerfile
Last active October 15, 2017 23:40
Docker RocksDB Installation (+gorocksdb compatibility)
FROM golang:latest
RUN git clone https://github.com/facebook/rocksdb.git /tmp/rocksdb
WORKDIR /tmp/rocksdb
RUN make shared_lib
RUN make install
RUN rm -rf /tmp/rocksdb
ENV CGO_CFLAGS "-I/usr/local/include"
.invalid-css {
background: url("")