<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=LUA</id>
	<title>LUA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=LUA"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=LUA&amp;action=history"/>
	<updated>2026-05-10T14:55:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=LUA&amp;diff=169&amp;oldid=prev</id>
		<title>imported&gt;Jeremy-busk at 23:14, 4 June 2019</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=LUA&amp;diff=169&amp;oldid=prev"/>
		<updated>2019-06-04T23:14:58Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;# Requests Library&lt;br /&gt;
&lt;br /&gt;
https://github.com/JakobGreen/lua-requests#sending-data&lt;br /&gt;
&lt;br /&gt;
Ubuntu install&lt;br /&gt;
```&lt;br /&gt;
apt install -y luarocks lua5.3 lua-sec libssl-dev liblua5.3-dev lua-basexx&lt;br /&gt;
luarocks install lua-requests&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
# NGINX&lt;br /&gt;
&lt;br /&gt;
http {&lt;br /&gt;
    lua_package_path &amp;quot;/etc/nginx/lua/?.lua;;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
# Snippets&lt;br /&gt;
&lt;br /&gt;
https://github.com/openresty/lua-nginx-module&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
s = 'one two'&lt;br /&gt;
words = {}&lt;br /&gt;
for word in s:gmatch(&amp;quot;%w+&amp;quot;) do table.insert(words, word) end&lt;br /&gt;
print(words[2])&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
s = string.match('first last', '%S-$')&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
user_pass = &amp;quot;myuser:mypass&amp;quot;&lt;br /&gt;
username = string.match(user_pass, '(.*):')&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
##CJSON&lt;br /&gt;
```&lt;br /&gt;
local cjson = require &amp;quot;cjson&amp;quot;&lt;br /&gt;
if cjson.decode(ngx.var.request_body).method == &amp;quot;eth_accounts&amp;quot; then&lt;br /&gt;
   ngx.say('passes')&lt;br /&gt;
end&lt;br /&gt;
```&lt;br /&gt;
&lt;br /&gt;
# Crypto&lt;br /&gt;
&lt;br /&gt;
https://github.com/wahern/luaossl&lt;br /&gt;
&lt;br /&gt;
now you can support secp256k1 and others&lt;br /&gt;
&lt;br /&gt;
# JWT&lt;br /&gt;
&lt;br /&gt;
https://github.com/SkyLothar/lua-resty-jwt#methods&lt;br /&gt;
&lt;br /&gt;
or https://github.com/altexy/lua-resty-jwt&lt;br /&gt;
&lt;br /&gt;
doesn't appear to support ES512  maybe mix with the above or write your own lib&lt;br /&gt;
&lt;br /&gt;
limited &lt;br /&gt;
&lt;br /&gt;
# Resources&lt;br /&gt;
&lt;br /&gt;
* https://github.com/openresty/lua-nginx-module&lt;br /&gt;
* http://lua-users.org/wiki/PatternsTutorial&lt;br /&gt;
* http://lua-users.org/wiki/StringLibraryTutorial&lt;br /&gt;
* https://stackoverflow.com/questions/46151554/openresty-make-an-http-call-with-lua-and-return-its-parsed-result&lt;/div&gt;</summary>
		<author><name>imported&gt;Jeremy-busk</name></author>
	</entry>
</feed>