代码搜索:Lua

找到约 9,588 项符合「Lua」的源代码

代码结果 9,588
www.eeworm.com/read/492380/1174802

lua main.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') limit = 25 data = readlines('logread | tail -n ' .. limit, 0, true) io.write(json.encode(data))
www.eeworm.com/read/492380/1174811

lua extramodules.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('json') -- get list of installed packages and convert to table f = io.popen('opkg list_installed') installed = {} for line in f:lines() do p
www.eeworm.com/read/492380/1174812

lua main.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = readlines('opkg list_installed', 0, true) io.write(json.encode(data))
www.eeworm.com/read/492380/1174821

lua save.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') tmpfile = os.getenv('FORM_uploadfile') pkgname = os.getenv('FORM_uploadfile_name') out = { done = 1 } if (tmpfile ~= nil and pkgn
www.eeworm.com/read/492380/1174822

lua delete.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = datajson() or {} if (data['id'] ~= nil) then out = table.unique(readlines('opkg remove ' .. data['id'] .. ' 2>&1', 0 , true)
www.eeworm.com/read/492380/1174823

lua main.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') cfg = uci.init('ssmtp', 'ssmtp', 'ssmtp') cfgvars = { values = {}, params = { id = 'ssmtp' } } if (cfg ~= nil) then fi
www.eeworm.com/read/492380/1174830

lua save.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = datajson() -- check data, id and values are passed if (data ~= nil and data['values'] ~= nil) then file = 'ssmtp' uci.init(
www.eeworm.com/read/492380/1174831

lua main.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = {} data['cpuinfo'] = readlines('/proc/cpuinfo') data['meminfo'] = readlines('/proc/meminfo') data['partitions'] = readlines('d
www.eeworm.com/read/492380/1174836

lua main.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = {} data.dhcp = uci.get_all('dhcp') data.network = uci.get_all('network') io.write(json.encode( data ))
www.eeworm.com/read/492380/1174845

lua save.lua

#!/usr/bin/lua -- Copyright (C) 2008 OpenRB.com require('fslib') data = datajson() if (data ~= nil and data['id'] ~= nil and data['values'] ~= nil) then file = 'dhcp' uci.init(file, data['id'],