Skip to content

Instantly share code, notes, and snippets.

View efouts's full-sized avatar

Elliott Fouts efouts

View GitHub Profile
@efouts
efouts / install.sh
Last active October 31, 2015 22:14
OS X Post Install Script
brew install git openssl bash
brew cask install deluge handbrake slack sublime-text dropbox spectacle spotify vlc flux kindle spotify-notifications google-chrome macs-fan-control steam
curl -s http://ethanschoonover.com/solarized/files/solarized.zip | tar -xf- -C /tmp/
open /tmp/solarized/osx-terminal.app-colors-solarized/Solarized\ Light\ ansi.terminal
defaults write com.apple.terminal StringEncodings -array 4
defaults write com.apple.Terminal "Default Window Settings" -string "Solarized Light ansi"
defaults write com.apple.Terminal "Default Window Settings" -string "Solarized Light ansi"
defaults write com.apple.Terminal "Startup Window Settings" -string "Solarized Light ansi"
@efouts
efouts / config
Last active August 29, 2015 14:23
nginx proxy example
server_tokens off;
add_header X-Frame-Options SAMEORIGIN;
add_header X-Content-Type-Options nosniff;
server {
listen 443 ssl default deferred;
server_name example.com;
ssl_certificate /etc/ssl/private/example_com.crt;
ssl_certificate_key /etc/ssl/private/example_com.key;
@efouts
efouts / Vagrantfile
Last active October 7, 2015 03:46
Basic vagrantfile for the rackspace cloud
Vagrant.configure(2) do |config|
config.vm.define :dev do |dev|
dev.ssh.forward_agent = true
dev.vm.provider :rackspace do |rs|
rs.username = ENV['RACKSPACE_USERNAME']
rs.admin_password = ENV['RACKSPACE_ADMIN_PASSWORD']
rs.api_key = ENV['RACKSPACE_API_KEY']
rs.flavor = 'general1-1'
rs.image = 'Ubuntu 15.04 (Vivid Vervet) (PVHVM)'
rs.rackspace_region = :iad
@efouts
efouts / elevatorSaga.js
Last active June 3, 2022 02:57
Passes All Challenges (some take a number of tries)
{
init: function(elevators, floors) {
elevators.forEach(function(e) {
e.isDestination = function(floorNum) {
return e.destinationQueue.indexOf(floorNum) != -1;
}
e.on("floor_button_pressed", function(floorNum) {
if (!e.isDestination(floorNum))
e.goToFloor(floorNum);
@efouts
efouts / keybase.md
Created June 24, 2014 02:04
Proof for keybase.io

Keybase proof

I hereby claim:

  • I am efouts on github.
  • I am efouts (https://keybase.io/efouts) on keybase.
  • I have a public key whose fingerprint is 3FCE 0A1F 40BF 2CF0 3B0D D7D3 276D 09B4 99E7 720A

To claim this, I am signing this object: