Skip to content

Instantly share code, notes, and snippets.

View akutz's full-sized avatar

Andrew Kutz akutz

View GitHub Profile
@akutz
akutz / README.md
Last active October 9, 2017 17:44
A small one-liner to undo the changes made by the Golang dependency tool "dep" when the only change is a file's line-endings.

The Golang dependency tool dep is awesome, but it has this habit of mark files as changed when the only difference is related to line-endings. The following one-line script reverts those changes:

git checkout -- \
  $(for f in $(git status --porcelain | \
    grep " M" | awk '{print $2}'); do \
      if git --no-pager diff $f 2>&1 | head -n 1 | grep -q "warning: CRLF will be replaced by LF"; then \
        echo $f; \
      fi; \
    done;)
@akutz
akutz / goodbye-example.go
Created October 4, 2017 19:20
An example program using the Goodbye library.
package main
import (
"context"
"fmt"
"log"
"net"
"net/http"
"os"
"time"

REX-Ray Build

This gist contains information about REX-Ray build , job .

Key Value
Binary rexray
MD5Sum a37abcac17aba9d9b1171d2debcd8df4
SemVer 0.10.1+2

REX-Ray Build

This gist contains information about REX-Ray build , job .

Key Value
Binary rexray
MD5Sum a37abcac17aba9d9b1171d2debcd8df4
SemVer 0.10.1+2

REX-Ray Build

This gist contains information about REX-Ray build , job .

Key Value
Binary rexray
MD5Sum a37abcac17aba9d9b1171d2debcd8df4
SemVer 0.10.1+2

REX-Ray Build

This gist contains information about REX-Ray build , job .

Key Value
Binary rexray
MD5Sum a37abcac17aba9d9b1171d2debcd8df4
SemVer 0.10.1+2
[1]akutz@pax:gocsi$ for((i=0;i<100;i++)); do csc new MyNewVolume & done
[1] 32631
[2] 32632
[3] 32633
[4] 32634
[5] 32635
[6] 32636
[7] 32637
[8] 32638
[9] 32639
[0]akutz@pax:rexray$ LIBSTORAGE=false DOCKER=false CSI_ENDPOINT=unix:///tmp/csi.sock ./rexray -l debug start --csiDriver csi-vfs
INFO[0000] configuring default CSI module CSI_ENDPOINT=unix:///tmp/csi.sock time=1504561498508
DEBU[0000] trapped signals time=1504561498508
DEBU[0000] loading config buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/Users/akutz/.rexray/etc/rexray.yml ignoreExists=false time=1504561498508 userConfigFileExists=false userConfigFilePath=/Users/akutz/.rexray/rexray.yml
DEBU[0000] cannot find global or user file buildType=client+agent+controller configFileName=rexray globalConfigFileExists=false globalConfigFilePath=/Users/akutz/.rexray/etc/rexray.yml ignoreExists=false time=1504561498508 userConfigFileExists=false userConfigFilePath=/Users/akutz/.rexray/rexray.yml
DEBU[0000] loading config buildType=client+agent
[0]akutz@pax:rexray$ dep status
PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED
cloud.google.com/go * v0.12.0 0f0b842 0f0b842 1
github.com/Azure/azure-sdk-for-go ~7.0.1-beta v7.0.1-beta 0984e06 0984e06 2
github.com/Azure/go-autorest ~7.2.2 v7.2.5 92e199e 92e199e 5
github.com/SermoDigital/jose ^1.1.0 1.1 f6df55f f6df55f 4
github.com/akutz/gofig ^0.1.9 v0.1.9 624e27b 624e27b 2
github.com/akutz/golf ^0.1.3 v0.1.3 8b7106f 8b7106f 2
github.com/akutz/goof ^0.1.2 v0.1.2 2321ba3 2321ba3 1
github.com/akutz/gotil ^0.1.0 v0.1.0 6fa2e80 6fa2e80 1
[2]akutz@pax:rexray$ make dep-ensure
XGOOS=darwin XGOARCH=amd64 GOOS= GOARCH= go run core/semver/semver.go -f mk -o semver.mk
./dep ensure -v
Root project is "github.com/codedellemc/rexray"
111 transitively valid internal packages
62 external packages imported from 35 projects
(0) ✓ select (root)
(1) ? attempt github.com/codedellemc/csi-nfs with 1 pkgs; 1 versions to try
(1) try github.com/codedellemc/csi-nfs@master
(1) ✓ select github.com/codedellemc/csi-nfs@master w/3 pkgs