Skip to content

Instantly share code, notes, and snippets.

View libbkmz's full-sized avatar

Ilya libbkmz

View GitHub Profile
@jeduardo
jeduardo / nginx-mtls.md
Last active March 22, 2024 13:38
mTLS with self-signed certificates in nginx

mTLS with self-signed certificates in nginx

First step is to generate the certificate and keys:

mkdir nginx-certs
cd nginx-certs
# Using the -nodes flag here so it does not ask for any password when exporting the key
openssl req -subj '/CN=ssl.test.local' -x509 -new -newkey rsa:4096 -keyout key.pem -out cert.pem -sha256 -days 365 -nodes -addext "keyUsage = digitalSignature,keyAgreement" -addext "extendedKeyUsage = serverAuth, clientAuth" -addext "subjectAltName = DNS:ssl.test.local, DNS:localhost, IP:127.0.0.1"
# The PCKS12 export will ask for a password. I will use 'test' again and will refer it in the final curl test command
@libbkmz
libbkmz / .inputrc
Last active July 27, 2018 15:28
Enable neat and tidy bash history usage
## arrow up
"\e[A":history-search-backward
## arrow down
"\e[B":history-search-forward
@dufferzafar
dufferzafar / design-time-tracker.md
Last active March 15, 2023 00:19
Design of an open source, cross platform, time tracking application.

Time Tracker

Build a Manic Time alternative.

The application would be in two parts:

  • a tracker agent that dumps data into some backend
    • should be dumb and not do much processing of the data
  • a reporting dashboard which will show various timelines, statistics etc.
@Levis92
Levis92 / Install and run.txt
Last active December 27, 2021 12:44
Install gitinspector with Homebrew (Mac)
Gitinspector (Mac)
https://github.com/ejwa/gitinspector
Installation:
1. Install Homebrew (http://brew.sh)
2. Install with brew: brew install hjorthjort/hjort/gitinspector
3. Edit configuration file in home folder (rc):
@bobuk
bobuk / interstellar.md
Last active April 3, 2022 10:01
Interstellar review

Интерстеллар: Наука за кадром

Ребята из "Манн, Иванов и Фербер" дали мне почитать перевод книги Кипа Торна "The Science of Interstellar". Читать ее на английском мне было откровенно слабО, но перевод не подкачал.

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

Книга читается достаточно легко еще и за счет того, что научные объяснения в ней лежат не в виде тупо фактов - тут, знаете ли, есть сюжет. Вся книга это история создания фильма и общения между его создателями. Я не большой фанат картины, на мой взгляд это была не самая крутая работа Ноллана, но читать о том, как строится сюжет было очень интересно. С удивлением узнал что Ноллан умеет не только _

@atruskie
atruskie / VisualStudioAttacher.cs
Last active November 20, 2023 14:55
A class for programmatically attaching Visual Studio to debug a process. It can be used to automatically attach Visual Studio to your process. It can dynamically attach any solution to any process.
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="AutoAttachVs.cs" company="QutEcoacoustics">
// All code in this file and all associated files are the copyright and property of the QUT Ecoacoustics Research Group (formerly MQUTeR, and formerly QUT Bioacoustics Research Group).
// </copyright>
// <summary>
// Example taken from this gist.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
#if DEBUG