Skip to content

Instantly share code, notes, and snippets.

View chrislgarry's full-sized avatar

Chris Garry chrislgarry

View GitHub Profile
@chrislgarry
chrislgarry / gist:39500a22194f0de88228336d2690ff8d
Created December 27, 2018 06:57
Deep Learning AMI keras example broken out-of-the-box
ubuntu@ip-172-31-39-180:~$ source activate tensorflow_p27
(tensorflow_p27) ubuntu@ip-172-31-39-180:~$ clear
(tensorflow_p27) ubuntu@ip-172-31-39-180:~$ ls
Nvidia_Cloud_EULA.pdf README anaconda2 anaconda3 examples src tutorials
(tensorflow_p27) ubuntu@ip-172-31-39-180:~$ cd examples/
(tensorflow_p27) ubuntu@ip-172-31-39-180:~/examples$ ls
horovod keras keras-mxnet mxnet-model-server tensorboard tensorflow-serving
(tensorflow_p27) ubuntu@ip-172-31-39-180:~/examples$ cd keras
(tensorflow_p27) ubuntu@ip-172-31-39-180:~/examples/keras$ ls
cifar10_resnet.py
@chrislgarry
chrislgarry / fix-jupyter-version.patch
Created November 22, 2018 05:02
Fix jupyter notebooks installation
This patch explicity installs the supported pyzmq version dependended on by jupyter notebooks.
diff --git a/CMakePreBuild.sh b/CMakePreBuild.sh
index 8a6370b..46b8c7f 100644
--- a/CMakePreBuild.sh
+++ b/CMakePreBuild.sh
@@ -75,7 +75,7 @@ if [ $BUILD_PYTORCH = "ON" ] || [ $BUILD_PYTORCH = "YES" ] || [ $BUILD_PYTORCH =
while true; do
read -p "[Pre-build] Do you wish to install support for Jupyter/IPython notebook (y/N)? " yn
case $yn in
@chrislgarry
chrislgarry / add-apt-repositories.patch
Created November 22, 2018 04:58
Enable universe repositories on Jetson TX2 L4T 4.4.38-tegra
Some software, such as python-pip, is in the xenial universe repositories.
Universe repositories are not enabled by default, so enable them.
diff --git a/sources.list b/sources.list
index 2cae90f..c6b9121 100644
--- a/sources.list
+++ b/sources.list
@@ -14,10 +14,10 @@ deb-src http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted uni
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
@chrislgarry
chrislgarry / Pokemon_Go.protobuf
Created July 17, 2016 08:04 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');