Skip to content

Instantly share code, notes, and snippets.

View tderick's full-sized avatar
🏠
Working from home

DERICK TEMFACK tderick

🏠
Working from home
View GitHub Profile
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:sigv4/sigv4.dart';
class BotService {
String? result;
String botName = "TestLex";
String kAccessKeyId = 'AKIAWHPGDPDTHWH6ZH4T';
String kSecretAccessKey = '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';
import pandas as pd
df_teams_statistics = pd.read_csv('Participated Teams General Statistics.csv')
import pandas as pd
df_teams_statistics = pd.read_csv('Participated Teams General Statistics.csv')
@tderick
tderick / docker-compose.yml
Created March 8, 2022 03:57
docker-compose file for keycloak
version: "3.9"
services:
postgres:
image: postgres:13.2
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRESQL_DB}
POSTGRES_USER: ${POSTGRESQL_USER}
POSTGRES_PASSWORD: ${POSTGRESQL_PASS}
@tderick
tderick / .env
Last active October 16, 2023 21:25
.env file for docker-compose file to deploy a keycloak server
KEYCLOAK_VERSION=16.1.1
PORT_KEYCLOAK=8080
POSTGRESQL_USER=keycloak
POSTGRESQL_PASS=keycloak
POSTGRESQL_DB=keycloak
VIRTUAL_HOST=example.com
LETSENCRYPT_HOST=example.com
LETSENCRYPT_EMAIL=example@gmail.com
@tderick
tderick / db.env
Last active May 2, 2022 05:16
NextCloud docker-compose file behind a reverse proxy with SSL
POSTGRES_PASSWORD=yourdbstrongpassword
POSTGRES_DB=nextcloud
POSTGRES_USER=nextcloud
@tderick
tderick / .env
Created May 9, 2022 00:57
This gist contains the docker-compose file and .env file for the deployment of Owncloud behind jwilder/nginx-proxy
OWNCLOUD_VERSION=latest
OWNCLOUD_DOMAIN=cloud.example.com
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin
HTTP_PORT=8080
LETSENCRYPT_EMAIL=example@gmail.com
@tderick
tderick / docker-compose-gitlab.yml
Created July 21, 2022 13:42 — forked from voksiv/docker-compose-gitlab.yml
A docker-compose config in v3 format for nginx-proxy with separate containers for nginx, dockergen and letsencrypt-companion. Additional example on how to get GitLab docker container running with this nginx-proxy setup. You need to create the docker network before, just run 'docker network create nginx-proxy'. Docker will tell you so if you don'…
version: '3'
services:
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'gitlab.example.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.example.com'
nginx['listen_port'] = 80
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Contact extends Model
{
use HasFactory;