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
jb.localhost | |
tn.localhost | |
sn.localhost |
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/sh -x | |
# https://github.com/docker-library/ruby/issues/66 | |
export BUNDLE_PATH=$GEM_HOME | |
export BUNDLE_BIN=$GEM_HOME/bin | |
export BUNDLE_APP_CONFIG=$GEM_HOME/config | |
export USER_UID=`stat -c %u /code/Gemfile` | |
export USER_GID=`stat -c %g /code/Gemfile` |
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
#!/usr/bin/env bash | |
USER=`whoami` | |
echo Updating installed software | |
sudo apt-get update >> ~/install.log | |
sudo apt-get -y -u upgrade >> ~/install.log | |
echo Installing MySQL | |
echo 'mysql-server mysql-server/root_password password d3m0pr0j3ct' | sudo debconf-set-selections |
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
class Fixnum | |
alias_method :default_as_json, :as_json | |
# Serializes long integers as strings. | |
def as_json(options = {}) | |
if self.bit_length > 53 | |
"#{ default_as_json(options) }" | |
else | |
default_as_json(options) | |
end |