Skip to content

Instantly share code, notes, and snippets.

@kytta
kytta / .gitlab-ci.yml
Created August 4, 2018 17:08
GitLab CI config for an Android project
image: jangrewe/gitlab-ci-android
variables:
ANDROID_COMPILE_SDK: "27"
APP_NAME: "NameOfYourApp"
cache:
key: ${CI_PROJECT_ID}
paths:
- .m2/
@kytta
kytta / .p10k.zsh
Last active April 12, 2021 09:17
My ZSH config (includes powerlevel10k)
# Temporarily change options.
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh
setopt no_unset extended_glob
@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

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 / 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.
Python 7 hrs 56 mins ████████████▍░░░░░░░░ 59.0%
JSON 1 hr 48 mins ██▊░░░░░░░░░░░░░░░░░░ 13.5%
YAML 58 mins █▌░░░░░░░░░░░░░░░░░░░ 7.2%
TypeScript 56 mins █▍░░░░░░░░░░░░░░░░░░░ 7.0%
SQL 25 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.2%
@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": {
⭐ Total Stars: 634
➕ Total Commits: 4,466
🔀 Total PRs: 299
🚩 Total Issues: 235
📦 Contributed to: 32
@kytta
kytta / metadater.md
Last active October 25, 2021 17:22
Google Photos metadata parser and converter
@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">