This file contains hidden or 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 | |
| # $1 => Slack hook URL | |
| # $2 => Channel name | |
| # $3 => URL to web repo browser for base project | |
| slack_url="$1" | |
| channel="$2" | |
| browser_url="$3" | |
| # Debugging output in /tmp/stash_slack.txt |
This file contains hidden or 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 :rubygems | |
| # We are not loading Active Record, nor Active Resources etc. | |
| # We can do this in any app by simply replacing the rails gem | |
| # by the parts we want to use. | |
| gem "actionpack", "~> 3.2" | |
| gem "railties", "~> 3.2" | |
| gem "tzinfo" | |
| # Let's use thin |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| require 'rubygems' | |
| require 'aws-sdk' | |
| ## アクセスIDとシークレットアクセスキーを指定します | |
| ACCESS_KEY = 'SET UP YOUR ACCESS KEY' | |
| SECRET_KEY = 'SET UP YOUR SECRET KEY' | |
| ## 引数チェック | |
| unless ARGV.size == 4 |
This file contains hidden or 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 | |
| # | |
| # This script will install and configure a PPTPD server on your Ubuntu box. | |
| # I use this for a micro instance on Amazon EC2 as a quick, cheap (free!) VPN | |
| # | |
| # This script was tested with Natty Narwahl 11.04, ami-06ad526f | |
| # | |
| # Usage: | |
| # wget https://gist.github.com/raw/950539/pptpd.sh |