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
# Serve nextJS app from a port through NGINX reverse proxy (HTTP) | |
# Path: /etc/nginx/sites-available/default | |
# Default server configuration for HTTP | |
server { | |
server_name www.DOMAINNAME.com DOMAINNAME.com; | |
# Serve any static assets with NGINX | |
location /_next/static { | |
alias /home/ubuntu/PROJECT_FOLDER/.next/static; |
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
(function () { | |
const gatewayOrigin = "https://prompt.cash"; // ignore messages from other frames | |
const onMessage = (event) => { | |
if (event.origin !== gatewayOrigin) { | |
return; | |
} | |
let data = event.data; | |
if (data.func === "onPromptPaid") { | |
// the iframe says the payment is confirmed |
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
func (api *CompileAPI) ServeHTTP(w http.ResponseWriter, r *http.Request) { | |
defer r.Body.Close() | |
// Get code from params | |
type parameters struct { | |
Code string `json:"code" validate:"required"` | |
} | |
decoder := json.NewDecoder(r.Body) | |
params := parameters{} | |
err := decoder.Decode(¶ms) |
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
# Install the gRPC PHP plugin on Mac | |
# | |
# See: http://www.grpc.io/docs/quickstart/php.html#install-protobuf-plugin | |
# Source: https://gist.github.com/johndpope/503029706ed56d5375d1e9469f0135d4 | |
# Install build dependencies | |
brew install automake libtool | |
## Clone gRPC repo | |
git clone --recursive -b v1.4.x https://github.com/grpc/grpc |
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
Fonts: | |
BigCaslon.ttf: | |
Kind: TrueType | |
Valid: Yes | |
Enabled: Yes | |
Location: /Library/Fonts/BigCaslon.ttf | |
Typefaces: | |
BigCaslon-Medium: |