Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am leowmjw on github.
  • I am leow (https://keybase.io/leow) on keybase.
  • I have a public key ASAzOwld-mhabnckPNFqbUJlnOYLNBpVUrtO5Ut5AUYiEQo

To claim this, I am signing this object:

@leowmjw
leowmjw / cluster-elasticsearch.hcl
Created September 9, 2017 19:45
cluster-elasticsearch.hcl
job "search" {
datacenters = [
"dc1"
]
type = "service"
update {
stagger = "10s"
max_parallel = 1
}
@leowmjw
leowmjw / elasticsearch.hcl
Created August 31, 2017 10:26
Single Node ElasticSearch Job Specification
job "search" {
datacenters = [
"dc1"
]
type = "service"
update {
stagger = "10s"
max_parallel = 1
}
@leowmjw
leowmjw / README.md
Last active May 25, 2017 06:37
Binaries for Retry Join for Azure; based on Consul 8.1

Latest binaries for PR hashicorp/consul#2978

Binaries cross compiled with the standard gox; and will be used for Nomad-Box (https://github.com/leowmjw/nomad-box) until it gets reviewed and incorporated into master branch.

Config (config.json inside consul.d) looks like below:

{
    "addresses": {
        "http": "10.0.51.4"
    },
@leowmjw
leowmjw / azurerm_debug_plan
Created August 1, 2016 14:02
Debug log when Plan for AzureRM Provider
leow$ cat fail.log
2016/08/01 21:48:56 [INFO] Terraform version: 0.7.0 dev d85007b55a3b7553b7f855241a392e0596895144
2016/08/01 21:48:56 [DEBUG] Detected home directory from env var: /Users/leow
2016/08/01 21:48:56 [DEBUG] Detected home directory from env var: /Users/leow
2016/08/01 21:48:56 [DEBUG] Attempting to open CLI config file: /Users/leow/.terraformrc
2016/08/01 21:48:56 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/01 21:48:56 [DEBUG] Detected home directory from env var: /Users/leow
2016/08/01 21:48:56 [DEBUG] New state was assigned lineage "0164f02c-e36b-4628-88bc-22a99ecfa55e"
2016/08/01 21:48:56 [DEBUG] Pruning provider with no dependencies: provider.azurerm.sinar_proj (disabled)
2016/08/01 21:48:56 [DEBUG] DestroyEdgeInclude: Checking: azurerm_resource_group.development

Binaries (test) for Trusty Base, with basic PHP app type fixes Compiled from this version: hashicorp/otto#515

@leowmjw
leowmjw / ADUNs-current-missing-org
Created April 14, 2016 08:31
ADUNs with starting date >= 2013 with no link to Organization
[
{
"myname": "A. Rahman Bin Mokhtar",
"myorg": [
null,
null
],
"mypost": [
"545f7f855222837c2c05b8dc",
"ADUN for Opar"
@leowmjw
leowmjw / MPs-current-missing-org
Created April 13, 2016 18:28
Analysis of current PopIt data for MPs currently elected not linked with Organization
[
{
"myname": "Mahdzir Khalid",
"myorg": [
null,
null
],
"mypost": [
"5365ae0c19ee29270d8a9f03",
"MP for Padang Terap"
@leowmjw
leowmjw / gist:e573959029edc6c7e776
Last active March 16, 2016 04:10
Docker start for OpenSpending freezes
bash-3.2$ ./docker-start-dev.sh
Starting dockerconfig_os-packager_1
Starting fakes3
Starting dockerconfig_frontend_1
Building os-viewer
Step 1 : FROM gliderlabs/alpine:3.3
---> d4ca4bcb9d96
Step 2 : RUN apk add --update python git nodejs
---> Using cache
---> 30a2063a7c1c
@leowmjw
leowmjw / Sabah_Gazette.txt
Created February 20, 2016 04:58
Sabah Gazette
W ARTAKERAJAAN PERSEKUTUAN
FEDERAL GOVERNMENT
GAZETTE
12 Februari 2016
12 February 2016
P.U. [B] 57
NOTIS MENGENAI DAERAH MENGUNDI,
PUSAT MENGUNDI DAN DAFTAR PEMILIH INDUK BAGI
BAHAGIAN-BAHAGIAN PILIHAN RAYA PERSEKUTUAN
DAN NEGERI BAGI NEGERI SABAH