Skip to content

Instantly share code, notes, and snippets.

View iansheridan's full-sized avatar

Ian Sheridan iansheridan

View GitHub Profile
// screep astar
// based off of javascript-astar 0.4.1
// http://github.com/bgrins/javascript-astar
// Freely distributable under the MIT License.
// Implements the astar search algorithm in javascript using a Binary Heap.
// Includes Binary Heap (with modifications) from Marijn Haverbeke.
// http://eloquentjavascript.net/appendix2.html
// Modified for Screeps by Robert Hafner
@iansheridan
iansheridan / about.md
Last active May 11, 2018 20:36
Faction, Order of the Rising Sun

Monastery

The Monastery of the Rising Sun

Sàben created the monastery for several reasons. To honor his Guiding Angel Sariel. To start training Monks. As a safe haven for those seeking peace through redemption . And to be a source of revenue for a Faction.

Faction

Name

@iansheridan
iansheridan / Roll20 Mystara Calendar
Last active November 16, 2017 23:13 — forked from shdwjk/Roll20 Mystara Calendar
My first release of a Mystara Calendar API Script for Roll20.
var Calendar = Calendar || {
version: '0.0.1',
lunarPhaseSize: 15,
lunarPhasesImage: 'https://s3.amazonaws.com/files.d20.io/images/4277527/CJJWBbiHx3jHglPdccPx3A/max.png?1401939451',
clearImage: 'https://s3.amazonaws.com/files.d20.io/images/4277467/iQYjFOsYC5JsuOPUCI9RGA/max.png?1401938659',
_Ordinal: function(num) {
var ones=(num%10);
var tens=((num%100)-ones);
switch(ones)

Keybase proof

I hereby claim:

  • I am iansheridan on github.
  • I am iansheridan (https://keybase.io/iansheridan) on keybase.
  • I have a public key ASCgMCHiSDzqTbaHLmhVuCVfsxtXrr7SB9GMhxiI--mQLQo

To claim this, I am signing this object:

@iansheridan
iansheridan / tmux.conf
Last active August 29, 2015 14:26 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000
@iansheridan
iansheridan / aws_ec2_policies.md
Last active August 24, 2017 04:03
Demystifying EC2 Resource-Level Permissions
#################################################################
# = This script transfers bash history to zsh history
# = Change bash and zsh history files, if you don't use defaults
#
# = Usage: ruby bash_to_zsh_history.rb
#
# = OrgAuthor: Ankit Goyal
# = Author: Ian Sheridan
#################################################################
@iansheridan
iansheridan / 01add-nginx-endpoint.config
Last active August 29, 2015 14:14
Add a Status endpoint to an Elasticbeanstalk Docker Env. Nginx config via .ebextentions
container_commands:
copy:
command: "cp .ebextensions/01update_nginx_config.py /opt/elasticbeanstalk/hooks/appdeploy/enact/"
make_exe:
command: "chmod +x /opt/elasticbeanstalk/hooks/appdeploy/enact/01update_nginx_config.py"
@iansheridan
iansheridan / status.conf
Last active August 29, 2015 14:14 — forked from dhrrgn/status.conf
server {
listen 80;
server_name localhost;
location /status {
access_log off;
default_type text/plain;
return 200 "alive";
}
}
@iansheridan
iansheridan / wordpress-example.yml
Last active December 19, 2018 21:25
Sample Varnish VCL configs for Elastic Beanstalk
# Source: https://forums.aws.amazon.com/thread.jspa?messageID=482679&tstart=0#482679
packages:
yum:
varnish: []
files:
"/etc/varnish/default.vcl" :
owner: root
group: root
content: |