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
-- Copyright 2014 Paul Kulchenko, ZeroBrane LLC; All rights reserved | |
-- improvements by github.com/olueiro | |
local exe | |
local win = ide.osname == "Windows" | |
local init = [=[ | |
(loadstring or load)([[ | |
if pcall(require, "mobdebug") then | |
io.stdout:setvbuf('no') |
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 | |
apt-get -y update | |
apt-get -y install build-essential libpcre3-dev libssl-dev libgeoip-dev libpq-dev libxslt1-dev libgd2-xpm-dev curl | |
curl -L -o openresty-1.15.8.2.tar.gz https://openresty.org/download/openresty-1.15.8.2.tar.gz | |
tar -xvf openresty-1.15.8.2.tar.gz | |
cd openresty-1.15.8.2/ | |
./configure \ | |
--sbin-path=/usr/sbin/nginx \ |
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
--[==[ | |
(c) 2020 MIT licensed | |
Usage example: | |
local class = require("class") | |
-- local class = require("class").safe() -- add .safe() on require to make class safe (Lua pcall is wrapped in each class function) | |
local my_class = class.new(start_param_1, start_param_2 --[[, ...]]) |