Skip to content

Instantly share code, notes, and snippets.

@nickmarty
nickmarty / recover_email_password.lua
Created February 12, 2021 22:35
Nakama Email Password Recovery
--[[
Email Password Recovery module.
Using this module, you can request a password reset link from the game using 'recover_email_password' RPC.
--]]
local nk = require("nakama")
local HTTPS_PREFIX = "https://"
local MAILGUN_API_BASE_URL = "api.mailgun.net/v3"

Raise Open File Limits in OS X

in OS X 10.4 to macOS sierra 10.12 and maybe higher!

Create Launcher Script:

/Library/LaunchDaemons/limit.maxfiles.plist

Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password: