Skip to content

Instantly share code, notes, and snippets.

View orkunkl's full-sized avatar
🐲

Orkun Külçe orkunkl

🐲
View GitHub Profile
@orkunkl
orkunkl / keybase.md
Created February 13, 2019 11:58
keybase.md

Keybase proof

I hereby claim:

  • I am orkunkl on github.
  • I am orkunkl (https://keybase.io/orkunkl) on keybase.
  • I have a public key ASDia4t9e5Pzk-qJnDxINLs9culoYoWonI6cb6mbRqfLRwo

To claim this, I am signing this object:

@orkunkl
orkunkl / weave-gogo-proto-err
Created August 13, 2019 14:11
weave-gogo-proto-err
<input>:1:1:1 // Code generated by protoc-gen-gogo. DO NOT EDIT.
<input>:1:1:10 proto "github.com/gogo/protobuf/proto"
<input>:1:1:100
<input>:1:1:1000 return ErrInvalidLengthCodec
<input>:1:1:1001 }
<input>:1:1:1002 if postIndex > l {
<input>:1:1:1003 return io.ErrUnexpectedEOF
<input>:1:1:1004 }
<input>:1:1:1005 m.Str = string(dAtA[iNdEx:postIndex])
<input>:1:1:1006 iNdEx = postIndex
### Keybase proof
I hereby claim:
* I am orkunkl on github.
* I am orkunkulce (https://keybase.io/orkunkulce) on keybase.
* I have a public key ASADEeGoQYxKMLGest-maj7QOPZzRgmP4m2gu7gmAc2HIwo
To claim this, I am signing this object:
@orkunkl
orkunkl / clone-weave.sh
Last active September 19, 2019 13:54
Distribute open-source software: the right and verifiable way
## Clone Weave
git clone [email protected]:iov-one/weave
export WEAVE_DIR=`pwd`/weave
cd $WEAVE_DIR
## Checkout the version you want to build
git checkout <version>
cd $WEAVE_DIR/contrib/apt-cacher
## Docker must be installed
docker build -t eg_apt_cacher_ng .
docker run -d -p 3142:3142 --name test_apt_cacher_ng eg_apt_cacher_ng
gpg --gen-key
>
gpg (GnuPG) 2.2.17; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
./contrib/gitian-build.sh -s [email protected] linux
cd $WEAVE_DIR/bnsd.sigs
ls
<version>-linux README.md
cd <version>-linux
tree
.
├── [email protected]
│   ├── bnsd-linux-build.assert
Done.
gpg: using RSA key E670EA722E008B4492E9AD3A5B7653D33AEF782E
gpg: issuer "[email protected]"
gpg: Can't check signature: No public key
ruseinov: OK
gpg: using RSA key A1C1ECC57FA39EC4A5514DA4BD28388D49EE708D
gpg: issuer "[email protected]"
gpg: Can't check signature: No public key
[email protected]: OK
gpg --expert --full-generate-key
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
(7) DSA (set your own capabilities)
(8) RSA (set your own capabilities)
(9) ECC and ECC