Skip to content

Instantly share code, notes, and snippets.

@leowmjw
leowmjw / mongo_all_vmm.d
Created December 5, 2011 03:23
KLMUG4 DTrace scripts, results, transcripts
vminfo:::
/execname == "mongod" && start == 0/
{
/*
* This is the first time that a vminfo probe has been hit; record
* our initial timestamp.
*/
start = timestamp;
}
@leowmjw
leowmjw / dtrace-bug.3380.txt
Created April 6, 2012 13:22
Compilation log for Fedora 16 - 3.3.0-8.fc16.x86_64
date=Sun Mar 11 22:33:54 GMT 2012
release=dtrace-20120311
build=379
/home/leow/SANDBOX/DTRACE/dtrace-20120311
Fri Apr 6 19:27:37 MYT 2012
$ uname -a:
Linux belinda 3.3.0-8.fc16.x86_64 #1 SMP Thu Mar 29 18:37:19 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
Fedora release 16 (Verne)
$ cat /etc/motd
@leowmjw
leowmjw / compile-NR_ia32_undeclared
Created April 9, 2012 08:58
Compilation log for Fedora 16 - NR_ia32_* undeclared
Executing: /home/leow/SANDBOX/DTRACE/dtrace-20120311/tools/make-me
make -C /lib/modules/3.3.1-2.fc16.x86_64/build M=/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver
CC [M] /home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.o
/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.c: In function 'dtrace_systrace_syscall_clone_ia32':
/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.c:1248:1: error: 'NR_ia32_clone' undeclared (first use in this function)
/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.c:1248:1: note: each undeclared identifier is reported only once for each function it appears in
/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.c: In function 'dtrace_systrace_syscall_execve_ia32':
/home/leow/SANDBOX/DTRACE/dtrace-20120311/build-3.3.1-2.fc16.x86_64/driver/systrace.c:1249:1: error: 'NR_ia32_execve' undecl
@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
@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 / 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 / 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"

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

@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
@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"
    },