Skip to content

Instantly share code, notes, and snippets.


Ivan Kovnatsky ivankovnatsky

View GitHub Profile
mietzen /
Last active May 28, 2023 09:15
How to use use Bitwarden CLI for SSH-Keys in macOS

How to use use Bitwarden CLI for SSH-Keys in macOS

If you want to use Touch ID have a look at: How to use use Bitwarden CLI with macOS Touch ID

Wirtten and tested on macOS Ventura

Add SSH-Keys to Bitwarden

Before you can use Bitwarden CLI for your SSH private keys you have to add them to your Bitwarden account. Just create a normal login. The name, username and URI fields doesn't matter for my functions.

mietzen /
Last active May 4, 2023 13:43
How to use use Bitwarden CLI with macOS Touch ID

How to use use Bitwarden CLI with macOS Touch ID

If you want to use Bitwarden CLI for ssh have a look at: How to use use Bitwarden CLI for SSH-Keys in macOS

Wirtten and tested on macOS Ventura

Configure Touch ID for the sudo command

To allow Touch ID on your Mac to authenticate you for sudo access instead of a password you need to do the following.

yannickjones / sre-interview-questions.txt
Created November 17, 2022 15:15
SRE Interview questions
View sre-interview-questions.txt
- Intros + background overview
- API service in a k8s clusters
+ Single region HA from starting with a single pod deployment?
+ API talks to MongoDB outside of the cluster
+ Describe KPIs for this application?
+ Describe how you would make this service multi region in AWS at a high level?
- What are the three types of observability data?
- How would you troubleshoot a k8s pod stuck in a crashloopbackoff state?
- How can you expose a k8s application publicly using AWS and EKS?
- How can you provide a file to a pod in k8s without building it into your application image?
spinus / falcon.nix
Created June 15, 2022 10:47
crowdstrike falcon
View falcon.nix
{pkgs?import <nixpkgs> {}}:
with pkgs;
stdenv.mkDerivation {
name = "falcon-sensor";
version = "4.18.0-6402";
arch = "amd64";
src = ./falcon-sensor_6.34.0-13108_amd64.deb;
nativeBuildInputs = [ dpkg autoPatchelfHook zlib pkgs.libnl pkgs.openssl ];
klDen / falcon-default.nix
Last active November 21, 2022 19:45 — forked from ravloony/falcon-default.nix
Falcon package
View falcon-default.nix
{ stdenv, lib, pkgs, dpkg,
openssl, libnl, zlib,
fetchurl, autoPatchelfHook, buildFHSUserEnv, writeScript, ... }:
daymien /
Last active June 4, 2023 01:39
Insall NixOS form hetzner rescue system with LUKS RAID1 LVM
#!/usr/bin/env bash
# Installs NixOS on a Hetzner server, wiping the server.
# This is for a specific server configuration; adjust where needed.
# Prerequisites:
# * Update the script wherever FIXME is present
# Usage:

Decrypt LUKS2-encrypted root partitions with TPM2

This guide is written for Arch Linux.


  • systemd version 248 or newer
  • Use mkinitcpio for initramfs generation


mikeboiko / git-credential-rbw
Last active March 12, 2023 14:45
Use bitwarden rbw as git-credential helper
View git-credential-rbw
#!/usr/bin/env bash
# rbw git-credential helper
# Based on
# A credential helper for git to retrieve usernames and passwords from rbw.
# For general usage, see
# Here's a quick version:
# 1. Put this somewhere in your path.
# 2. git config --global credential.helper rbw
jtojnar /
Last active April 18, 2023 04:38
How to use Nix to build fresh GIMP

Nix is a package manager that you can install in parallel with your system package manager on Linux or MacOS. It allows you to effortlesly build any of the thousands of packages defined in the nixpkgs repository or write your own package expressions. Packages in the nixpkgs repository get periodically built by our CI server so the GIMP dependencies will be obtained from binary cache saving you time.

To obtain Nix, you can simply run an installation script, or use your package manager if it is packaged in your distro repositories. Notably, there is a package in Arch’s AUR and Debian Unstable.

The pull request containing changes for the latest changes for GIMP master is NixOS/nixpkgs#67576. I usually update the branch several times a month to point to t

View Ukrainian Langmap for Vim key bindings
:set langmap=йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ї],фa,іs,вd,аf,пg,рh,оj,лk,дl,ж\\;,є',ґ\\,яz,чx,сc,мv,иb,тn,ьm,ю.,./,ЙQ,ЦW,УE,КR,ЕT,НY,НY,ГU,ШI,ЩO,ЗP,Х{,Ї},ФA,ІS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж\\:,Є\\",Ґ<bar>,ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б\\<,Ю>,№#