Skip to content

Instantly share code, notes, and snippets.

View dblokhin's full-sized avatar
😇

Dmitriy Blokhin dblokhin

😇
View GitHub Profile
@dblokhin
dblokhin / ANSI.md
Created October 13, 2021 13:08 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@dblokhin
dblokhin / chrome-os-crostini-error-20.md
Created April 22, 2021 08:37 — forked from SayantanRC/chrome-os-crostini-error-20.md
Chrome OS - Crostini fails to start with vmshell error 20

Chrome OS - Crostini fails to start with vmshell error 20

This I found out to be an sshd problem. Somehow the systemd service cros-sftp of the container was not working.
All the below steps are from crosh terminal.

Start the container from crosh

From crosh terminal (Alt+Ctrl+T):

vmc start termina
@dblokhin
dblokhin / introrx.md
Created November 20, 2018 08:01 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@dblokhin
dblokhin / event.js
Created October 7, 2018 23:59 — forked from wildlyinaccurate/event.js
Really simple Javascript custom event system
var Event = function() {
var self = this;
self.queue = {};
self.fired = [];
return {
fire: function(event) {
@dblokhin
dblokhin / readme.md
Last active July 27, 2018 09:15
Systemd user unit file for Secure Proxy over ssh
  • create systemd units location dir: ~/.config/systemd/user
  • create systemd service there:

ssh-proxy.service

Description=Setup a secure ssh proxy
#Requires=network.target     # network.target doesnt exist
#After=network.target 

[Service]
ClickHouse administration tips.
CPU
SSE 4.2 instruction set support is required. Most recent (since 2008) CPUs have this instruction set.
When choosing between CPU with more cores and slightly less frequency and CPU with less cores and more frequency, choose first.
For example, 16 cores with 2600 MHz is better than 8 cores with 3600 MHz.