Skip to content

Instantly share code, notes, and snippets.

@obskein
obskein / build_tensorflow.sh
Last active November 12, 2015 21:45
Build tensorflow from source
#Install Cuda V7.0 (!!!) and Cudnn 6.5
# https://developer.nvidia.com/cuda-toolkit-70
wget http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/rpmdeb/cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb
sudo dpkg -i
sudo apt-get update
sudo apt-get install cuda=7.0-28
@obskein
obskein / install-tensorflow.sh
Created November 13, 2015 23:47 — forked from erikbern/install-tensorflow.sh
Installing TensorFlow on EC2
# 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
@obskein
obskein / id_rsa.pub
Created December 14, 2015 22:17
My public SSH key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCroOFzPBL98c4Vi+FZlZtN+gcBnXGQBoJeHQ5t/XEpWb7/9kJH2uJVM+0hoISLXjhMztkJ1J2dOSH3aDjdKFK05TB70tAyUmEdyYZEOhQA08DK2e1zMzLxQEVa6fR2CG7zkStWR3k/q5whO1kw900OJKsPxu1oRL/DJfszd7IihV0Im8jWUG45V+terOk0F2kG5mrZb2VTIPctrSVNPzois7sDSy3MtN+viaAFWfWV3hi/pkdFEx50M3gO+a90LEZX8lv0tAw6Cs8qGY4Vh4QB0gk8l1w/cYABhNqAQBLrpVxUxm4A9af82naATIIm34SVcVqwYQGketkyyz4JQlhD obskein@rdEdon.local
@obskein
obskein / Dockerfile
Created January 21, 2016 22:57 — forked from Arcrammer/Dockerfile
Rails Dockerfile
FROM ruby:latest
MAINTAINER Alexander Rhett Crammer <Alexander2475914@gmail.com>
# ENV Variables
ENV HOME /home/rails/eximius
# Dependencies required by Rails and RubyGems
RUN apt-get update -qq \
&& apt-get install -y \
build-essential \
@obskein
obskein / active_jerbz.rake
Created February 28, 2016 06:14 — forked from stevegraham/active_jerbz.rake
Run ActiveJobs with Sneakers
require 'sneakers/runner'
task :environment
namespace :sneakers do
desc "Start processing jobs with all workers"
task :work => :environment do
silence_warnings do
Rails.application.eager_load! unless Rails.application.config.eager_load
end
@obskein
obskein / build.sh
Created December 11, 2016 04:24 — forked from missinglink/build.sh
Pelias Build Script
#!/bin/bash
# Dependencies
for dep in 'git' 'wget' 'curl'; do
if [ ! `which $dep` ]; then
echo "$dep required, please install it and try again";
exit 1;
fi
done
@obskein
obskein / concat_oa.sh
Created December 11, 2016 04:25 — forked from missinglink/concat_oa.sh
concat all openaddresses csv files in to a single file
#!/bin/bash
# concatenate all openaddresses csv files in to a single stream
# note: deduplicates lines in each file
# avoid locale issues with the sort command
export LC_ALL=C;
# base path of openaddresses file system
OAPATH='/data/oa';
@obskein
obskein / gist:dad189dd23d6f8499b7d66b70dd8f3c4
Created November 7, 2018 19:45 — forked from ebeigarts/gist:970898
html2haml recursive
for f in `find . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done
#!/bin/sh
set -e
DEBIAN_FRONTEND="noninteractive"
sudo apt-get clean && sudo apt-get update
sudo apt-get install -y \
autoconf \
automake \
@obskein
obskein / xgtd_instance@.service
Last active June 21, 2021 20:28
/etc/systemd/system/xgtd_instance@.service
[Unit]
Description=xgtd-instance-%i
After=network.target
Before=shutdown.target
[Service]
User=your-user
Group=your-user
WorkingDirectory=/whereever-you-put-xgt
ExecStart=/bin/bash -lc "XGT_INSTANCE_INDEX=%i rake run"