Skip to content

Instantly share code, notes, and snippets.

Hi

Tristan Rice d4l3k

Hi
Block or report user

Report or block d4l3k

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@d4l3k
d4l3k / output zmqtest
Last active Feb 5, 2019
ZMQ TCP Push/Pull message drop on tcp reset
View output zmqtest
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 Mar 20, 2019
Dropbike.ca API
View reference.md
@d4l3k
d4l3k / tensorflow_api.csv
Created Jun 12, 2018 — forked from dustinvtran/tensorflow_api.csv
List of all TensorFlow operations
View tensorflow_api.csv
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 Mar 23, 2018
Generate GRPC request structs for fuzzing.
View fuzz_test.go
package integration
import (
"context"
"crypto/rand"
"log"
mrand "math/rand"
"path/filepath"
"reflect"
"strings"
@d4l3k
d4l3k / queue.go
Created Dec 27, 2017
firego worker queue tool
View queue.go
package main
import (
"fmt"
"log"
"github.com/pkg/errors"
"gopkg.in/zabawaba99/firego.v1"
)
View cockroach.log
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 Sep 28, 2017 — forked from thojansen/SAP CLA
Luk.ai Individual Contributor License Agreement
View Luk.ai CLA
**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
View libtensorflow.so.dump
/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 Jul 8, 2017
nwHacks Registration Machine Learning Pipeline
View main.go
package main
import (
"context"
"encoding/csv"
"flag"
"fmt"
"log"
"net/http"
"os"
@d4l3k
d4l3k / Rant.md
Created May 2, 2017
Large Downloadable Games
View Rant.md

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.

You can’t perform that action at this time.