Skip to content

Instantly share code, notes, and snippets.

View ExpirationWithLimitedConnectionsTest.java
//========================================================================
//Copyright 2012-2012 Mort Bay Consulting Pty. Ltd.
//------------------------------------------------------------------------
//All rights reserved. This program and the accompanying materials
//are made available under the terms of the Eclipse Public License v1.0
//and Apache License v2.0 which accompanies this distribution.
//The Eclipse Public License is available at
//http://www.eclipse.org/legal/epl-v10.html
//The Apache License v2.0 is available at
//http://www.opensource.org/licenses/apache2.0.php
@usmanismail
usmanismail / setup-statsd.sh
Created Jul 17, 2012 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
View setup-statsd.sh
#Make sure repo indices are up to date
sudo apt-get update
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
@usmanismail
usmanismail / seyren_cloudfront.json
Created Oct 20, 2012
A cloud front template to bring up a seyren node
View seyren_cloudfront.json
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
View gist:5085216
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A template to install mysql and jetty",
"Parameters": {
"KeyName": {
"Description": "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type": "String"
},
"ContextUrl": {
"Description": "A URL for the jetty context file",
View client-jenkins.css
body {
background: #63818a;
background: -moz-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #63818a), color-stop(100%, #73939b));
background: -webkit-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -o-linear-gradient(top, #63818a 0%, #73939b 100%);
background: -ms-linear-gradient(top, #63818a 0%, #73939b 100%);
background: linear-gradient(top, #63818a 0%, #73939b 100%); }
h1, h2, h3, h4, h5, h6 {
View seyren_cloudfront.json
{
"AWSTemplateFormatVersion" : "2010-09-09",
"Description" : "AWS CloudFormation Sample Template creates a seyren application. The template uses the WaitCondition resource to synchronize creation of the stack with the application becoming healthy. **WARNING** This template creates an Amazon EC2 instance and an Elastic IP Address. You will be billed for the AWS resources used if you create a stack from this template.",
"Parameters" : {
"KeyName" : {
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instance",
"Type" : "String"
},
View gist:8794692
/jenkins/workspace/apocalypse-packages-assets-win7/tools/AftTools/Windows/png2atf.exe
mono Apocalypse.exe -s -p -l -o /jenkins/workspace/apocalypse-packages-assets-win7/tmp/update4/ -j /jenkins/workspace/apocalypse-packages-assets-win7/content/4.r1_Update4/update4.apocalypse -y png2atf=/jenkins/workspace/apocalypse-packages-assets-win7/tools/AtfTools/Windows/png2atf.exe,protofy=/jenkins/workspace/apocalypse-packages-assets-win7/trunk/tools/protofy-in-a-box/bin/protofy-in-a-box.jar,assetpacker=/jenkins/workspace/apocalypse-packages-assets-win7/tools/asset-packer/bin/asset-packer.jar
cp -R /jenkins/workspace/apocalypse-packages-assets-win7/tmp/update4/packages/* /jenkins/workspace/apocalypse-packages-assets-win7/packages/4.r1_Update4/
./tools/scripts/jenkinsBuild/apocalypseBuild.sh /jenkins/workspace/apocalypse-package-assets-win7 2014-02-03_15-23-10 true
View maluuba_formatter
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="13">
<profile kind="CodeFormatterProfile" name="MaluubaStyle" version="13">
<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.disabling_tag" value="@formatter:off"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
View public.pem
-----BEGIN CERTIFICATE-----
MIIFIzCCBAugAwIBAgIHKz0N6mU3GDANBgkqhkiG9w0BAQsFADCBtDELMAkGA1UE
BhMCVVMxEDAOBgNVBAgTB0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAY
BgNVBAoTEUdvRGFkZHkuY29tLCBJbmMuMS0wKwYDVQQLEyRodHRwOi8vY2VydHMu
Z29kYWRkeS5jb20vcmVwb3NpdG9yeS8xMzAxBgNVBAMTKkdvIERhZGR5IFNlY3Vy
ZSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjAeFw0xNDA0MDkxNzE1MTdaFw0x
NDEyMDExODAzMjJaMDsxITAfBgNVBAsTGERvbWFpbiBDb250cm9sIFZhbGlkYXRl
ZDEWMBQGA1UEAwwNKi5tYWx1dWJhLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP
ADCCAQoCggEBALlgm8+Vd/fr4otJu3GMk6aC106fHYUtuDTZQeHkOm4ntBOmTQ63
RviOiSTwlE8sILfARmQmoOhzXZw39GH8j2GWozca/yQxnbWUIRUVn8gv5VZE3bXc
View gist:02b10b673413e6317f4b
* Delegate (m3.medium)
* [ ]delegate
* [X]sync
* Group 1 (m3.medium)