Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Westergaard Lassen mwl

View GitHub Profile
@mwl
mwl / humio-agent.yaml
Last active Jun 6, 2018
Helm configuration for installing Humio Agent
View humio-agent.yaml
backend:
type: "es"
es:
host: "cloud.humio.com"
http_user: "<ingest-token>"
http_passwd: "none"
tls: on
tls_verify: on
tls_ca: |
-----BEGIN CERTIFICATE-----
View humio.marathon.json
{
"id": "/humio-agent",
"acceptedResourceRoles": [
"*",
"slave_public"
],
"cmd": "filebeat-5.6.0-linux-x86_64/filebeat -path.data=/var/humio/data -c filebeat-5.6.0-linux-x86_64/filebeat.yml -E \"name=${MESOS_SLAVE_ID}\" -E 'output.elasticsearch.hosts=[\"https://go.humio.com:443/api/v1/dataspaces/{DATASPACE}/ingest/elasticsearch\"]' -E 'output.elasticsearch.username={INGESTTOKEN}'",
"constraints": [["hostname","UNIQUE"]],
"container": {"type": "MESOS"},
"cpus": 0.1,
View vmware.log
2015-08-25T21:51:52.065Z| vmx| I125: Log for vmrun pid=1119 version=1.15.0 build=build-2985594 option=Release
2015-08-25T21:51:52.065Z| vmx| I125: The process is 64-bit.
2015-08-25T21:51:52.065Z| vmx| I125: Host codepage=UTF-8 encoding=UTF-8
2015-08-25T21:51:52.065Z| vmx| I125: Host is Mac OS X 10.11 (15A263e) Darwin 15.0.0
2015-08-25T21:51:51.991Z| vmx| I125: VTHREAD initialize main thread 0 "vmx" tid 14739
2015-08-25T21:51:51.997Z| vmx| I125: Msg_SetLocaleEx: HostLocale=UTF-8 UserLocale=en
2015-08-25T21:51:51.997Z| vmx| I125: DictionaryLoad: Cannot open file "/Applications/VMware Fusion.app/Contents/Library/messages/en/vmware.vmsg": No such file or directory.
2015-08-25T21:51:51.997Z| vmx| I125: Msg_Reset:
2015-08-25T21:51:51.997Z| vmx| I125: [msg.dictionary.load.openFailed] Cannot open file "/Applications/VMware Fusion.app/Contents/Library/messages/en/vmware.vmsg": No such file or directory.
2015-08-25T21:51:51.997Z| vmx| I125: ----------------------------------------
View vmware.log
2015-08-25T16:30:15.448Z| vmx| I125: Log for vmrun pid=1437 version=1.15.0 build=build-2985594 option=Release
2015-08-25T16:30:15.448Z| vmx| I125: The process is 64-bit.
2015-08-25T16:30:15.448Z| vmx| I125: Host codepage=UTF-8 encoding=UTF-8
2015-08-25T16:30:15.448Z| vmx| I125: Host is Mac OS X 10.11 (15A263e) Darwin 15.0.0
2015-08-25T16:30:15.358Z| vmx| I125: VTHREAD initialize main thread 0 "vmx" tid 9418
2015-08-25T16:30:15.364Z| vmx| I125: Msg_SetLocaleEx: HostLocale=UTF-8 UserLocale=en
2015-08-25T16:30:15.364Z| vmx| I125: DictionaryLoad: Cannot open file "/Applications/VMware Fusion.app/Contents/Library/messages/en/vmware.vmsg": No such file or directory.
2015-08-25T16:30:15.364Z| vmx| I125: Msg_Reset:
2015-08-25T16:30:15.364Z| vmx| I125: [msg.dictionary.load.openFailed] Cannot open file "/Applications/VMware Fusion.app/Contents/Library/messages/en/vmware.vmsg": No such file or directory.
2015-08-25T16:30:15.364Z| vmx| I125: ----------------------------------------
@mwl
mwl / 20150522-demo-todo.md
Last active Aug 29, 2015
22/5 Elasticsearch demo
View 20150522-demo-todo.md
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA5lXGBIBPPr96naa56NrlQqNJuiB+nlUzXJVeZJLgRCU5Z6TS5IO2KpIYQ5n1iz7UUzMjAAOCMRvOPHNRrSQBifoRw6f0DQBKfGcwtgDdRerVVdrnlUifeQZqJQ4BmjhghhTXrMRVy9yHLPyt+vMFRjst5bxVYO+aMePCw0I6FPHdUmOp5jQU8cBfOXHMqUDDwPLECluX+/vOXiDHNzEMBu0MBNyWrysaXHuV0nNh5BITrFe0XxBBpbY8lJtejIrrhWNTmfrLakw7z6p52zXZ+rEUSosWBSeMTNdSIemmeS1kh9lylC7lxikfkhQB4ixguluUZgY5uX3wbFHvufXmEQ== mwl@mwl-laptop
View keybase.md

Keybase proof

I hereby claim:

  • I am mwl on github.
  • I am mwl (https://keybase.io/mwl) on keybase.
  • I have a public key whose fingerprint is 87CF EF09 066E 5F28 2BDB 1999 A3E2 E4BD 83CB 0470

To claim this, I am signing this object:

View riak_stats.sh
#!/bin/bash
# * * * * * root /path/to/riak_stats.sh
set -e
SOURCE=$(hostname)
LIBRATO_USERID=""
LIBRATO_TOKEN=""
PREFIX="test.riak"
@mwl
mwl / post-update.sh
Last active Dec 16, 2015
post update hook with deploying staging gotoservers
View post-update.sh
#!/bin/bash
export GIT_DIR=$(pwd)
cd ~/gotoServers
mkdir -p .vagrant
mv .vagrant ../.gotoServers.vagrant
git checkout -f master
@mwl
mwl / pom.xml
Created Oct 23, 2011
Maven CI build profile
View pom.xml
<project ...>
...
<profiles>
<profile>
<id>ci</id>
<activation>
<property>
<name>env.USER</name>
<value>jenkins</value>
</property>