Skip to content

Instantly share code, notes, and snippets.

@denti
denti / install-tensorflow.sh
Last active December 8, 2017 17:49 — forked from erikbern/install-tensorflow.sh
Install TensorFlow v 0.11 and later on EC2 instances with Ubuntu 16.04. Instances: p2.xlarge, g2.xlarge and bigger
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@denti
denti / tensorflow_eager_resnet.py
Last active November 1, 2017 08:24 — forked from yaroslavvb2/resnet_test.py
Tensorflow Eager test with ResNet
# !IMPORTANT:
# this script was tested only on tf-nightly==1.5.0.dev20171031 build
import tensorflow as tf
from tensorflow.contrib.eager.python import tfe
tfe.enable_eager_execution()
context = tf.device('/cpu:0')
context.__enter__()
# download resnet_model
@denti
denti / raven-shell
Created August 5, 2018 11:58 — forked from barroco/raven-shell
Send Sentry error from shell using curl
#!/bin/sh
SENTRY_KEY=
SENTRY_SECRET=
SENTRY_PROJECTID=1
SENTRY_HOST=sentry.example.com
SCRIPT_ARGUMENTS=$@
capture_error()
{