Skip to content

Instantly share code, notes, and snippets.

View kirill-d-lappo's full-sized avatar
🏭
These sands are cold, but Khajiit feels warmness from your presence.

Kirill Lappo kirill-d-lappo

🏭
These sands are cold, but Khajiit feels warmness from your presence.
View GitHub Profile
@kirill-d-lappo
kirill-d-lappo / start-azurite.sh
Last active February 17, 2022 09:12
Azurite (Azure Storage) Startup Script
echo "Set Azure Storage connection string to UseDevelopmentStorage=true"
azurite --silent --location ~/.azurite-data --debug ~/.azurite-data/debug.log --loose --skipApiVersionCheck
@kirill-d-lappo
kirill-d-lappo / notes.md
Created January 31, 2022 20:35
Optimizely (former EpiServer) Notes

Notes on Optimizely CMS Project creation

Create a project

  1. Install required tools and sdks

    1. Templates: dotnet new -i EPiServer.Net.Templates --nuget-source https://nuget.optimizely.com/feed/packages.svc/ --force
    2. Cli tools: dotnet tool install EPiServer.Net.Cli --global --add-source https://nuget.optimizely.com/feed/packages.svc/
    3. Check license, but for localhost it was free as on 2022/01/31
  2. Install sql server and dotnet sdk 5

@kirill-d-lappo
kirill-d-lappo / Powershell-Template.ps1
Created January 31, 2022 14:34
Simple Powershell Script template
<#
.SYNOPSIS
Short description for your script.
.DESCRIPTION
More descriptive notes about the script.
May contain several lines for readability.
Must not be an esse on "How I spent this summer"
.NOTES
Version: 1.0
Author: Kirill Lappo<kirill-lappo@outlook.com>
# My additional options for .bashrc
# requires vivid from https://github.com/sharkdp/vivid
export LS_COLORS="$(vivid generate molokai)"
export PATH=$PATH:/usr/local/go/bin
# I don't remember, really
export CGO_LDFLAGS_ALLOW=.*
# requires starship from https://starship.rs
@kirill-d-lappo
kirill-d-lappo / copy-allow-line.py
Last active September 19, 2021 18:09
Notepad++ Copy And Cut - Normal Behavior
# Install Python plugin
# Import this file using pluing configuration and add it to menu
# * %APPDATA%\Notepad++\plugins\config\PythonScript\scripts\script-name.py
# Restart Notepad
# Use Notepad++ interface to remove CTRL+C keymap and rebind it to copy-allow-line command in Plugin section
editor.copyAllowLine()
@kirill-d-lappo
kirill-d-lappo / edit.bat
Last active September 19, 2021 17:49
windows: edit cmd command
@echo off
REM Place this file in any of %PATH% entries
REM Edit any file from cmd typing "edit ./diary.txt"
REM start - run in a different process
REM "" - empty cmd window title, not sure if it is needed with /B option
REM /B - no window
REM <path> - path to exe file. Any editor you like.
REM %* - pass all arguments of this bat file to the program that is called.
@kirill-d-lappo
kirill-d-lappo / sql-dacpack-help.md
Last active October 26, 2021 09:33
SQL Dacpack CLI with MSBuild.Sdk.SQLProj

SQL DACPAC notes:

  • use simple .net core project
  • use special sdk: MSBuild.Sdk.SQLProj/1.15.0 or higher: GitHub
  • all properties works for the projec, use CamelCase version of them (in most cases): LINK
  • DropObjectsNotInSource
  • seems like publish profile can be used as well
  • use dotnet publish to... publish
@kirill-d-lappo
kirill-d-lappo / SkypeLink.md
Created March 22, 2021 09:21
Skype Chat/Call Link
@kirill-d-lappo
kirill-d-lappo / GitBuildInfo.csproj
Created March 17, 2021 20:41
Git Info At Build Time In .Net Project
<!-- I know, there is a Git target in the package of community msbuild targets -->
<!-- but I didn't want to install any additional package -->
<!-- so decided to do it on my own in the most lazy way -->
<Target Name="AfterBuild">
<PropertyGroup>
<!-- These files contain git information -->
<!-- App can read these files and use somehow (display, send anywhere, etc) -->
<!-- There could be any variatons -->
<!-- I prefer to keep git info in separate files just because, there is no good reason here :) -->
@kirill-d-lappo
kirill-d-lappo / Service-Parallel.ps1
Created February 16, 2021 10:24
Powershell 7 : Parallel Functions For Windows Service Manipulations
#requires -version 7
# Requires pwsh 7 or higher
# Add functions to your $PROFILE so they are always accessible
function Restart-ServiceParallel{
[CmdletBinding()]
param (
[Parameter()]
[string]