Skip to content

Instantly share code, notes, and snippets.

@jbianquetti
jbianquetti / Download compile and install
Created November 28, 2012 16:17 — forked from lionelg3/Download compile and install
Installation JBossAS 7.1.3-Final on Debian 6
export MAVEN_OPTS="-Xmx1024m"
git clone git://github.com/jbossas/jboss-as.git
cd jboss-as
git checkout 7.1.3.Final
mvn install -DskipTests
mv build/target/jboss-as-7.1.3.Final /opt
apt-get install libaio1
cd /opt
tar xvfz /home/me/jboss-as-7.1.3.Final.tar.gz
#!/usr/bin/env python
#
# dump route53 zones
#
import boto.route53
import boto.exception
import os
import re
import sys
@jbianquetti
jbianquetti / S3_static_website_hosting_routing_rules
Last active December 24, 2015 13:59 — forked from philfreo/bucket_policy.js
How to make a public bucket.
All routes under welvi/ redirects to 503.html
<RoutingRules>
<RoutingRule>
<Condition>
<KeyPrefixEquals>welvi/</KeyPrefixEquals>
</Condition>
<Redirect>
<ReplaceKeyWith>503.html</ReplaceKeyWith>
</Redirect>
def fib(n)
(0..n).inject([1,0]) { |(a,b), _| [b, a+b] }[0]
end