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 | |
# Author: Chmouel Boudjnah <[email protected]> | |
# Not officially supported by Rackspace only as a best effort basis :) | |
# Define yes to make it to copy to url to clipboard (via a shortened url | |
# service) You need to have the software xclip installed in your system. | |
COPY_URL_TO_CLIPBOARD=yes | |
# Containers to ignore in the list | |
CONTAINERS_TO_IGNORE=".CDN_ACCESS_LOGS" |
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
var HTTPParser = process.binding('http_parser').HTTPParser; | |
var parser = require("http").parsers.alloc(); | |
parser.reinitialize(HTTPParser.RESPONSE); | |
parser.onBody = function(body) { | |
console.log(body.toString()); | |
} | |
parser.onIncoming = function(response) { | |
console.log(response.headers); | |
console.log(response.statusCode); |
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
# app/admin/email_previews.rb | |
ActiveAdmin.register_page 'Email Previews' do | |
content do | |
div '.' | |
end | |
sidebar 'Mail Previews' do | |
Dir['app/mailer_previews/*_preview.rb'].each do |preview_path| | |
preview_mailer = File.basename(preview_path, '.rb') |