Skip to content

Instantly share code, notes, and snippets.

View r3code's full-sized avatar

Dmitriy S. Sinyavskiy r3code

View GitHub Profile
@r3code
r3code / README.md
Created February 16, 2024 07:22 — forked from 4wk-/README.md
Clean uninstall then reinstall of WSL on Windows 10, with systemD support

Uninstall then reinstall WSL on Windows 10 (clean way)

Background

I've been using wsl (version 2) with genie mod for years without issue, but one day, Windows 10 finally catch up on wsl Windows 11 features and gives us a way to use systemD natively.

I wanted to use the new "right way" to enable systemD on Windows Subsystem for Linux (without genie), and I also had a (probably related) infinite Windows RemoteApp error poping in.

Fixing it

A - Uninstall wsl and related stuff

  1. In powershell (as admin)
package config
import (
"net/http"
"regexp"
"strings"
)
// idPatterns describes patterns of IDs in URLs. These patterns are matched
// against an entire URL. These patterns are used as given without any

Russian version here

So, are you building microservices? Take a look at a few of these symptoms, and decide for yourself:

  • A change to one microservice often requires changes to other microservices
  • Deploying one microservice requires other microservices to be deployed at the same time
  • Your microservices are overly chatty
  • The same developers work across a large number of microservices
@r3code
r3code / README.md
Last active April 20, 2021 14:07 — forked from vporoshok/README.md
Snippet of README file for RDD (Readme driven development)
@r3code
r3code / db.go
Created November 4, 2020 17:40 — forked from adamfdl/db.go
package sql
import (
"database/sql"
)
var (
ErrNoRows = sql.ErrNoRows
)
@r3code
r3code / goroutinesLimit.go
Created April 19, 2020 09:21 — forked from unanoc/goroutinesLimit.go
Ограничение горутин по ресурсам. А именно, чтобы в одно время работало не больше определенного количества горутин.
package main
import (
"fmt"
"runtime"
"strings"
"sync"
"time"
)
@r3code
r3code / webstoemp-gulpfile.js
Created April 1, 2020 20:31 — forked from jeromecoupe/webstoemp-gulpfile.js
Gulp 4 sample gulpfile.js. For a full explanation, have a look at https://www.webstoemp.com/blog/switching-to-gulp4/
"use strict";
// Load plugins
const autoprefixer = require("autoprefixer");
const browsersync = require("browser-sync").create();
const cp = require("child_process");
const cssnano = require("cssnano");
const del = require("del");
const eslint = require("gulp-eslint");
const gulp = require("gulp");
@r3code
r3code / app.yaml
Created October 29, 2019 12:56 — forked from akhenakh/app.yaml
Example of graceful shutdown with grpc healthserver * httpserver
readinessProbe:
exec:
command: ["/root/grpc_health_probe", "-addr=:6666"]
initialDelaySeconds: 1
livenessProbe:
exec:
command: ["/root/grpc_health_probe", "-addr=:6666"]
initialDelaySeconds: 2
imagePullPolicy: IfNotPresent
@r3code
r3code / conventional-commits-guide-russian.md
Last active October 26, 2023 15:34 — forked from bibendi/gist:7941823
Оформление коммитов

Общепринятые коммиты

Как писать сообщения коммитов (сообщение при фиксации кода в систему хранения версий кода), которые удобны для чтения людьми и машинами. В итоге это может дать нам возможность автоматически генерировать Changelog, и автоматически выпускать новые версии при добавлении возможностей.

За основу взято соглашение https://www.conventionalcommits.org/ru/v1.0.0-beta.4/

Для оформления сообщения коммита следует использовать следующий шаблон:

<тип>(<область>): <описание изменения>