Skip to content

Instantly share code, notes, and snippets.

View iansheridan's full-sized avatar

Ian Sheridan iansheridan

View GitHub Profile
@iansheridan
iansheridan / _aws_cors_sample_overview.md
Last active December 30, 2015 16:01
AWS CORS sample xml files, solution for Firefox JS/Font access issues

AWS CORS sample xml files

Overview

These are sample files of what can be done for AWS S3 bucket CORS settings

@iansheridan
iansheridan / outage_email_template.md
Created July 22, 2014 14:52
Outage Email Template

Subject: [Client] Outage, [app-name], [start-date-time] Priority: High

Body:

Issue

Description of issue as it is currently understood to be.

  • this should change as more is understood
@iansheridan
iansheridan / how_to_gen_ssl_cert.md
Created July 22, 2014 14:11
How to generate an SSL CSR or self signed SSL certificate

How to generate an SSL CSR or self signed SSL certificate

Overview

The following is an extremely simplified view of how SSL is implemented and what part the certificate plays in the entire process.

Normal web traffic is sent unencrypted over the Internet. That is, anyone with access to the right tools can snoop all of that traffic. Obviously, this can lead to problems, especially where security and privacy is necessary, such as in credit card data and bank transactions. The Secure Socket Layer is used to encrypt the data stream between the web server and the web client (the browser).

SSL makes use of what is known as asymmetric cryptography, commonly referred to as public key cryptography (PKI). With public key cryptography, two keys are created, one public, one private. Anything encrypted with either key can only be decrypted with its corresponding key. Thus if a message or data stream were encrypted with the server's private key, it can be decrypted only using its corresponding public key, ensuring

@iansheridan
iansheridan / closures.rb
Created July 7, 2014 15:27
A demonstration of Ruby closures by Paul Cantrell
# CLOSURES IN RUBY Paul Cantrell http://innig.net
# Email: username "cantrell", domain name "pobox.com"
# I recommend executing this file, then reading it alongside its output.
#
# Alteratively, you can give yourself a sort of Ruby test by deleting all the comments,
# then trying to guess the output of the code!
# A closure is a block of code which meets three criteria:
#
@iansheridan
iansheridan / save_fingers.sh
Created September 12, 2013 22:30
pre-populate known_hosts file for known ssh access points such as github.com
# HOST == access URI (eg. github.com)
ssh-keyscan -t rsa,dsa HOST 2>&1 | sort -u - ~/.ssh/known_hosts > ~/.ssh/tmp_hosts
cat ~/.ssh/tmp_hosts >> ~/.ssh/known_hosts
@iansheridan
iansheridan / _overview.md
Last active December 19, 2015 00:59
sample Nginx config for proxying
@iansheridan
iansheridan / Guide.md
Last active December 18, 2015 15:09
Guide to work with Dags FTB Minecraft server

Dags Minecraft Server Guide

Install Mod

You need to get this file downloaded

TConstruct_mc1.4.7_1.1.5.zip

Once downloaded you install it. Here is a video guide to installing it:

chruby can be used with [pow] to select a specific Ruby per project, or system-wide.

System wide

To set a default Ruby for all pow apps, puts the following in ~/.powconfig.

~/.powconfig

=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@iansheridan
iansheridan / ProxyRb.rb
Created October 12, 2012 18:53 — forked from tstachl/ProxyRb.rb
Sinatra Ruby Javascript Ajax Request Proxy
# Copyright (c) 2012, Thomas Stachl <thomas@stachl.me>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
# associated documentation files (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge, publish, distribute,
# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.