Skip to content

Instantly share code, notes, and snippets.

View gterdem's full-sized avatar

Galip Tolga Erdem gterdem

  • Volosoft
  • Toronto
View GitHub Profile
@gterdem
gterdem / OpenIddictDataSeeder.cs
Last active May 10, 2023 17:51
OpenIddictDataSeeder updated to OpenIddict for microservice template
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using JetBrains.Annotations;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Localization;
using OpenIddict.Abstractions;
using Volo.Abp;
using Volo.Abp.Authorization.Permissions;
@gterdem
gterdem / Index.cshtml
Created July 29, 2022 15:28
v6.0.0-rc.1 AuthServer Index Page
@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Microsoft.AspNetCore.Http.Extensions
@using MyApplication.Localization
@using MyApplication.Pages
@using Volo.Abp.Account.Localization
@using Volo.Abp.Users
@using Volo.Abp.AspNetCore.Mvc.UI.Theming
@using Volo.Abp.Ui.Branding
@model IndexModel
@gterdem
gterdem / docker-compose.sql-server.yml
Created April 29, 2022 00:01
docker-compose.sql-server.yml
version: "3.8"
services:
sql-server:
container_name: sql-server
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- "1434:1433"
environment:
SA_PASSWORD: "myPassw0rd"
@gterdem
gterdem / docker-compose.rabbitmq.yml
Last active April 29, 2022 00:09
Docker compose for rabbitmq
version: "3.8"
services:
rabbitmq:
container_name: rabbitmq_container
image: rabbitmq:3-management-alpine
ports:
- "15672:15672"
- "5672:5672"
volumes:
@gterdem
gterdem / docker-compose.postgres.yml
Last active April 29, 2022 00:13
Docker compose for postgres and pgadmin
version: "3.8"
services:
postgres_db:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme}
PGDATA: /data/postgres #optional
volumes:
@gterdem
gterdem / docker-compose.mongo.yml
Created March 9, 2022 14:44
Docker compose for mongodb and mongo express
version: "3.8"
services:
mongodb:
image: mongo
container_name: mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=pass12345
volumes:
- mongodb_data:/data/db
@gterdem
gterdem / docker-compose.redis.yml
Last active March 9, 2022 13:49
Containerized Redis
version: '3.7'
services:
redis:
container_name: redis
image: redis:alpine
ports:
- "6379:6379"
@gterdem
gterdem / cert-manager.md
Last active April 8, 2022 13:45
Kubernetes Reminders

Kubernetes: kubectl apply --validate=false -f https://github.com/jetstack/cert-manager/releases/download/v1.7.0/cert-manager.yaml Helm install: helm install --name cert-manager --namespace cert-manager --version v1.4.0 jetstack/cert-manager --set installCRDs=true

Create Issuer

Use either issuer or cluster-issuer.

  • issuer.yaml:
    apiVersion: cert-manager.io/v1
    kind: Issuer
@gterdem
gterdem / docker-compose.infrustructure.override.yml
Last active February 10, 2022 22:34
Docker-compose for ELK, RabbitMQ, MongoDb, SqlServer
version: '3.7'
services:
sqlserver:
environment:
- SA_PASSWORD=yourStrong(!)Password
- ACCEPT_EULA=Y
ports:
- "1433:1433"