Project tree:
foo-app
- composer.json
- app
- file1.txt
- foo
- bar.txt
- provision
- nginx
| #!/bin/sh | |
| # | |
| # Health Check - php-fpm | |
| # | |
| # Usage: | |
| # ./fcgi.sh host:port|path/to/socket /path/to/file | |
| # | |
| # Examples: | |
| # ./fcgi.sh ip:port /status?json | |
| # |
Project tree:
foo-app
I hereby claim:
To claim this, I am signing this object:
| docker run --rm -it -v $PWD:/opt/build golang:1.7 sh | |
| then run: | |
| mkdir -p $GOPATH/src/github.com/hashicorp/ | |
| cd $GOPATH/src/github.com/hashicorp/ | |
| git clone https://github.com/hashicorp/consul-template.git | |
| cd consul-template | |
| make updatedeps |
| # this include won't work for some reason: | |
| # include Capistrano::Git::DefaultStrategy | |
| module SubmoduleStrategy | |
| # check for a .git directory | |
| def test | |
| test! " [ -d #{repo_path}/.git ] " | |
| end |
| #!/bin/sh | |
| # | |
| # Add a Google Analytics tag to static website files | |
| # @see http://adambuchanan.me/post/26345221717/updating-google-analytics-code-on-many-static-pages | |
| # Tested on MacOS 10.8.X | |
| # | |
| # Usage: | |
| # Set the GA parameters below | |
| # Execute the script from the top-level of the static site | |
| # |
| Window: { | |
| barColor: '#000', | |
| barImage: 'header.png', | |
| backgroundColor: "#fff" | |
| }, | |
| TextArea: { | |
| autocapitalization: Ti.UI.TEXT_AUTOCAPITALIZATION_NONE, | |
| autocorrect: false | |
| }, |