Skip to content

Instantly share code, notes, and snippets.

Justine Tunney jart

Block or report user

Report or block jart

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
View microarchitectures.txt
# Noteworthy CPU Features
SSE 128-bit vector instructions (e.g. addps
SSE4.1 Makes SSE good
SSE4.2 Makes SSE do strings and CRC32
AVX Makes SSE 256-bit (e.g. vaddps)
AVX2 Adds features to AVX
AVX-512 Makes SSE 512-bit
SHA Makes SSE do SHA1 and SHA256
FMA Fused multiply–add
CLMUL Carry-less multiplication
jart / .bashrc.tensorboard
Last active Apr 16, 2018
Bash Python Profiling for TensorBoard
View .bashrc.tensorboard
# -*-sh-*-
# pip install yappi
# tensorboard-profile-wall-time --logdir=/tmp/mnist
tb-profile-wall-time() {
-tensorboard-profile wall "$@"
tb-profile-cpu-time() {
-tensorboard-profile cpu "$@"
jart /
Last active May 21, 2019
Demo video: This is a "proof of concept experiment prototype" for turning bazel query --output=build // into an isomorphic Makefile
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
View .nanorc
set autoindent
set cut
set tabsize 2
set tabstospaces
set nohelp
set morespace
bind ^S whereis main
bind M-F nextword main
bind M-B prevword main
bind M-{ beginpara main
jart /
Last active Jan 13, 2018
TensorFlow Nightly Ubuntu 14 Workaround Ops
# TensorFlow Nightly Python 2.7 Slow CPU Package Builder on Ubuntu 14
# This script is a temporary hackish workaround until the TensorFlow team can
# setup a heterogeneous tooling environment that builds Python<=3.4 CPU pip
# packages using Ubuntu 14, due to challenging constraints imposed by vendors.
# It uploads poor quality builds of TensorFlow to GCS for testing environments:
# pip install --no-cache-dir -I
jart /
Created Nov 10, 2017
Authorizing HTTP Proxy
import BaseHTTPServer
import SocketServer
import base64
import httplib
import shutil
import urlparse
basic = lambda u,p: 'Basic %s' % base64.b64encode('%s:%s' % (u,p))
jart /
Last active Mar 12, 2018
PS1 with low latency git branch detection
# - Enhanced bash prompt
# Author: Justine Tunney <>
# Modified: 2014-06-20
# - No latency issues when holding down enter key
# - Doesn't look unfamiliar compared to bash defaults
# - Show current git branch
Last active Oct 29, 2018
Google Auto and Dagger Bazel Config
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external")
name = "com_google_auto_common",
jar_sha256 = "eee75e0d1b1b8f31584dcbe25e7c30752545001b46673d007d468d75cf6b2c52",
jar_urls = [
licenses = ["notice"], # Apache 2.0
jart / BUILD
Last active Oct 14, 2017
TensorFlow C++ PNG to JPG converter static binary
load("//tensorflow:tensorflow.bzl", "tf_cc_binary")
name = "png2jpg",
srcs = [""],
linkstatic = 1,
deps = [
jart / .screenrc
Last active Apr 15, 2018
Justine's GNU Screen Configuration
View .screenrc
# -*- conf -*-
## GNU Screen Configuration
## Justine Tunney <>
# GNU Screen + this config allow you to:
# - Have tabs inside your terminal.
# - Have your terminal sessions persist, even if you close your ssh connection.
# This is especially great if you hop between multiple computers or simply
You can’t perform that action at this time.