Skip to content

Instantly share code, notes, and snippets.

@gistlyn
gistlyn / main.cs
Last active February 13, 2017 04:45
OrmLite wildcard in Custom SQL
using ServiceStack;
using ServiceStack.Text;
using ServiceStack.OrmLite;
using ServiceStack.OrmLite.Sqlite;
using ServiceStack.DataAnnotations;
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider);
var db = dbFactory.Open(); // Open ADO.NET DB Connection
public class SomeTable
@gistlyn
gistlyn / .gitignore
Last active February 16, 2022 10:17 — forked from specimen151/.gitignore
OrmLite JSON deserialization issue
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
# User-specific files
*.rsuser
*.suo
*.user
*.userosscache
@gistlyn
gistlyn / docker-compose.prod.yml
Created July 31, 2023 08:29 — forked from Layoric/.env
Files used for GitHub Action Docker Deployment via SSH to stand alone Linux server
version: "3.9"
services:
app:
image: ghcr.io/${IMAGE_REPO}:${RELEASE_VERSION}
restart: always
ports: !reset ["80"]
container_name: ${IMAGE_REPO}-app
environment:
VIRTUAL_HOST: ${HOST_DOMAIN}
LETSENCRYPT_HOST: ${HOST_DOMAIN}