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 redis = require "resty.redis" | |
local M = {} | |
local function set_keepalive(p, red, opts) | |
while true do | |
if 'dead' == coroutine.status(p) then | |
break | |
end |
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
-- $ sudo opm get jkeys089/lua-resty-hmac | |
local shell = require "resty.shell" | |
local cjson = require "cjson.safe" | |
local hmac = require "resty.hmac" | |
local secret = '<MY SUPER SECRET>' | |
local event = 'push' | |
local branch = 'refs/heads/master' |
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/bash | |
cd ~/work/ || exit | |
sudo openresty -p `pwd` -c conf/nginx.conf -t || exit | |
ps -ef | grep openresty | grep -v grep | |
if [ $? -eq 0 ] | |
then |
NewerOlder