Skip to content

Instantly share code, notes, and snippets.

View novabyte's full-sized avatar

Chris Molozian novabyte

View GitHub Profile
@novabyte
novabyte / Dockerfile
Last active April 29, 2022 14:01
A small Docker-based build setup to create and build Go code with Nakama server.
FROM heroiclabs/nakama-pluginbuilder:3.2.0 AS builder
ENV GO111MODULE on
ENV CGO_ENABLED 1
WORKDIR /backend
COPY . .
RUN go build --trimpath --mod=vendor --buildmode=plugin -o ./backend.so
@zyro
zyro / nakama-storage-list-query-analysis.md
Created June 22, 2017 23:11
DB query analysis for Nakama's storage list feature

List all in bucket from script runtime.

EXPLAIN SELECT user_id, bucket, collection, record, value, version, read, write, created_at, updated_at, expires_at
FROM storage@deleted_at_bucket_read_collection_record_user_id_idx
WHERE deleted_at = 0
AND bucket = 'bucket1'
AND read >= 0
LIMIT 11;
@ericbmerritt
ericbmerritt / Makefile
Last active August 11, 2023 09:35
Universal drop in Makefile for Erlang projects that use rebar
# Copyright 2012 Erlware, LLC. All Rights Reserved.
#
# This file is provided to you under the Apache License,
# Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,