- 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
# 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
#!/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
require 'facter' | |
Facter.add("some_user") do | |
setcode do | |
system "/usr/bin/id someuser >/dev/null 2>&1" | |
end | |
end |
NewerOlder