Skip to content

Instantly share code, notes, and snippets.

View talbot's full-sized avatar

Dmitrii Tretiakov talbot

View GitHub Profile
@talbot
talbot / README.md
Created December 25, 2023 22:44 — forked from miguelmota/README.md
Multiple accounts with Mutt E-Mail Client (gmail example)

How to set up multiple accounts with Mutt E-mail Client

Thanks to this article by Christoph Berg

Instructions

Directories and files

~/
@talbot
talbot / cats.md
Created April 22, 2020 09:00 — forked from YozhEzhi/cats.md
[Конспект] Дж.Ханк Рейнвотер - Как пасти котов. Наставление для программистов, руководящих другими программистами
@talbot
talbot / TrueColour.md
Created November 29, 2018 14:07 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
@talbot
talbot / linus-git-merges.txt
Created June 27, 2018 08:37 — forked from kstep/linus-git-merges.txt
Linus on Git merge
I want clean history, but that really means (a) clean and (b) history.
People can (and probably should) rebase their _private_ trees (their own
work). That's a _cleanup_. But never other peoples code. That's a "destroy
history"
So the history part is fairly easy. There's only one major rule, and one
minor clarification:
- You must never EVER destroy other peoples history. You must not rebase
@talbot
talbot / rtftomarkdown.rb
Created June 12, 2018 16:31 — forked from ttscoff/rtftomarkdown.rb
Convert RTF/DOC files to Markdown via Textutil
#!/usr/bin/ruby
=begin
Usage: rtftomarkdown.rb FILENAME.rtf
Uses textutil, available on Mac only (installed by default)
Outputs to STDOUT
Notes:
Links are replaced with Markdown references (duplicate links combined).
@talbot
talbot / spectre.c
Created January 4, 2018 23:09 — forked from ErikAugust/spectre.c
Spectre example code
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
#include <intrin.h> /* for rdtscp and clflush */
#pragma optimize("gt",on)
#else
#include <x86intrin.h> /* for rdtscp and clflush */
#endif
@talbot
talbot / java_urls.txt
Created December 12, 2015 21:07 — forked from poxu/java_urls.txt
Ссылки на русскоязычные видео о java
##1. Вопросы оптимизации и производительности
###1.1 Производительность и оптимизация
#Сергей Куксенко, Oracle — Железные счётчики на страже производительности
https://www.youtube.com/watch?v=RlX0f9pzhtc
#Алексей Шипилёв, Oracle — Катехизис java.lang.String
#о реализации строк в Java, способы оптимизации работы со строками и ошибки, которые часто допускают при оптимизации работы со строками,
https://www.youtube.com/watch?v=SZFe3m1DV1A