Skip to content

Instantly share code, notes, and snippets.

View giantryansaul's full-sized avatar

Ryan Saul giantryansaul

  • Streem, Inc
  • Portland, OR
View GitHub Profile
@giantryansaul
giantryansaul / install_jupyter_notebook_on_aws.md
Created December 14, 2015 05:35
Run Jupyter from an amazon free tier AWS server

Installing Jupyter notebook to AWS

This is an early draft of this guide, which currently does not include any screenshots. I may be making a lot of assumptions about what you do or do not know in this guide and so I welcome any constructive criticism to help make it more useful. Please feel free to fork this guide and annotate it where it does not work, I would welcome any pull requests to improve this documentation.

Setup amazon linux server (free tier)

  • From Amazon's EC2 page, go to Launch Instance
  • Choose an Amazon Linux 64-bit server and continue
  • Select t2.micro (this is the free tier)
  • Continue to the Add Storage page and adjust this up to 30GB if you're so inclined (default is 8GB, which is plenty)
  • Tag your instance with a name like "notebook"

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

#!/bin/bash
set -e
# Change xxxxx sections to your personal AWS settings or set them to environment variables
export AWS_ACCESS_KEY_ID=xxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxx
export AWS_DEFAULT_REGION=xxxxxxx
# Get the subnet ID for the lowest availability zone in the VPC section of AWS console
export AWS_SUBNET_ID=xxxxxxx
#!/bin/bash
set -e
# Replace the xxxxxxx sections with your information from the AWS console.
export AWS_ACCESS_KEY_ID=xxxxxxx
export AWS_SECRET_ACCESS_KEY=xxxxxxx
export AWS_DEFAULT_REGION=xxxxxxx
# Verify that the gaming stane actually exists (and that there's only one)
@giantryansaul
giantryansaul / notebook_sync.md
Created December 13, 2016 05:40
Notebook sync through vimwiki and git

Title: Notebook sync through vimwiki and git

Objective

In this project I'm going to create a local directory and sync it up with a remote machine in my house using git. I'm going to write all of my notes in markdown and use vimwiki as my notetaking editor of choice.

Setup

You'll need all of these things to get started:

  • Git
@giantryansaul
giantryansaul / transfer_photos_locally.sh
Created December 24, 2016 21:33
Nikon RAW photo transfer from remote to local. This script transfers the raw NEF file to a local working directory along with related JPG files.
#!/bin/bash
#
# Nikon RAW photo transfer from remote to local.
# Created by: Ryan Saul
#
# I have a process of backing up all of my photos to a remote PC in the $REMOTE_BACKUP/pending directory so I can work on them later.
# This script transfers the raw NEF file to a local working directory.
# It then moves the NEF file to the $REMOTE_BACKUP/processed directory along with the related JPG (if it exists).
#
# Required: $REMOTE_BACKUP and $LOCAL_BACKUP set to their respective
@giantryansaul
giantryansaul / appveyor.yml
Last active December 6, 2017 17:02
4-Tell AppVeyor setup
-
version: "{build}"
environment:
nodejs_version: "6"
install:
- ps: Install-Product node $env:nodejs_version
- npm install
build_script:
- ps: dotnet build
test_script:
@giantryansaul
giantryansaul / tdd-presentation.md
Last active May 8, 2018 15:59
Test Driven Development

Test Driven Development

(TDD)

What is it?

  • Write tests before you write code
  • Tests drive the code structure

A Brief History

Kent Beck

pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
balls={}
for i=1,20 do
add(balls,create_ball())
end
end
@giantryansaul
giantryansaul / gist:63002241cb6b5300f4eff595a38ed1f6
Created January 20, 2019 07:21
Pico-8 simple screen saver
pico-8 cartridge // http://www.pico-8.com
version 16
__lua__
function _init()
balls={}
for i=1,20 do
add(balls,create_ball())
end
end