Skip to content

Instantly share code, notes, and snippets.

View dodbrian's full-sized avatar

Denis Zimin dodbrian

View GitHub Profile
@dodbrian
dodbrian / dotnet2_2_to_3_1_migration.md
Last active July 24, 2020 16:17
Migration from .NET Core 2.2 to 3.1

Migration from .NET Core 2.2 to 3.1

Update *.csproj files

Change target framework:

<TargetFramework>netcoreapp3.1</TargetFramework>

or for libraries:

@dodbrian
dodbrian / linux-commands.md
Last active June 5, 2022 21:40
Linux Commands
@dodbrian
dodbrian / linux-version.md
Last active October 27, 2019 10:48
Get Linux Version

Get Linux Version

Commands

cat /etc/os-release
lsb_release -a
uname -a
hostnamectl
cat /proc/version
dmesg grep | Linux
@dodbrian
dodbrian / reset-rabbitmq.sh
Last active July 25, 2019 11:46
Clean up RabbitMQ (remove queues and exchanges)
#!/bin/bash
rabbitmqctl stop_app
rabbitmqctl reset
rabbitmqctl start_app
@dodbrian
dodbrian / guid.ts
Created May 23, 2019 14:24
JavaScript Guid generation
export class Guid {
static newGuid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
return v.toString(16);
});
}
}
@dodbrian
dodbrian / Hyper-V Installer.bat
Created May 20, 2019 18:29
Install Hyper-V on Windows 10 Home
@echo off
echo Checking for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
echo Permission check result: %errorlevel%
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...