Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@GetoXs
GetoXs / docker-compose.yml
Created January 6, 2021 15:15
Microsoft SQL Server 2019 in Docker with data volume and Linux host
version: "3"
services:
db:
image: mcr.microsoft.com/mssql/server
user: root # this resolve problem with mssql's permission to binded directory
environment:
SA_PASSWORD: "StrongPassword321"
ACCEPT_EULA: "Y"
volumes:
- ./mssql-server-linux/data:/var/opt/mssql/data
@GetoXs
GetoXs / HP TPC-P001K - Fn inversion.ahk
Created August 16, 2020 11:48
Workaround for keyboard HP TPC-P001K Fn lock problem
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#InstallKeybdHook
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; F1 key by default, Fn+F1 is now Mute/Unmute
VOLUME_MUTE::F1
F1::VOLUME_MUTE
@GetoXs
GetoXs / docker-compose.yml
Created August 8, 2020 00:18
Docker with Selenium hub + Chrome driver + Maven dev
ersion: "3"
services:
selenium-hub:
image: selenium/hub:3.141.59
container_name: selenium-hub
ports:
- "4444:4444"
@GetoXs
GetoXs / bitbucket-pipelines.yml
Last active December 29, 2022 17:06
Optimized Bitbucket pipeline with SonarCloud pipe and proper cache
image: atlassian/default-image:2
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
services:
docker:
memory: 2560
@GetoXs
GetoXs / ServiceCollectionExtentions.cs
Last active March 2, 2024 06:06
Register All Types (with Generic) in .NET Core DependencyInjection
using System;
using System.Linq;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
public static class ServiceCollectionExtentions
{
public static void AddAllTypes<T>(this IServiceCollection services
, Assembly[] assemblies
, bool additionalRegisterTypesByThemself = false