Skip to content

Instantly share code, notes, and snippets.

View cyrille-leclerc's full-sized avatar

Cyrille Le Clerc cyrille-leclerc

View GitHub Profile
{
"queries": [
{
"objectName": "cocktail:type=CocktailManager,name=CocktailManager",
"resultAlias": "cocktail",
"attributes": [
"AddedCommentCount",
"CreatedCocktailCount",
"DisplayedCocktailCount",
"SearchedCocktailCount",
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jmxtrans="http://www.jmxtrans.org/schema/embedded"
xsi:schemaLocation="...
http://www.jmxtrans.org/schema/embedded http://www.jmxtrans.org/schema/embedded/jmxtrans-1.0.xsd">
<context:annotation-config/>
<jmxtrans:jmxtrans>
<jmxtrans:configuration>classpath:jmxtrans.json</jmxtrans:configuration>
<jmxtrans:configuration>classpath:org/jmxtrans/embedded/config/tomcat-6.json</jmxtrans:configuration>
@cyrille-leclerc
cyrille-leclerc / gist:5602173
Created May 17, 2013 21:39
bees app:info cyrille-leclerc/gf3-test-128mb
bees app:info cyrille-leclerc/gf3-test-128mb
WARNING: Cannot set BOOTSTRAP_VERSION
Application : cyrille-leclerc/gf3-test-128mb
Title : cyrille-leclerc/gf3-test-128mb
Created : Fri May 17 23:35:47 CEST 2013
Status : active
URL : gf3-test-128mb.cyrille-leclerc.cloudbees.net
clusterSize : 1
container : java_free
containerType : glassfish3-v2
$top -pid <<glassfish3-clickstack>>
#
#
#
Load Avg: 2.53, 1.99, 1.82 CPU usage: 3.82% user, 3.15% sys, 93.1% idle
SharedLibs: 11M resident, 5696K data, 0B linkedit.
MemRegions: 67883 total, 4012M resident, 66M private, 1430M shared.
PhysMem: 1880M wired, 3137M active, 3126M inactive, 8144M used, 41M free.
VM: 364G vsize, 1052M framework vsize, 15536534(14) pageins, 711557(0) pageouts.
Networks: packets: 3528976/1918M in, 1565539/244M out.
@cyrille-leclerc
cyrille-leclerc / jenkins.xml
Last active December 20, 2015 09:49
raw jenkins.xml to variabilise for Clickstart templates
<?xml version='1.0' encoding='UTF-8'?>
<maven2-moduleset plugin="maven-plugin@1.509.2.5">
<actions/>
<description></description>
<logRotator class="hudson.tasks.LogRotator">
<daysToKeep>60</daysToKeep>
<numToKeep>-1</numToKeep>
<artifactDaysToKeep>-1</artifactDaysToKeep>
<artifactNumToKeep>20</artifactNumToKeep>
</logRotator>
$ bees app:instance:list gf3-debug-1713
Instance ID : cyrille-leclerc/9ba06407-cfc37263
#proxyConfig : {"use_ssl":false,"disable_proxy_buffering":"true"}
#revproxy : stax.revproxy
#server ID : admin/stax.genapp.5412f454
#serverIP : 10.190.201.20
application ID : cyrille-leclerc/gf3-debug-1713
deployed : 2013-08-08T15:14:40+00:00
host : ec2-23-20-174-143.compute-1.amazonaws.com
nodeName : i-21e4b84e
@cyrille-leclerc
cyrille-leclerc / Failing Remote Shell Script invocation
Created August 8, 2013 15:59
Arguments are not passed to the shell script
bees app:instance:invoke -i cyrille-leclerc/4b9ba562-cbf3ba08 --script jmx_invoker --args="-on *:* -l"
Exit code: 1
INVALID INVOCATION: Option "-on (--object-name)" is required
Arguments: --pid-file /var/genapp/apps/4b9ba562/.genapp/app_pid
Usage:
--pid-file PID_FILE : PID FILE of the JVM to attach to.
--pid or --pid-file required
-attr (--attribute) ATTRIBUTE_NAME : attribute to read or to update. If a
[VAL] : VAL is passed, then it is a write
action, otherwise, it is a read action
{
"firstName":"Cyrille",
"lastName":"Le Clerc",
"email": "cleclerc+aws@gmail.com",
"company": "France",
"source": "AWS",
"sourceTrial": "other (cje)",
"country": "France",
"requestTime": "Tue Mar 1 19:56:58 CET 2016",
"instanceId": "123456789"
@cyrille-leclerc
cyrille-leclerc / 00-command.sh
Created March 11, 2016 12:20
aws ec2 run-instances
aws --profile adminuser ec2 run-instances \
--image-id ami-d55f79bf \
--instance-type m3.medium \
--count 1 \
--key-name alliances-team \
--security-group-ids sg-cd5696a0
@cyrille-leclerc
cyrille-leclerc / 0-oo-install-cfg.yml
Last active March 11, 2016 14:30
rht openshift enterprise install logs
---
Name: OpenShift Installer Configuration
Vendor: OpenShift Origin Community
Description: This is the configuration file for the OpenShift Installer.
Version: 0.0.1
Deployment:
Hosts:
- host: openshift-enterprise.example.com
roles:
- nameserver