This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCroOFzPBL98c4Vi+FZlZtN+gcBnXGQBoJeHQ5t/XEpWb7/9kJH2uJVM+0hoISLXjhMztkJ1J2dOSH3aDjdKFK05TB70tAyUmEdyYZEOhQA08DK2e1zMzLxQEVa6fR2CG7zkStWR3k/q5whO1kw900OJKsPxu1oRL/DJfszd7IihV0Im8jWUG45V+terOk0F2kG5mrZb2VTIPctrSVNPzois7sDSy3MtN+viaAFWfWV3hi/pkdFEx50M3gO+a90LEZX8lv0tAw6Cs8qGY4Vh4QB0gk8l1w/cYABhNqAQBLrpVxUxm4A9af82naATIIm34SVcVqwYQGketkyyz4JQlhD obskein@rdEdon.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in `find . -regex '.*\.html\.erb'`; do echo "Converting $f" && html2haml $f > "${f%.erb}.haml" && rm $f; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
DEBIAN_FRONTEND="noninteractive" | |
sudo apt-get clean && sudo apt-get update | |
sudo apt-get install -y \ | |
autoconf \ | |
automake \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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" |
OlderNewer