Skip to content

Instantly share code, notes, and snippets.

View shukitchan's full-sized avatar
:octocat:
Proscrastinating

Kit Chan shukitchan

:octocat:
Proscrastinating
View GitHub Profile
@shukitchan
shukitchan / maxminddb.lua.patch
Last active August 16, 2020 18:03
Patch for anjia0532/lua-resty-maxminddb
diff --git lib/resty/maxminddb.lua lib/resty/maxminddb.lua
index 1c72f1a..80acc78 100644
--- lib/resty/maxminddb.lua
+++ lib/resty/maxminddb.lua
@@ -13,14 +13,14 @@
]]
-- copy from https://github.com/lilien1010/lua-resty-maxminddb/blob/f96633e2428f8f7bcc1e2a7a28b747b33233a8db/resty/maxminddb.lua#L5-L12
-local json = require('cjson')
-local json_encode = json.encode
@shukitchan
shukitchan / test.txt
Last active September 17, 2015 22:33
test
11.222.222.11
11.222.222.22
11.222.222.33
11.222.211.11
asd asd asd