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 / pi.p8
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
@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
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 / 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

@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 / 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 / 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
#!/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)
#!/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

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: