Skip to content

Instantly share code, notes, and snippets.

View d4l3k's full-sized avatar
⛰️
Hi

Tristan Rice d4l3k

⛰️
Hi
View GitHub Profile
@d4l3k
d4l3k / output zmqtest
Last active February 5, 2019 19:57
ZMQ TCP Push/Pull message drop on tcp reset
tristanr@tristanr-arch ~/D/zmqtest> go build -v .; and sudo ./zmqtest
2019/02/05 11:55:44 zmqtest.go:93: sent 0
2019/02/05 11:55:44 zmqtest.go:124: received 0
2019/02/05 11:55:44 zmqtest.go:93: sent 100000
2019/02/05 11:55:44 zmqtest.go:124: received 100000
2019/02/05 11:55:44 zmqtest.go:93: sent 200000
2019/02/05 11:55:44 zmqtest.go:93: sent 300000
2019/02/05 11:55:44 zmqtest.go:124: received 200000
2019/02/05 11:55:44 zmqtest.go:93: sent 400000
2019/02/05 11:55:44 zmqtest.go:93: sent 500000
@d4l3k
d4l3k / reference.md
Last active July 25, 2019 19:10
Dropbike.ca API
@d4l3k
d4l3k / tensorflow_api.csv
Created June 12, 2018 19:21 — forked from dustinvtran/tensorflow_api.csv
List of all TensorFlow operations
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 1 column, instead of 2. in line 4.
# TensorFlow r0.10
#
# Building Graph
#
add_to_collection,tf.add_to_collection
as_dtype,tf.as_dtype
bytes,tf.bytes
container,tf.container
control_dependencies,tf.control_dependencies
convert_to_tensor,tf.convert_to_tensor
@d4l3k
d4l3k / fuzz_test.go
Created March 23, 2018 04:27
Generate GRPC request structs for fuzzing.
package integration
import (
"context"
"crypto/rand"
"log"
mrand "math/rand"
"path/filepath"
"reflect"
"strings"
@d4l3k
d4l3k / queue.go
Created December 27, 2017 21:10
firego worker queue tool
package main
import (
"fmt"
"log"
"github.com/pkg/errors"
"gopkg.in/zabawaba99/firego.v1"
)
I171122 10:36:38.859185 1 util/log/clog.go:992 [config] file created at: 2017/11/22 10:36:38
I171122 10:36:38.859185 1 util/log/clog.go:992 [config] running on machine: ariel
I171122 10:36:38.859185 1 util/log/clog.go:992 [config] binary: CockroachDB CCL v1.2-alpha.20171026 (linux amd64, built 2017/10/26 20:12:03, go1.9)
I171122 10:36:38.859185 1 util/log/clog.go:992 [config] arguments: [/usr/bin/cockroach start --certs-dir=/etc/cockroachdb/certs --store=/var/data/cockroachdb/ --port=26257 --http-port=7005 --logtostderr=ERROR]
I171122 10:36:38.859185 1 util/log/clog.go:992 line format: [IWEF]yymmdd hh:mm:ss.uuuuuu goid file:line msg utf8=✓
I171122 10:36:38.859184 1 server/config.go:311 available memory from cgroups (8.0 EiB) exceeds system memory 31 GiB, using system memory
W171122 10:36:38.859557 1 cli/start.go:713 Using the default setting for --cache (128 MiB).
A significantly larger value is usually needed for good performance.
If you have a dedicated server a reasonable setting is --cache=25%
@d4l3k
d4l3k / Luk.ai CLA
Last active September 28, 2017 20:29
Luk.ai Individual Contributor License Agreement
**Luk.ai Individual Contributor License Agreement**
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Luk.ai or its affiliates (“Luk.ai”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Luk.ai in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@luk.ai.
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions.
**Copyright License.** You hereby grant, and agree to grant, to Luk.ai a non-exclusive, perpetual, irrevocable
/usr/local/lib  objdump -T libtensorflow.so
libtensorflow.so: file format elf64-x86-64
DYNAMIC SYMBOL TABLE:
0000000000000000 DF *UND* 0000000000000000 GLIBC_2.3.2 __register_atfork
0000000000000000 w D *UND* 0000000000000000 __gmon_start__
0000000000000000 w D *UND* 0000000000000000 _ITM_deregisterTMCloneTable
0000000000000000 w D *UND* 0000000000000000 _ITM_registerTMCloneTable
0000000000000000 w DF *UND* 0000000000000000 GLIBC_2.2.5 __cxa_finalize
@d4l3k
d4l3k / main.go
Last active July 8, 2017 08:28
nwHacks Registration Machine Learning Pipeline
package main
import (
"context"
"encoding/csv"
"flag"
"fmt"
"log"
"net/http"
"os"
@d4l3k
d4l3k / Rant.md
Created May 2, 2017 06:27
Large Downloadable Games

This is kind of a rant.

I just tried to play league with my friends since classes are now over and we wanted to relax. Queue installing it on our machines. I've only played a few times before so I figured it'd be a relatively simple thing.

Let's walk though the install process.

  1. Download the installer off the site. Unhelpfully the site lists a bunch of different mirrors and defaults to EU West, as I live on the West coast of the united States, it's not a particularly good default. (Riot, why offer a choice at all? Just look it up via geoip, or use a CDN which will do it for you automatically).

  2. Launch the installer and download the client. This takes under an hour and is about 1.4GB in size.