Skip to content

Instantly share code, notes, and snippets.

@kytta
kytta / transition.txt
Created September 8, 2021 11:30
OpenPGP key transition statement
Date: 08 September 2021
Over the last decade I have been trying to grasp over what OpenPGP and GnuPG
actually are. I was not sure about how’s and why’s of the technology, which is
why I have accumulated a lot of various OpenPGP keys. Some of them are too
small, some are long expired, some have weak passwords, and some are completely
inaccessible.
In order not to confuse other people and to finally establish my online
identity, I have set up a new OpenPGP key. From now on, this will be my primary
@kytta
kytta / stats.md
Last active July 24, 2021 04:53
Overview

@kytta
kytta / index.html
Created March 20, 2021 08:35
Bootstrap Demo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Bootstrap demo for the best group ever</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
@kytta
kytta / metadater.md
Last active October 25, 2021 17:22
Google Photos metadata parser and converter
⭐ Total Stars: 634
➕ Total Commits: 4,466
🔀 Total PRs: 299
🚩 Total Issues: 235
📦 Contributed to: 32
@kytta
kytta / srcswitch.json
Created June 27, 2020 12:14
Karabiner rule that switches to MigrantTastatur on Caps and to Russian on Shift-Caps
{
"title": "Sitnik-style Source Switching",
"rules": [
{
"description": "Caps Lock to en, Shift+Caps Lock to ru",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
Python 10 hrs 20 mins ███████████████▏░░░░░ 72.1%
TypeScript 1 hr 20 mins █▉░░░░░░░░░░░░░░░░░░░ 9.4%
JSON 43 mins █░░░░░░░░░░░░░░░░░░░░ 5.0%
TOML 21 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.5%
SQL 17 mins ▍░░░░░░░░░░░░░░░░░░░░ 2.1%
@kytta
kytta / tcp.py
Last active April 21, 2024 15:15
TCP packet built from scratch in Python 3
# tcp.py -- example of building and sending a raw TCP packet
# Copyright (C) 2020 Nikita Karamov <nick@karamoff.dev>
#
# With code from Scapy (changes documented below)
# Copyright (C) 2019 Philippe Biondi <phil@secdev.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

Keybase proof

I hereby claim:

  • I am nickkaramoff on github.
  • I am nickkaramoff (https://keybase.io/nickkaramoff) on keybase.
  • I have a public key ASAY1U5gd0Q8Be8_L_nwXwWqpNRePhjp5n44zMiBK8T40Ao

To claim this, I am signing this object:

@kytta
kytta / docker_deep_clean.sh
Created November 30, 2019 12:44
Docker Deep Clean — a script to remove all unused Docker containers, images and volumes
#!/bin/bash
echo "Removing exited containers..."
echo "============================="
docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
echo ""
echo "Removing unused images..."
echo "========================="
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs docker rmi