Skip to content

Instantly share code, notes, and snippets.

View develCuy's full-sized avatar
🎯
Focusing

Fernando develCuy

🎯
Focusing
View GitHub Profile
@crittermike
crittermike / ExampleModuleController.php
Last active June 17, 2021 12:55
Example of overriding a route controller in Drupal 8
<?php
/**
* @file
* Contains \Drupal\example_module\Controller\ExampleModuleController.
*/
// THIS FILE BELONGS AT /example_module/src/Controller/ExampleModuleController.php
namespace Drupal\example_module\Controller;
@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]]
}