This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php while (have_posts()) : the_post(); ?> | |
<?php $image=get_post_meta($post->ID, $key, true); ?> | |
<?php $video=get_post_meta($post->ID, $vkey, true); ?> | |
<?php $gallery=true; ?> | |
<?php if ($image!=="") { ?> | |
<?php $gallerydisplayed=true; $pcount++; ?> | |
<?php if ($pcount==1) { $portfolio_row_end=false; ?> | |
<div class="categoryportfoliowrap"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
At /home/eric/src/globe/src/globe/events.clj:44: | |
Consider using: | |
(when-not (< (e-tic event) (:tic world)) event) | |
instead of: | |
(if (< (e-tic event) (:tic world)) nil event) | |
At /home/eric/src/globe/src/globe/events.clj:68: | |
Consider using: | |
(neg? amount) | |
instead of: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'anemone' | |
Anemone.crawl("http://localhost:3000") do |a| | |
a.on_every_page do |page| | |
puts "#{page.code}, #{page.links}, #{page.url}" | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://npmjs.org/install.sh | sh |