Skip to content

Instantly share code, notes, and snippets.

View jedsmith's full-sized avatar
🌈
Everything is terrible.

Jed Smith jedsmith

🌈
Everything is terrible.
  • ServiceNow
  • Tri-Cities, Washington, USA
  • 15:12 (UTC -07:00)
View GitHub Profile
@brianredbeard
brianredbeard / gin_and_tonic.md
Last active December 10, 2021 16:54
Tonic Recipe
@josegonzalez
josegonzalez / access.lua
Created December 3, 2012 18:26
Simple lua file enabling oauth support for nginx via nginx-lua and access_by_lua.
- certain endpoints are always blocked
if nginx_uri == "/_access_token" or nginx_uri == "/_me" then
ngx.exit(403)
end
-- import requirements
local cjson = require "cjson"
-- setup some app-level vars
local app_id = "APP_ID"