Skip to content

Instantly share code, notes, and snippets.

View lanekatris's full-sized avatar

Lane Katris lanekatris

View GitHub Profile
EVENTSTORE_CLUSTER_SIZE=3
EVENTSTORE_RUN_PROJECTIONS=All
EVENTSTORE_DISCOVER_VIA_DNS=false
EVENTSTORE_ENABLE_EXTERNAL_TCP=true
EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
EVENTSTORE_ADVERTISE_HOST_TO_CLIENT_AS=127.0.0.1
version: "3.5"
services:
setup:
image: eventstore/es-gencert-cli:1.0.2
entrypoint: bash
user: "1000:1000"
command: >
-c "mkdir -p ./certs && cd /certs
&& es-gencert-cli create-ca
@lanekatris
lanekatris / eventstore-docker-compose.yml
Created January 10, 2022 04:36
event store docker compose
version: "3.4"
services:
eventstore.db:
image: eventstore/eventstore:20.10.2-buster-slim
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=true
- EVENTSTORE_EXT_TCP_PORT=1113
@lanekatris
lanekatris / resume.json
Last active May 14, 2021 01:52
JSON Resume
{
"basics": {
"name": "Lane Katris",
"label": "Full Stack Developer",
"image": "https://avatars1.githubusercontent.com/u/3193546?v=4",
"email": "lanekatris@gmail.com",
"phone": "",
"url": "https://lanekatris.com",
"summary": "Innovative Full Stack Developer with 9 years experience with microservices, distributed systems, relational and search databases, and the latest UI frameworks. Personally I enjoy learning and working with IoT/hardware projects. Outside of work you'll catch me rock climbing, playing disc golf, or basketball.",
"profiles": [
<Segment.Group>
<Responsive as={Segment} {...Responsive.onlyMobile}>
Mobile
</Responsive>
<Responsive as={Segment} {...Responsive.onlyTablet}>
Tablet
</Responsive>
<Responsive as={Segment} {...Responsive.onlyComputer}>
Computer
</Responsive>
@lanekatris
lanekatris / docker-cleanup.sh
Created April 16, 2019 17:23
Cleanup Docker Space
# Courtesy of https://stackoverflow.com/questions/30604846/docker-error-no-space-left-on-device
docker volume rm $(docker volume ls -qf dangling=true)
docker volume ls -qf dangling=true
docker rmi $(docker images | grep '^<none>' | awk '{print $3}')
// This Timer.h library came from here: https://github.com/JChristensen/Timer
#include "Timer.h"
#define avoidPin 4
#define relayPin 5
#define delayMs 100
#define timeoutMs 1000 * 30
int lastValue;
bool isTimerRunning = false;
@lanekatris
lanekatris / delete-nested folders.ps1
Last active January 31, 2018 01:40
Run like this:
# .\test.ps1 -path c:\temp
param (
[Parameter(Mandatory=$true)]
[string]$path,
[string]$folderName = "references"
)
Write-Host "Looking for folders with the name $folderName here: $path"
$folders = Get-ChildItem -Path $path -Filter $folderName -Recurse -Directory
# sudo nano /etc/systemd/system/kestrel-hellomvc.service
[Unit]
Description=Example .NET Web API Application running on Ubuntu
[Service]
WorkingDirectory=/var/aspnetcore/hellomvc
ExecStart=/usr/bin/dotnet /var/aspnetcore/hellomvc/hellomvc.dll
Restart=always
RestartSec=10 # Restart service after 10 seconds if dotnet service crashes
-- Remove pesky temp tables
IF OBJECT_ID('tempdb..#hack') IS NOT NULL DROP TABLE #hack