Skip to content

Instantly share code, notes, and snippets.

View jdrago999's full-sized avatar

jdrago999

  • San Francisco, CA
View GitHub Profile
@jdrago999
jdrago999 / docker-compose-coreos.sh
Last active July 2, 2018 13:49 — forked from sourcec0de/docker-compose-coreos.sh
Install docker compose on coreos
sudo su -
mkdir -p /opt/bin
curl -L https://github.com/docker/compose/releases/download/1.8.0/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
{
"always_show_minimap_viewport": true,
"indent_guide_options": [ "draw_normal", "draw_active" ],
"line_padding_bottom": 1,
"line_padding_top": 1,
"highlight_modified_tabs": true,
"translate_tabs_to_spaces": true,
"find_selected_text": true,
"word_wrap": true,
"bold_folder_labels": true,
#!/bin/bash
set -e
sudo su
echo '64.150.181.206 energyworksadmin.wreckage.io' >> /etc/hosts
sleep 3
echo "Attempting to connect to energyworksadmin.wreckage.io..."
#!/usr/bin/ruby2.0
class Proxy
instance_methods.each do |m|
undef_method m unless m =~ /(^__|^send$|^object_id$)/
end
def initialize(*targets)
@targets = targets
end
[2014-11-05T23:57:12+00:00] ERROR: cookbook_file[/home/deployer/.ssh/id_rsa.pub] (inflection::default line 67) had an error: Chef::Exceptions::FileNotFound: Cookbook 'inflection' (0.1.0) does not contain a file at any of these locations:
files/ubuntu-12.04/id_deploy.pub
files/ubuntu/id_deploy.pub
files/default/id_deploy.pub
This cookbook _does_ contain: ['/tmp/kitchen/cookbooks/inflection/files/default/id_deploy','/tmp/kitchen/cookbooks/inflection/files/default/wrap-ssh4git.sh']
[2014-11-05T23:57:12+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
>>>>>> Converge failed on instance <identity-ubuntu-1204>.
>>>>>> Please see .kitchen/logs/identity-ubuntu-1204.log for more details
>>>>>> ------Exception-------
@jdrago999
jdrago999 / signin_controller_spec.rb
Created October 15, 2014 03:37
signin_controller_spec.rb
require 'spec_helper'
describe SigninController do
describe "#signin_page" do
before do
@user = FactoryGirl.create(:user)
end
context "when the user is already signed in" do
before do
controller.sign_in(@user)
def hello(name)
puts "Hello, #{name}!"
end