Skip to content

Instantly share code, notes, and snippets.

FROM alpine:latest
RUN apk update
RUN apk add bash build-base wget vim openssl openssl-dev pcre pcre-dev perl \
git unzip libuuid util-linux-dev dnsmasq
RUN mkdir -p /root/source && mkdir /opt && mkdir /kong
ENV PATH="/opt/luajit/bin:/opt/luarocks/bin:/opt/openresty/bin:/opt/openresty/nginx/sbin/:$PATH"
RUN cd /root/source && wget http://luajit.org/download/LuaJIT-2.1.0-beta2.tar.gz && \
tar -xzf LuaJIT-*.tar.gz && \
diff --git a/c2d.gyp b/c2d.gyp
index 0c2bdbb..38f4797 100644
--- a/c2d.gyp
+++ b/c2d.gyp
@@ -29,5 +29,18 @@
],
}],
],
- }],
+ },
@konobi
konobi / SmartOS.vmx
Created October 19, 2015 19:11
smartos-appcatalyst-vmx
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "11"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1024"
ide1:0.present = "FALSE"
ehci.pcislotnumber = "-1"
ehci.present = "FALSE"
ethernet0.present = "TRUE"
21:08:15:argoz:~/devel/cloudtone/kwalitee:-> bin/kwalitee.js . -v
Kwalitee Score: 100%
package_checker:
packagename_does_not_include_node:
1 (1 / 1)
package_has_repo:
1 (1 / 1)
package_has_sufficient_description:
1 (2 / 2)
@konobi
konobi / stuff.md
Last active August 29, 2015 14:25
DHCP RFC matrix
Option Number Option Name 1497 1533 2132 3679 huh?
1 subNetMask
2 timeOffset
3 routers
4 timeServer
5 nameServer
6 dnsServer
7 logServer
@konobi
konobi / gist:9553410
Created March 14, 2014 18:08
keybase.md
### Keybase proof
I hereby claim:
* I am konobi on github.
* I am konobi (https://keybase.io/konobi) on keybase.
* I have a public key whose fingerprint is 9FD3 B138 9661 96F7 8F8D 5355 2582 8A53 F011 93D3
To claim this, I am signing this object:
[root@wardrobe /usr/ports]# ps auxwH
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 10 87.2 1.3 0 7016 - RL 11:27PM 664:11.83 [idle]
root 0 79.6 1.3 0 7048 - DLs 11:27PM 360:03.11 [kernel/thread taskq]
root 0 0.0 1.3 0 7048 - DLs 11:27PM 0:00.58 [kernel/swapper]
root 0 0.0 1.3 0 7048 - DLs 11:27PM 0:00.00 [kernel/firmware tas]
root 0 0.0 1.3 0 7048 - DLs 11:27PM 0:00.00 [kernel/ffs_trim tas]
root 0 0.0 1.3 0 7048 - DLs 11:27PM 0:00.00 [kernel/kqueue taskq]
root 0 0.0 1.3 0 7048 - DLs 11:27PM 0:44.13 [kernel/dummynet]
root 1 0.0 0.0 9404 144 - ILs 11:27PM 0:00.05 /sbin/init --
[root@wardrobe /usr/ports]# ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
root 10 90.0 1.3 0 7016 - RL 11:27PM 630:24.78 [idle]
root 0 61.9 1.3 0 7048 - RLs 11:27PM 337:01.52 [kernel]
root 1 0.0 0.0 9404 144 - ILs 11:27PM 0:00.05 /sbin/init --
root 2 0.0 1.3 0 7016 - DL 11:27PM 0:00.00 [crypto]
root 3 0.0 1.3 0 7016 - DL 11:27PM 0:00.00 [crypto returns]
root 4 0.0 1.3 0 7016 - DL 11:27PM 0:54.64 [pf purge]
root 5 0.0 1.3 0 7016 - DL 11:27PM 0:00.00 [xpt_thrd]
root 6 0.0 1.3 0 7016 - DL 11:27PM 1:37.19 [pagedaemon]
@konobi
konobi / index.js.diff
Created July 28, 2013 03:01
update to node-mocked to reflect reality better... uses a kinda hacky method, but should work.
diff --git a/lib/index.js b/lib/index.js
index e3fde1b..5dd58ae 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -22,8 +22,15 @@ module = module.exports = function (mock_path, libs){
var new_path = path;
var foo = libs.filter(function(libname){
- // XXX - this check may not be sufficient =0(
- return path.match(new RegExp(libname+'$'));
/*
The MIT License (MIT)
Copyright (c) 2013 Cloudtone Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is