- https://www.lua.org/pil/contents.html lua book
- https://www.lua.org/manual/5.1/manual.html lua reference manual
- https://nginx-lua.readthedocs.io/en/latest/examples/lua-nginx-module/
- https://github.com/openresty/lua-nginx-module
- https://github.com/fabiocicerchia/nginx-lua/tree/main
- https://github.com/fabiocicerchia/nginx-lua/blob/main/docs/lua-nginx-module/nginx-api-for-lua.md
- https://github.com/spacewander/openresty-vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dev="eth0" | |
ip_local="10.8.0.0" | |
cut_ip_local() { | |
if [ -n "$ip_local" ]; then | |
ip_local_byte1=`echo "$ip_local" | cut -d. -f1` | |
ip_local_byte2=`echo "$ip_local" | cut -d. -f2` | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# pragma pylint: disable=bad-whitespace | |
############################################################################### | |
# ntpq.py - Python NTP control library. | |
# Copyright (C) 2017 Sven Mäder (@rda0 on github) | |
# Copyright (C) 2016 Peter C. Norton (@pcn on github) | |
# | |
# this addition to ntplib is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU Lesser General Public License as published by the |