This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--hack to stop Corona going scientific | |
local _tostring = tostring | |
tostring = function( v ) | |
if type(v) == 'number' and v>10e12 then | |
return string.format("%.f", v) | |
end | |
return _tostring(v) | |
end | |
package.loaded[ 'json' ] = nil | |
package.loaded[ 'dkjson' ] = nil |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MYSQL_ROOT_PASSWORD=somerootpassword | |
MYSQL_DATABASE=wordpress | |
MYSQL_USER=wordpress | |
MYSQL_PASSWORD=wordpress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Spec Describe": { | |
"prefix": "describe", | |
"body": [ | |
"describe('$1', function() $0 end)" | |
], | |
"description": "Busted spec descibe statement" | |
}, | |
"Spec It": { | |
"prefix": "it", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
@table varchar(100), | |
@tmp varchar(max), | |
@usings varchar(100), | |
@namespace varchar(100), | |
@lf char(2), | |
@t char(1); | |
SET @table = 'action'; | |
SET @namespace = 'MyProject.Models'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
openproject: | |
container_name: openproject | |
image: openproject/community:7 | |
ports: | |
- 8080:80 | |
volumes: | |
- ./openproject/static:/var/db/openproject | |
- ./openproject/logs:/var/log/supervisor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Dockerized Sqitch made easier | |
# | |
# References: | |
# Sqitch - https://metacpan.org/pod/sqitchtutorial | |
# Docker Image - https://hub.docker.com/r/jmabey/sqitch/ | |
# Configuration: | |
# Add a .env file in same directory and configure it. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local _newImage = display.newImage | |
display.newImage = function(...) | |
local lastArg = arg[#arg] | |
if(lastArg ~= true) then | |
arg[#arg+1] = true | |
end | |
return _newImage(unpack(arg)) | |
end |