Skip to content

Instantly share code, notes, and snippets.

View ryankelley's full-sized avatar

Ryan Kelley ryankelley

View GitHub Profile
@ryankelley
ryankelley / bpforp.md
Last active July 15, 2019 23:08
Backpacking for Parents

Backpacking for Parents

Why do Scouts backpack?

  • Fitness
  • Team work
  • confidence
  • adventure
  • leadership
  • mental toughness
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
cinst brave
cinst git
cinst conemu
cinst notepadplusplus.install
cinst poshgit
cinst nvm
cinst vscode
cinst 7zip
@ryankelley
ryankelley / AppServer-Instance.template
Created November 17, 2015 18:57
AWS-EC2 instance CF Template
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template EC2InstanceWithSecurityGroupSample: Create an Amazon EC2 instance running the Amazon Linux AMI. The AMI is chosen based on the region in which the stack is run. This example creates an EC2 security group for the instance to give you SSH access. **WARNING** This template creates an Amazon EC2 instance. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "AWS::EC2::KeyPair::KeyName",
"ConstraintDescription" : "must be the name of an existing EC2 KeyPair."
},
@ryankelley
ryankelley / keybase.md
Created September 22, 2015 21:48
keybase.md

Keybase proof

I hereby claim:

  • I am ryankelley on github.
  • I am ryankelley (https://keybase.io/ryankelley) on keybase.
  • I have a public key whose fingerprint is BCE9 6415 D34C 9FAE 823C E251 2138 2EEA 8271 2FF7

To claim this, I am signing this object:

@ryankelley
ryankelley / ContextSpecification.cs
Created August 24, 2015 21:28
ContextSpecification
using NUnit.Framework;
namespace Inofile.Kno2
{
[TestFixture]
public abstract class ContextSpecification
{
/// <summary>
/// Runs before every test
@ryankelley
ryankelley / Network-Base.template
Last active November 17, 2015 19:01
Base Network (VPC) Template for Infrastructure Automation Series
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Template VPC_with_PublicIPs_And_DNS: Sample template showing how to create a VPC with DNS and Public IPs enabled. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the bastion host",
"Type" : "AWS::EC2::KeyPair::KeyName",
#Enable-PSRemoting -Force
#
#$cred=Get-Credential NIH\volkova
#Install-BoxstarterPackage -ComputerName MyTargetMachine -PackageName MyPackage -Credential $cred
#START http://boxstarter.org/package/url?
Set-ExecutionPolicy Unrestricted
Set-ExplorerOptions –showFileExtensions -EnableShowFullPathInTitleBar
Disable-InternetExplorerESC
using System.Collections;
using System.Linq;
using AutoMapper;
using FieldBook.Core.Persistence;
using FieldBook.Core.UI;
using FieldBook.Interface.Conventions;
using FubuCore;
using FubuMVC.Core.Registration;
using FubuMVC.Core.Registration.Nodes;
using FubuMVC.Core.Resources.Conneg;
var GearController = {
'list': function (req, res) {
var filter = req.param('filter');
var query = 'SELECT gear.*, categories.name as CategoryName from gear join categories on categories.id = gear.CategoryId';
if (filter) {
var dbfilter = '%' + filter + '%';
Gear.query(query + ' WHERE gear.name LIKE ?', [dbfilter], function (err, data) {
if (err) return res.send(err, 500);
// api/controllers/AuthController.js
var passport = require('passport');
var AuthController = {
login: function (req,res)
{
res.view();
},