Skip to content

Instantly share code, notes, and snippets.

View jvanderhoof's full-sized avatar

Jason Vanderhoof jvanderhoof

View GitHub Profile
#!/bin/bash -e
function finish {
echo 'Removing test environment'
echo '---'
docker-compose down --rmi 'local' --volumes
}
trap finish EXIT
function main() {
# one person sharing credential with another
- !user sue
- !user bob
- !variable super-secret-word
- !permit
role: !user bob
resource: !variable super-secret-word
privileges: [ read, execute ]
@jvanderhoof
jvanderhoof / Conjur-Cyberark-Developer-Setup.md
Last active July 23, 2017 08:33
Quick overview of setting up an OSX develop laptop

CyberArk Developer Setup (OSX)

This includes a potential list of applications and libraries to get a new developer setup on OSX

XCode Setup

XCode provides a core set of build tools required for building a variety of projects. It should be installed first. To install, simply open a new shell (Applications/Utilities/Terminal) and run the following:

$ sudo xcode-select --install
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
create_table "foo", :force => true do |t|
t.string "name", :null => false
t.string "uuid"
t.integer "bar_id", :null => false
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
create_table "bar", :force => true do |t|
t.string "title", :null => false
@jvanderhoof
jvanderhoof / study_visit_email_scheduler_service.rb
Last active May 26, 2016 17:31
Potential Email Schedular
class StudyVisitMailer < BaseMailer
def send_email(user_id, email_id)
user = User.find(user_id)
email = Email.find(email_id)
...
mail(
:to => user.email,
:subject => email.subject(:study_visit_number_text => sv_number),
State Transitions:
- remove scrolling
- show one question at a time & hide previously answered questions
- states:
- Initial Question
- Expanded Question
- Summary & Expanded Question
- Summary
@jvanderhoof
jvanderhoof / Ruby Development Tools & Resources
Created January 13, 2016 18:31
Overview of Tools and resources for a developer
Homebrew - http://brew.sh/
RVM - https://rvm.io/
Sublime Text 3 or Atom - Text Editor
Sublime Linters:
- SublimeLinter - http://www.sublimelinter.com/en/latest/
- Ruby - https://github.com/SublimeLinter/SublimeLinter-rubocop
- Javascript - https://github.com/roadhump/SublimeLinter-eslint
- SCSS - https://github.com/attenzione/SublimeLinter-scss-lint
upstream app {
# Path to Unicorn SOCK file, as defined previously
server unix:/tmp/unicorn.sock fail_timeout=0;
}
server {
listen 80;
server_name localhost;
root /opt/mondoapp/current/public;
{
"variables": {
"aws_access_key": "",
"aws_secret_key": ""
},
"builders": [
{
"type": "amazon-ebs",
"access_key": "{{user `aws_access_key`}}",