Skip to content

Instantly share code, notes, and snippets.

@ericfode
ericfode / assig_4
Last active August 29, 2015 13:56
//Alice Miller
// 2/13/14
//Assingment 4, Median and average
//Notes: The individual parts should work but the whole thing isn't cohesive. Sorry.
import java.util.Scanner;
public class ArrayTraversal {
public static void main(String[] args) {
#!ipxe
set coreos-version dev-channel
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version}
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCxbCadbBbKM8W8bRVYtr1Ofou0zyzVAq2wemM/Ax4uUicYQUzViELkDweZmrAhk2j7gx7LnrbtvlWE/n3vvlrPQEqRuj2AXBH/ieUsQCa4hN/vbuATd2qKHfHKzafeS44ZqH80SWZMIFx9PXg9J9Bg0ELHHkgfD9q2JYr50Ft3lHFjeWt3WqVLGhel28Uieo9MwgMZSZY0MVpnKipFuuNJZ73eyRRzP6S/CEc6otPmVNI+/nDoXzdFvuA9z3rBUiY9Wnk0XQ3bImvb+VkoB6iVZUXW4AcWzYYAPuKVOEhycRILQHsehHmmKHE0+DGCCqNihobMJsVuRojBzdo2YJB1 efode@efode-mbp.local"
initrd ${base-url}/coreos_production_pxe_image.cpio.gz
boot
# Bob
Bob is a lackadaisical teenager. In conversation, his responses are very limited.
Bob answers 'Sure.' if you ask him a question.
He answers 'Woah, chill out!' if you yell at him.
He says 'Fine. Be that way!' if you address him without actually saying anything.
### Keybase proof
I hereby claim:
* I am ericfode on github.
* I am ericfode (https://keybase.io/ericfode) on keybase.
* I have a public key whose fingerprint is 6E42 8EB1 C12B 969F 8805 3AAB 2FD2 8F66 343F 1F3F
To claim this, I am signing this object:
Goal
------
Set up a dynamic, scalable, sutainable application stack using ansible.
Components
----------------
* Web application (Bitcoin metrics thing in a few langs)
* Postgres (Database) http://www.postgresql.org/
* Consul (Dynamic DNS and config store) http://www.consul.io/
@ericfode
ericfode / CSI Setup
Created June 2, 2014 23:42
Welcome document
Goal
------
Set up a dynamic, scalable, sutainable application stack using ansible.
Components
----------------
* Web application (Bitcoin metrics thing in a few langs)
* Postgres (Database) http://www.postgresql.org/
* Consul (Dynamic DNS and config store) http://www.consul.io/
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
#Hygene
guard "foodcritic", :cookbook_paths => ".", :all_on_start => false do
watch(%r{attributes/.+\.rb$})
watch(%r{providers/.+\.rb$})
watch(%r{recipes/.+\.rb$})
watch(%r{resources/.+\.rb$})
watch(%r{^templates/(.+)})
require 'serverspec'
include Serverspec::Helper::Exec
include Serverspec::Helper::DetectOS
describe 'resolve assigned host name to an ipaddress' do
describe host('test-node') do
it { should be_resolvable.by('hosts') }
end
end
@ericfode
ericfode / chef-standards
Last active August 29, 2015 14:08
Hello!
Prior art
===========
Cookbook style guides
---------------------
* https://github.com/ampledata/cookbook-style-guide
* https://github.com/infochimps-labs/ironfan/wiki/style_guide
* https://github.com/secondmarket/chef-style-guide
* http://acrmp.github.io/foodcritic/
@ericfode
ericfode / .spacemacs
Last active August 29, 2015 14:21
My spacemacs dot file
;; -*- mode: dotspacemacs -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration."
(setq-default
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (ie. `~/.mycontribs/')
dotspacemacs-configuration-layer-path '()