- People need to know when a Turntable room is active - use case: companies that have employees who like to jam out together. Idead: An IFTTT channel or a job that contacts a group of subscribers when a Turntable.fm room is active/updated.
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 'facter' | |
Facter.add("some_user") do | |
setcode do | |
system "/usr/bin/id someuser >/dev/null 2>&1" | |
end | |
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
#!/bin/bash | |
# pre-commit git hook to check the validity of a puppet manifest | |
# | |
# Prerequisites: | |
# gem install puppet-lint puppet | |
# | |
# Install: | |
# /path/to/repo/.git/hooks/pre-comit | |
# Source RVM if needed |
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
# Remove any entries from SSH known_hosts file | |
# that match the specified string. | |
sshrm () { | |
node=$1 | |
echo "Removing $node from SSH known hosts" | |
sed -i '.bak' -e "/^$node/d" ~/.ssh/known_hosts | |
} |
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
source 'https://rubygems.org' | |
gem 'netaddr' |
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 | |
curl -o /etc/apt/sources.list.d/stackdriver.list http://repo.stackdriver.com/precise.list | |
curl --silent https://app.stackdriver.com/RPM-GPG-KEY-stackdriver |apt-key add - | |
apt-get update | |
apt-get install stackdriver-agent |
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
# Inspired by Deepak's setup here - https://gist.github.com/deepak/5925003 | |
FROM ubuntu:14.04 | |
RUN apt-get update -qq && apt-get install -y build-essential nodejs npm git curl mysql-client libmysqlclient-dev | |
RUN mkdir -p /my_awesome_social_media_app | |
# Install rbenv | |
RUN git clone https://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
RUN echo '# rbenv setup' > /etc/profile.d/rbenv.sh |
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
FROM ruby:2.1.3 | |
# works with ruby:2.1.2 | |
# run with `docker build -t test .` | |
RUN apt-get -y update -qq && apt-get -y install r-base-dev | |
RUN pry |
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
# Fix an EC2 instance's hostname. | |
echo "ip-$(echo $(curl -s http://169.254.169.254/latest/meta-data/local-ipv4 | tr '.' '-'))" | sudo tee /etc/hostname | sudo xargs hostname |
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
exports.index = function(req, res) { | |
res.send('This is bar!'); | |
}; |
OlderNewer