I hereby claim:
- I am wthorp on github.
- I am billt_storj (https://keybase.io/billt_storj) on keybase.
- I have a public key ASAFXadpzUwdewF_RrQTMP2adgHmMvsszjBOS-BQhtHIfAo
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
func main() { | |
file, err := os.Open("test.go") |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
"math" | |
"math/rand" | |
"testing" | |
) | |
func main() { |
package main | |
import ( | |
"debug/dwarf" | |
"debug/macho" | |
"fmt" | |
"os" | |
"strings" | |
) |
package main | |
import ( | |
"crypto/md5" | |
"encoding/base64" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"strings" |
package main | |
import ( | |
"fmt" | |
"reflect" | |
"strconv" | |
"strings" | |
) | |
type s1 struct { |
#!/usr/bin/env python3 | |
# Assumed copyright of Kraken Digital Asset Exchange, published as "krakenfx" Posted on January 31, 2020 | |
# https://blog.kraken.com/post/3662/kraken-identifies-critical-flaw-in-trezor-hardware-wallets/ | |
# reproduced here for research purposes only | |
import hashlib | |
import sys | |
import argparse | |
import binascii |
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"strings" |
// NoIOTransport can be used as an http.Client{Transport: NewNoIOTransport()}, | |
// EG: s3.New(awsSession, aws.NewConfig().WithHTTPClient(&http.Client{Transport: NewNoIOTransport()})) | |
// downloader := s3manager.NewDownloader(awsSession, func(d *s3manager.Downloader) { | |
// d.S3 = s3.New(awsSession, aws.NewConfig().WithHTTPClient(&http.Client{Transport: NewNoIOTransport()})) | |
// }) | |
// uploader := s3manager.NewUploader(awsSession, func(u *s3manager.Uploader) { | |
// u.S3 = s3.New(awsSession, aws.NewConfig().WithHTTPClient(&http.Client{Transport: NewNoIOTransport()})) | |
// }) | |
type NoIOTransport struct { | |
r *mux.Router |
import boto3 | |
import os | |
from boto3.s3.transfer import TransferConfig | |
# Set the desired multipart threshold to an arbitrarily large value. | |
EB = 1024 ** 6 | |
config = TransferConfig(multipart_threshold=EB) | |
session = boto3.session.Session() | |
s3_client = session.client( |