Skip to content

Instantly share code, notes, and snippets.

tc@box:~/ProBot$ git push
Enter passphrase for key '/home/tc/.ssh/id_rsa':
To git@github.com:FurryHead/ProBot.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:FurryHead/ProBot.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'Note about
fast-forwards' section of 'git push --help' for details.
tc@box:~/ProBot$
local logfh = nil
function c()
local logfh, err = ...
end
c()
string
xpcall
package
tostring
print
os
unpack
require
getfenv
setmetatable
tc@box:~/ProBot$ git commit -a -m "Restricted plugins to certain functions"
[origin 66169eb] Restricted plugins to certain functions
4 files changed, 37 insertions(+), 18 deletions(-)
tc@box:~/ProBot$ git push -u origin master
Enter passphrase for key '/home/tc/.ssh/id_rsa':
Branch master set up to track remote branch master from origin.
Everything up-to-date
tc@box:~/ProBot$
tc@box:~/ProBot$ git status
# On branch origin
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# config.lua
# plugins/logs/
nothing added to commit but untracked files present (use "git add" to track)
tc@box:~/ProBot$
function main()
-- Some processing
if cmd == "bla" then
-- we got a command, pass it off to the thread manager
handle_command(cmd_function, ...)
end
end --loop
function handle_command(func, ...)
dofile("irc.lua")
function main()
local servers = {}
for _,v in ipairs(IRC_SERVERS) do
servers[#servers+1] = lanes.gen("*", {globals = _G}, StartWithConfig)(v)
end
local done = false
local found = false
while not done do
for _,v in ipairs(servers) do
require 'lanes'
function sqr()
print(5*5)
end
function middleman()
sqr()
end
require 'lanes'
function sqr()
print(5*5)
end
function middleman()
sqr()
end
require 'lanes'
function sqr()
print(5*5)
end
function middleman()
sqr()
end