Skip to content

Instantly share code, notes, and snippets.


Vadim Peretokin vadi2

View GitHub Profile
bryanknox / .editorconfig
Last active Jul 9, 2022
.editorconfig for C# Visual Studio projects
View .editorconfig
# EditorConfig is awesome:
# More info about editorconfig for C# and .NET in Visual Studio see:
# Most of the .NET and C# rules below were taken from the
# Microsoft Roslyn team's editorconfig at:
# Top-most EditorConfig file.
Tercus /
Last active Apr 27, 2020
Bannerlord linux

Disclaimer and Thank-yous

This guide is pieced together with information collected in this very long github issue. There is no guarantee for this to make Bannerlord work on your particular system, because one thing the github issue showed was that hardware and software configurations can have a large effect on the stability of the game. You should also be prepared for crashes, even when the game seems to be running fine. Make sure to save frequently.

This guide was made possible by all the people in the github issue that tested things out and reported back. I would also like to thank VictorRogers, YellowApple, Metal079, allquixotic, lboklin, ptkato for their great suggestions and corrections and all the others in helping getting Bannerlord to work!


mpconley /
Last active Nov 24, 2019
GMCP Sound Protocol

Enable Sound

The client will enable sound by including "Client.Media 1" as part of the initial Core.Supports messages.

Core.Supports.Set ["Client.Media 1", ...]

Load File

Send a Client.Media.Load event to load a music, video or sound file. Mudlet uses "tag" to store media in folders as well as for categorizing sounds.

estan /
Created Jul 11, 2019
Python script for notarizing an app (e.g. a .dmg)
#!/usr/bin/env python3
# Notarize a file (e.g. a .dmg)
# Usage: <Apple ID username> <Apple ID password> <file>
# Note: The --primary-bundle-id flag is hard-coded below, so you'll want to
# change that!
# See
Egor-Skriptunoff / utf8_filenames.lua
Last active May 30, 2022
UTF-8 filenames on Windows in pure Lua
View utf8_filenames.lua
-- Module: utf8_filenames
-- Filename: utf8_filenames.lua
-- Version: 2019-07-13
-- License: MIT (see at the end of this file)
-- This module modifies standard Lua functions so that they work with UTF-8 filenames on Windows:
-- io.popen
cknaap / VonkAuthorizationMiddleware.cs
Last active Dec 12, 2019
Middleware for custom authorization in Vonk FHIR Server
View VonkAuthorizationMiddleware.cs
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Http;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Vonk.Core.Context;
using Vonk.Core.Context.VonkContext;
using Vonk.Core.Support;
pierrejoubert73 /
Last active Aug 11, 2022
How to add a collapsible section in markdown.

How to

  <summary>Click me</summary>
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
jonmcclung / Toast.qml
Last active Mar 16, 2022
Toast in QML. This implementation creates black toast with white text that appears at the bottom of the screen. It also supports adding multiple toast at a time using ToastManager with the newest toast at the bottom.
View Toast.qml
import QtQuick 2.0
* adapted from StackOverflow:
* @brief An Android-like timed message text in a box that self-destroys when finished if desired
keneanung /
Last active Feb 8, 2019
personal mudlet todo list

FHIR JSON+ format

Design of FHIR formats, to be honest, was essentially driven by XML and Object Oriented implementations. Not so much attention was given to design idiomatic JSON format. JSON and other JSON like formats like yaml, edn, avro are very popular in avantе-garde of programmers, some modern databases now could understad JSON as first-class data-structures, that’s why i think, good design for it is strictly required for FHIR adoption. I would like list some problems with current JSON format and propose solutions.