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
| # Add rack-cache and dali to your gemfile. | |
| # gem 'rack-cache' | |
| # gem 'dali' | |
| Imprenta.configure do |config| | |
| client = Dalli::Client.new('localhost:11211', | |
| :value_max_bytes => 10485760) | |
| config.middlewares.use Rack::Cache, |
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
| Imprenta.configure do |config| | |
| config.storage :s3 | |
| config.middlewares.use Bugsnag::Rack | |
| config.aws_bucket = "bucket" | |
| config.aws_access_key_id = "xxxxid" | |
| config.aws_secret_access_key = "xxxkey" | |
| end |
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
| imprenta_cache_template(template: "path/to/template", | |
| layout: 'application', | |
| id: 'mytemplateid') |
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
| get 'mystatic-pages/:id', :to => Imprenta.server |
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
| # Description: | |
| # Utility commands to enable/disable and show status of continuous deployment. | |
| # | |
| # Commands: | |
| # hubot continuous deployment disable - Disables continuous deployment | |
| # hubot continuous deployment enable - Enables continuous deployment | |
| # hubot continuous deployment status- Displays the status of continuous deployment | |
| util = require 'util' | |
| querystring = require('querystring'); | |
| module.exports = (robot) -> |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
| AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T | |
| Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw | |
| NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2 |
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
| # Null Object Pattern: | |
| # http://devblog.avdi.org/2011/05/30/null-objects-and-falsiness/ | |
| require 'delegate' | |
| RUBY_VERSION # => "2.0.0" | |
| class NullObject | |
| def method_missing(*args, &block) | |
| self |
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
| { | |
| "kind": "cluster#pod", | |
| "id": "redis-master", | |
| "labels": { | |
| "name": "redis-master" | |
| }, | |
| "desiredState": { | |
| "manifest": { | |
| "version": "", | |
| "volumes": null, |
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
| ee565277f836: Pushing [================================> ] 7.67 MB/11.93 MB 34s | |
| 2014/06/28 17:17:37 Failed to upload layer: Put https://registry-1.docker.io/v1/images/ee565277f836cef00fce06a5b9ffde760a2932f7b76f63226924d049187bc40c/layer: read tcp 107.22.52.107:443: i/o timeout |
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
| <?php | |
| // source: https://secure.phabricator.com/D10405 | |
| // author: josh-newman | |
| final class ArcanistScalastyleLinter extends ArcanistExternalLinter { | |
| private $jarPath = null; | |
| private $configPath = null; | |
| public function getInfoURI() { | |
| return 'http://www.scalastyle.org/'; |