Skip to content

Instantly share code, notes, and snippets.

View mfeldheim's full-sized avatar

Michel Feldheim mfeldheim

View GitHub Profile
@mfeldheim
mfeldheim / moderationQueue.json
Created August 26, 2015 10:56
moderationQueue.json
{
"command":"create",
"countryCode":"de",
"listingId":null,
"payload":{
"id":null,
"source_id":"594373",
"name":"Opendi AG",
"designation":"Second Name",
"tagline":"Slogan",

Keybase proof

I hereby claim:

  • I am mfeldheim on github.
  • I am mfeldheim (https://keybase.io/mfeldheim) on keybase.
  • I have a public key whose fingerprint is 02C8 526D A1A0 2BFF D4A0 19CD 4877 D324 384C 42E3

To claim this, I am signing this object:

{"version":1,"collections":[{"id":"7ada4601-efa2-cde6-10f6-e09f39f944fa","name":"opendi API calls","timestamp":1409938002852,"requests":[{"collectionId":"7ada4601-efa2-cde6-10f6-e09f39f944fa","id":"fecef485-d070-4e9d-8e9b-1ba6aba9f1be","name":"Purge Request","description":"Purge Request on the opsworks api server","url":"http://api-2043126349.eu-west-1.elb.amazonaws.com/maintenance/de/purge/url/http://www.stadtbranchenbuch.com/","method":"GET","headers":"opendi-api: 0acd99f3386aa36fb6484b2f843b1097\nHost: api.opendi.com\n","data":[],"dataMode":"params","timestamp":0,"version":2,"time":1410282440169}]}],"environments":[],"headerPresets":[],"globals":[]}
### Keybase proof
I hereby claim:
* I am mfeldheim on github.
* I am mfeldheim (https://keybase.io/mfeldheim) on keybase.
* I have a public key whose fingerprint is 02C8 526D A1A0 2BFF D4A0 19CD 4877 D324 384C 42E3
To claim this, I am signing this object:
#!/bin/sh
stackId=$1
appId=$2
echo "Waiting for OpsWorks deployment";
deploymentId=$(aws opsworks --region us-east-1 create-deployment --stack-id=$stackId --app-id=$appId --command "{\"Name\":\"deploy\"}" --comment="CircleCI test deploy" | grep "DeploymentId" | sed -E 's/.*": "([^"]+)".*/\1/g');
while [ $(aws opsworks --region us-east-1 describe-deployments --deployment-id=$deploymentId | grep "Status" | sed -E 's/.*Status": "([^"]+)".*/\1/g') = "running" ]; do
echo -ne "."; sleep 1;
done
@mfeldheim
mfeldheim / gist:b69b1c88c902841bb213
Last active August 29, 2015 14:16
kibana_dashboard_comptest
{
"title": "My Dashboard",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"query": "*",
"alias": "Total Logs",
"color": "#7EB26D",
@mfeldheim
mfeldheim / dbFetchScreen.sh
Created April 1, 2015 08:45
screenshotting jobs
#!/bin/bash
function print_message()
{
ADD_STRING="${1}"
shift
while [ -n "${1}" ]
@mfeldheim
mfeldheim / jmap.out
Created April 18, 2015 08:45
sudo -u logstash jmap -histo 24097 right after launch
num #instances #bytes class name
----------------------------------------------
1: 90308 61348544 [B
2: 100690 15243920 <constMethodKlass>
3: 100690 12902512 <methodKlass>
4: 12881 12549448 <constantPoolKlass>
5: 12881 10282792 <instanceKlassKlass>
6: 104367 8291488 [C
7: 11002 6394528 <constantPoolCacheKlass>
8: 106666 4142024 [Ljava.lang.Object;
@mfeldheim
mfeldheim / jmap.out
Created April 18, 2015 08:50
jmap 100k events later
num #instances #bytes class name
----------------------------------------------
1: 184361 716214928 [B
2: 423171 16926840 org.jruby.RubyString
3: 406836 16273440 org.jruby.RubyHash$RubyHashEntry
4: 101466 15345328 <constMethodKlass>
5: 101466 13001872 <methodKlass>
6: 13018 12681664 <constantPoolKlass>
7: 221347 10624656 org.jruby.RubyArray
8: 13018 10375848 <instanceKlassKlass>
@mfeldheim
mfeldheim / jmap.out
Created April 18, 2015 15:49
jmap with minimal configuration, close to max heap size
num #instances #bytes class name
----------------------------------------------
1: 353776 8370134320 [B
2: 6964 28611584 [Ljava.nio.ByteBuffer;
3: 87001 26234144 [I
4: 100044 15146880 <constMethodKlass>
5: 100044 12819824 <methodKlass>
6: 12754 12401216 <constantPoolKlass>
7: 284431 11377240 org.jruby.RubyString
8: 268206 10728240 org.jruby.RubyHash$RubyHashEntry