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 / 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 / mongo.md
Created June 20, 2014 19:23
Mongo Reference Info
@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 / .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 / 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 / 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 / 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 / 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.
http://stream.nextvr.com.cdnga.net/live/lunar20.mp4/chunklist.m3u8
@technicool
technicool / stacktrace.java
Created January 8, 2016 23:38
Intuit Stack Trace
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:693)
at org.eclipse.persistence.platform.server.ServerPlatformBase.launchContainerRunnable(ServerPlatformBase.java:415)
at org.eclipse.persistence.internal.sessions.coordination.CommandPropagator.asynchronousPropagateCommand(CommandPropagator.java:97)
at org.eclipse.persistence.sessions.coordination.RemoteCommandManager.propagateCommand(RemoteCommandManager.java:221)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:3278)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitRootUnitOfWork(UnitOfWorkImpl.java:1314)
at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commit(UnitOfWorkImpl.java:1074)
at com.paycycle.data.Transaction.commit(Transaction.java:418)