Skip to content

Instantly share code, notes, and snippets.

@starius
starius / -
Created October 11, 2017 15:41
--- from_386.obdjump 2017-10-11 17:40:14.459226137 +0200
+++ from_amd64.obdjump 2017-10-11 17:40:23.407289448 +0200
@@ -1,5 +1,5 @@
-from_386: file format elf32-i386
+from_amd64: file format elf32-i386
Disassembly of section .text:
@@ -90090,7 +90090,7 @@
@starius
starius / -
Created October 11, 2017 15:40
--- from_386.obdjump 2017-10-11 17:40:14.459226137 +0200
+++ from_amd64.obdjump 2017-10-11 17:40:23.407289448 +0200
@@ -1,5 +1,5 @@
-from_386: file format elf32-i386
+from_amd64: file format elf32-i386
Disassembly of section .text:
@@ -90090,7 +90090,7 @@
+ CGO_ENABLED=0
+ GOOS=linux
+ GOARCH=386
+ /tmp/goroot2/bin/go install -x -a -tags netgo '-ldflags=-s -w' test
WORK=/tmp/go-build708556346
mkdir -p $WORK/runtime/internal/sys/_obj/
mkdir -p $WORK/runtime/internal/
cd /tmp/goroot2/src/runtime/internal/sys
/tmp/goroot2/pkg/tool/linux_386/compile -o $WORK/runtime/internal/sys.a -trimpath $WORK -goversion go1.9.1 -p runtime/internal/sys -std -+ -buildid 79ccd2c09e1f687be33f6d59c7c038a3f98aef0a -D _/tmp/goroot2/src/runtime/internal/sys -I $WORK -pack -asmhdr $WORK/runtime/internal/sys/_obj/go_asm.h ./arch.go ./arch_386.go ./intrinsics_stubs.go ./stubs.go ./sys.go ./zgoarch_386.go ./zgoos_linux.go ./zversion.go
/tmp/goroot2/pkg/tool/linux_386/asm -trimpath $WORK -I $WORK/runtime/internal/sys/_obj/ -I /tmp/goroot2/pkg/include -D GOOS_linux -D GOARCH_386 -o $WORK/runtime/internal/sys/_obj/intrinsics_386.o ./intrinsics_386.s
host=linux/amd64
48124ba7d05e77684c4ea9bdcd42c6b3820110f0933f2f63cabaeb5c77bc9db9 /tmp/gopath/bin/darwin_386/test
2561c7406390f4f4bb6252a297cd48c534254a6b7f231c18b7ba4ce3aeabbf7d /tmp/gopath/bin/darwin_amd64/test
36187b8f7d0a2c103769b702f7b5f33f2e137f7745a83aa163bcff3d89255813 /tmp/gopath/bin/linux_386/test
e82a2672b30ac7a0105dbf0c73e7af0592d84a298b6c2b6e7aa452b1c306a9e0 /tmp/gopath/bin/linux_amd64/test
ce2346f0acad828053ef5057bfaab4bb19c13e686a13b19c10a6695ef2bac0b8 /tmp/gopath/bin/windows_386/test.exe
507bc99d543a6bb71557636613475fd289c4b7a3709cde4cc0700f51854d5e54 /tmp/gopath/bin/windows_amd64/test.exe
host=darwin/amd64
48124ba7d05e77684c4ea9bdcd42c6b3820110f0933f2f63cabaeb5c77bc9db9 /tmp/gopath/bin/darwin_386/test
@starius
starius / -
Created October 2, 2017 23:47
diff --git a/vendor/github.com/pkg/errors/README.md b/vendor/github.com/pkg/errors/README.md
index 413ede1..273db3c 100644
--- a/vendor/github.com/pkg/errors/README.md
+++ b/vendor/github.com/pkg/errors/README.md
@@ -47,6 +47,6 @@ We welcome pull requests, bug fixes and issue reports. With that said, the bar f
Before proposing a change, please discuss your change by raising an issue.
-## License
+## Licence
{
"comment": "",
"ignore": "test",
"package": [
{
"checksumSHA1": "565HJanNKXq45ouz6Yu1DXToLM0=",
"path": "github.com/NebulousLabs/bolt",
"revision": "a22e934a4cae79ba990bd8aa3bc5bdd34f4ef61e",
"revisionTime": "2017-08-23T22:24:46Z"
},
@starius
starius / -
Created October 2, 2017 23:28
v github.com/NebulousLabs/bolt
v github.com/NebulousLabs/demotemutex
v github.com/NebulousLabs/entropy-mnemonics
v github.com/NebulousLabs/errors
v github.com/NebulousLabs/fastrand
v github.com/NebulousLabs/go-upnp
v github.com/NebulousLabs/merkletree
v github.com/NebulousLabs/muxado
v github.com/NebulousLabs/muxado/proto
v github.com/NebulousLabs/muxado/proto/buffer
@starius
starius / -
Created October 1, 2017 01:50
api/host_test.go: minFolderSizeString (line 24) and maxFolderSizeString (line 25) are not ordered.
api/host_test.go: tooSmallFolderString (line 26) and tooLargeFolderString (line 27) are not ordered.
api/host_test.go: tooLargeFolderString (line 27) and mediumSizeFolderString (line 28) are not ordered.
encoding/marshal_test.go: testStructs (line 74) and testEncodings (line 84) are not ordered.
modules/consensus/accept.go: errNoBlockMap (line 18) and errInconsistentSet (line 19) are not ordered.
modules/consensus/accept.go: errOrphan (line 20) and errNonLinearChain (line 21) are not ordered.
modules/consensus/accept_test.go: validateBlockParamsGot (line 19) and mockValidBlock (line 21) are not ordered.
modules/consensus/accept_test.go: mockValidBlock (line 21) and mockInvalidBlock (line 25) are not ordered.
modules/consensus/accept_test.go: parentBlockUnmarshaler (line 32) and parentBlockHighTargetUnmarshaler (line 38) are not ordered.
modules/consensus/accept_test.go: unmarshalFailedErr (line 50) and failingBl
package main
import (
"bytes"
"flag"
"fmt"
"go/ast"
"go/parser"
"go/token"
"io/ioutil"
@starius
starius / -
Created September 27, 2017 00:52
diff --git a/modules/host/contractmanager/dependencies.go b/modules/host/contractmanager/dependencies.go
index abbd23d..2508e2c 100644
--- a/modules/host/contractmanager/dependencies.go
+++ b/modules/host/contractmanager/dependencies.go
@@ -89,6 +89,7 @@ type (
Sync() error
Truncate(int64) error
WriteAt([]byte, int64) (int, error)
+ Fd() uintptr
}