Skip to content

Instantly share code, notes, and snippets.

View davidpipes's full-sized avatar

David Pipes davidpipes

View GitHub Profile
CREATE TABLE address (
id UUID PRIMARY KEY,
street_number TEXT,
street_name TEXT,
street_type TEXT, -- St, Ave, Blvd
unit TEXT,
city TEXT,
state_province TEXT,
@davidpipes
davidpipes / fulltablescan.cs
Last active January 30, 2024 00:29
Example of full table scan in dynamodb
static async Task ScanAndUpdateTTLAsync(IAmazonDynamoDB client, string tableName)
{
var scanRequest = new ScanRequest
{
TableName = tableName
};
do
{
var scanResponse = await client.ScanAsync(scanRequest);
@davidpipes
davidpipes / LoopbackDockerfile
Created June 14, 2019 21:18
Loopback 4 App Exiting with code 1 from Docker after hitting any endpoint trying to connect to the bundled MySql Database
# Check out https://hub.docker.com/_/node to select a new base image
FROM node:10-slim
# Set to a non-root built-in user `node`
USER node
# Create app directory (with user `node`)
RUN mkdir -p /home/node/app
WORKDIR /home/node/app

title: 'Homepage Free estimate' menu: 'Free Estimate' class: container grid-lg form: name: estimate action: '#' template: form-messages refresh_prevention: true fields: