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 'timeout' | |
SUBPROCESS_TIMEOUT = 90 | |
def timed_shell_command(cmd) | |
begin | |
Timeout.timeout(SUBPROCESS_TIMEOUT) do | |
subprocess = IO.popen(cmd) | |
Process.wait subprocess.pid | |
unless $?.success? |
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
title Create Data Mobile First | |
participant mobile as m | |
participant server as s | |
participant database as db | |
m -> m: create item {uuid} | |
m -> s: POST item {uuid} | |
s -> db: begin transaction | |
s -> db: SELECT id, uuid WHERE uuid={uuid} from write_log |
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
curl -i -F file_name[gistfile1]='foooo' -F file_contents[gistfile1]='abcde' -F file_ext[gistfile1]='.sh' http://gist.github.com/gists |
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
local application = require "hs.application" | |
local tiling = require "hs.tiling" | |
local hotkey = require "hs.hotkey" | |
local Spotify = require "hs.spotify" | |
-- TODO: Move more stuff into these | |
-- custom scripts | |
require "sizeup" | |
require "triggers" |
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
[] |
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
Vagrant.configure(2) do |config| | |
config.ssh.forward_agent = true | |
config.vm.define "www", :primary=>true do |www| | |
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
Show hidden characters
{ | |
"presets": ["es2015"] | |
} |
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
# Enable Logging | |
LOGFILE=/opt/stack/logs/stack.sh.log | |
LOG_COLOR=True | |
SCREEN_LOGDIR=/opt/stack/logs |
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
# Apt-Proxy hosting image | |
# | |
# VERSION 0.1.0 | |
# Use a modified version of the Ubuntu base image provided by dotCloud | |
FROM fairchild/ubuntu | |
MAINTAINER Michael Fairchild fairchild@stimble.net | |
ENV APT_PROXY apt.dockerdev.att.io | |
RUN apt-get update && apt-get install -y apt-cacher-ng |
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
#!/bin/bash | |
# Setup a new ubuntu 12.04 or 12.10 server appropriate for deploying nodejs and/or ruby applications. | |
set -x | |
set -e | |
# mkdir -p /tmp/user_data | |
date >> /tmp/provisioning_began |