Skip to content

Instantly share code, notes, and snippets.

View jimmypocock's full-sized avatar
:shipit:
shippin'

Jimmy Pocock jimmypocock

:shipit:
shippin'
View GitHub Profile
@jimmypocock
jimmypocock / nancys_secrets.js
Created February 21, 2021 03:21
Nancy's Secrets
//----------------------------//
// GLOBAL CONSTANTS
//----------------------------//
var UPPERS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
var LOWERS = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'];
var NUMS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
var SPECIALS = ['!', '#', '$', '%', '&', '(', ')', '*', '+', '-', '.', '/', ':', ';', '<', '=', '>', '?', '@'];
var OPTIONS = [
{
@jimmypocock
jimmypocock / gist:be7767e80e0d864d8781eb1cf5666cec
Last active June 21, 2018 19:45
Set up a new rails app on Digital Ocean. No DB...
# TODO: Build this out...
Follow this:
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04
Update versions of packages/gems as necessary.
@jimmypocock
jimmypocock / roverpass_recruitment_exercise.rb
Last active March 12, 2018 17:50
The purpose of this exercise is to generate discussion of application design patterns as they apply to Ruby on Rails.
#-------------------
# Description
#-------------------
# This exercise is broken into 5 Rails-based tasks. Each task utilizes the
# type of files you would operate within an average Rails application.
# Keep in mind, if one file asks for something that requires an alteration in a file
# from a different task, please complete these tasks as if you were in a production
# application. Alter as necessary.
@jimmypocock
jimmypocock / successful-rails-nginx-production-deployment.txt
Created September 9, 2015 16:04
Ruby on Rails / Postgres / Nginx / Passenger / Capistrano / Ubuntu 14.04 / AWS
#####################################
# 0. SET UP AWS (ASSUMING YOU HAVE ALREADY SET UP AN ACCOUNT)
# CREATE SECURITY GROUP
• In the EC2 Dashboard, click Security Groups, then Create Security Group.
• Enter Name
• Enter Description
• Rules to add:
- HTTP
- SSH