Skip to content

Instantly share code, notes, and snippets.

View filewalkwithme's full-sized avatar
😜

maicon filewalkwithme

😜
View GitHub Profile
@filewalkwithme
filewalkwithme / sample_wol.lua
Created June 4, 2012 00:01
Lua Wake-On-Lan Script
function split(str, pat)
local t = {}
local fpat = "(.-)" .. pat
local last_end = 1
local s, e, cap = str:find(fpat, 1)
while s do
if s ~= 1 or cap ~= "" then
table.insert(t,cap)
end
last_end = e+1