Skip to content

Instantly share code, notes, and snippets.

@sayar
sayar / enable_mod_deflate.conf
Created October 8, 2012 16:46
Enable mod_deflate on Apache for Elastic Beanstalk
# mod_deflate configuration
<IfModule mod_deflate.c>
# Restrict compression to these MIME types
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xml+rss
AddOutputFilterByType DEFLATE application/x-javascript
@sayar
sayar / gist:5832606
Created June 21, 2013 16:54
wporg example
var wp = require('wporg');
var client = wp.createClient({
username: "username",
password: "password",
url: "http://example.com/xmlrpc.php"
});
client.getUsersBlogs(function(err, data){
if(err){