This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"time" | |
"github.com/hashicorp/yamux" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2018 The Wire Authors | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// https://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
set -eux | |
cd $(mktemp -d) | |
export GOPATH=$(mktemp -d) | |
export PATH=$GOPATH/bin:$PATH | |
git clone https://github.com/ianthehat/godef | |
cd godef | |
git checkout f2eb530fb8dbca312f4661b985ec2ae5ba5e7b3a | |
go install | |
git clone https://github.com/digitalocean/csi-digitalocean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
boooo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- other.go 2016-10-16 16:23:33.000000000 +0300 | |
+++ demo.go 2016-10-16 16:24:27.000000000 +0300 | |
@@ -9,12 +9,12 @@ | |
) | |
var Session *http.Server | |
-var r Router | |
+var r *Router | |
func Run(port string) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func! CloseHandler(channel) | |
while ch_status(a:channel) == 'buffered' | |
echomsg ch_read(a:channel) | |
endwhile | |
endfunc | |
let job = job_start(['go', 'build'], {'close_cb': 'CloseHandler'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/", | |
"Mappings" : { | |
"RegionMap" : { | |
"ap-northeast-1" : { | |
"AMI" : "ami-19fba518" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ifeq ($(strip $(shell git status --porcelain 2>/dev/null)),) | |
GIT_TREE_STATE=clean | |
else | |
GIT_TREE_STATE=dirty | |
endif | |
all: build | |
build: | |
@echo "==> Building the project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"github.com/caglar10ur/lxc" | |
) | |
func main() { | |
// first create and start | |
l := lxc.NewContainer("testing") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
zmq "github.com/pebbe/zmq3" | |
) | |
func main() { | |
responder, _ := zmq.NewSocket(zmq.REP) | |
defer responder.Close() | |
responder.SetIdentity("1123581321") //key to be used |