Skip to content

Instantly share code, notes, and snippets.

Avatar

Ian Sheridan iansheridan

View GitHub Profile
View screeps_astar.js
// 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
Faction, Order of the Rising Sun
View about.md

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 Nov 16, 2017 — forked from shdwjk/Roll20 Mystara Calendar
My first release of a Mystara Calendar API Script for Roll20.
View Roll20 Mystara Calendar
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)
View keybase.md

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 Aug 29, 2015 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
View tmux.conf
# 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 Aug 24, 2017
Demystifying EC2 Resource-Level Permissions
View aws_ec2_policies.md
View bash_to_zsh_history.rb
#################################################################
# = 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 Aug 29, 2015
Add a Status endpoint to an Elasticbeanstalk Docker Env. Nginx config via .ebextentions
View 01add-nginx-endpoint.config
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"
View 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 Dec 19, 2018
Sample Varnish VCL configs for Elastic Beanstalk
View wordpress-example.yml
# 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: |