Skip to content

Instantly share code, notes, and snippets.

View develCuy's full-sized avatar
🎯
Focusing

Fernando develCuy

🎯
Focusing
View GitHub Profile
@develCuy
develCuy / sendmail.lua
Created April 8, 2015 01:24
fake sendmail / just another null mailer written in Lua and seawolf
#!/usr/bin/env lua5.1
local seawolf = require 'seawolf'.__build('variable', 'behaviour')
local print_r = seawolf.variable.print_r
local temp_dir = seawolf.behaviour.temp_dir
local ts = os.date('%Y-%m-%d %H:%M:%S')
local output = ([[----
-- %s
@develCuy
develCuy / config.lua
Last active July 21, 2016 00:20
Luarocks /etc/luarocks/config.lua
rocks_servers = {
-- [[http://luarocks.org/repositories/rocks]]
'http://luarocks.org:8080',
'http://luarocks.org:8080/dev',
}
rocks_trees = {
home..[[/.luarocks]],
[[/usr/local]]
}
@develCuy
develCuy / gist:3dbf213bca4f9087f3b8
Created August 1, 2014 21:24
devcoind 0.9... errors/warnings
In file included from bitcoinrpc.h:17:0,
from rpcwallet.cpp:10:
json/json_spirit_writer_template.h: In function ‘String_type json_spirit::non_printable_to_string(unsigned int)’:
json/json_spirit_writer_template.h:31:50: warning: typedef ‘Char_type’ locally defined but not used [-Wunused-local-typedefs]
typedef typename String_type::value_type Char_type;
@develCuy
develCuy / gist:11263308
Created April 24, 2014 17:48
Ophal version of route(menu) callbacks(ala D6/D7):
--[[
Implements hook route().
]]
function route()
items = {}
-- Local callback, no arguments
items['frontpage'] = {
page_callback = 'front_page',