Skip to content

Instantly share code, notes, and snippets.

View technicool's full-sized avatar
🧯
Fixing or making bugs :)

Marshall Anschutz technicool

🧯
Fixing or making bugs :)
View GitHub Profile
@technicool
technicool / noahs-flood.md
Created April 7, 2015 14:29
Just some scientific thoughts on a worldwide flood

Just to play devil's advocate for a second (I'm aware of the irony in that statement), but why would you have such a hard time believing Noah's flood might be possible?

  1. We know there is enough water to cover the Earth by over a mile if it was flat.
  2. We suspect there is another oceans worth of water locked up in Earth's crust in ringwoodite.
  3. We think the continents formed a super continent in the past and have since changed position drastically.
  4. We have meteor impact craters like Chicxulub that seem to have altered Earth drastically.
  5. We know strata layers are almost always layed down by water.
  6. We know animals have to be buried fast in order to fossilize instead of deteriorate.
  7. We also know that major canyons can be created rapidly (Mt St. Helens) and have no conclusive evidence of them forming slowly.
@technicool
technicool / install_docker_and_fig.sh
Last active August 29, 2015 14:06
Install the latest version of docker and fig on an ubuntu server
#!/bin/bash
# Run this as root
sudo apt-get update
sudo apt-get install -y git curl vim python-pip
curl -sSL https://get.docker.io/ubuntu/ | sudo sh
sudo pip install -U fig==0.5.2
@technicool
technicool / docker_cleanup.sh
Created August 17, 2014 19:30
Clean up all non-running docker images
#!/bin/bash
#
# Note: This will cause you to have to redownload lots of stuff, use with care!
sudo docker.io images | awk '{print "sudo docker.io rmi " $3}' | /bin/bash
@technicool
technicool / figinstall.sh
Last active August 29, 2015 14:05
Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image
#!/bin/bash
#
# NOTE: This must be run as root!
#
# Install necessary stuff to get fig running on a vanilla Ubuntu 14.04 image.
#
# This should really be put in some automated deployment system, but it's a
# good reference point for trying out fig and docker on an AWS or similar cloud.
#
# You can also use this to ensure that your development machine is up and running
@technicool
technicool / .tmux.conf
Last active August 29, 2015 14:04
TMux resource file
# Some of this was stolen from:
# http://blog.hawkhost.com/2010/07/02/tmux-%E2%80%93-the-terminal-multiplexer-part-2/
#
# Split window panes horizontally and vertically by nice designators:
# Ctrl -
# Ctrl |
#
unbind % # Remove default binding since we're replacing
bind | split-window -h
@technicool
technicool / Dockerfile
Created July 8, 2014 23:48
Generic Ruby dockerfile
FROM ubuntu:14.04
MAINTAINER Marshall Anschutz <[email protected]>
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Install tools & libs to compile everything
RUN apt-get update && apt-get install -y build-essential libssl-dev libreadline-dev wget && apt-get clean
## Install imagemagick
@technicool
technicool / mongo.md
Created June 20, 2014 19:23
Mongo Reference Info
@technicool
technicool / route_explorer.rb
Created April 16, 2014 19:57
Iterate thru Rails routes to see all of the controller/action combinations present. Run on the console.
Rails.application.routes.routes.to_a.map {|route| "#{route.defaults[:controller]}##{route.defaults[:action]}" }.uniq.sort
@technicool
technicool / cucumber_screenshots.rb
Created October 9, 2013 02:07
Take screenshots of the browser when traversing web pages. Useful for debugging and for documentation that is always up to date.
Before do |feature|
@feature = feature
@screenshot_step = 0
@screenshot_size = 1000
end
Given /^a desktop browser$/ do
@screenshot_size = 1024
page.driver.resize_window(1024, 720)
end
@technicool
technicool / gist:5678955
Last active December 17, 2015 21:59
Highlights of my coding (for BD)

Code Highlights

Responsive Design

  • http://mhpoffice.com/ - This promotional site is responsive and uses the Twitter Bootstrap framework.
  • Click the Login button, and use the username/password emailed, and checkout pages such as the home dashboard's responsive design. Also, go to clients -> choose Barack Obama... Notice the custom responsive layout of the widgets.

Require.js

Part of a simple project for tuning a room's accoustics.... This script calculates a bunch of stuff. It uses require.js to load the modules.