Skip to content

Instantly share code, notes, and snippets.

View KirillSleta's full-sized avatar

ksleta KirillSleta

View GitHub Profile
@KirillSleta
KirillSleta / README.md
Created October 15, 2025 13:41 — forked from gilangvperdana/README.md
Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Kubernetes with KubeSpray on BareMetal Ubuntu Server 20.04 LTS

Provisioning Kubernetes Cluster BareMetal with KubeSpray

Environment

2x Ubuntu Server 20.04LTS
@KirillSleta
KirillSleta / FAQ.md
Created April 28, 2025 17:01 — forked from ngxson/FAQ.md
convert ARM NEON to WASM SIMD prompt

Why did you do this?

Relax, I only have one Sunday to work on idea, literally my weekend project. So I tried Deepseek to see if it can help. Surprisingly, it works and it saves me another weekend...

What is your setup?

Just chat.deepseek.com (cost = free) with prompts adapted from this gist.

Does it work in one-shot or I have to prompt it multiple times?

package main
import (
"fmt"
"io/ioutil"
"net/http"
"sync"
"time"
"go.uber.org/ratelimit"
@KirillSleta
KirillSleta / adr.md
Last active September 26, 2024 13:53

Architecture Decision Record (ADR) 004:

Title: Selection of Luxury Vehicle Brand - Audi, BMW, or Porsche?

Status: Accepted

Date: [Insert Date Here]

Context

In our company's history, we have had the privilege of choosing luxury vehicles for company cars and fleet management. We are currently in need of a new vehicle brand that aligns with our values, performance expectations, and budget constraints.

@KirillSleta
KirillSleta / esp8266-wifi-beacon-generator.ino
Created June 2, 2023 13:55 — forked from kost/esp8266-wifi-beacon-generator.ino
ESP8266 WiFi Beacon Generator - Generate SSID beacon frames on ESP8226
#include <ESP8266WiFi.h>
extern "C" {
#include "user_interface.h"
}
byte channel;
int maxssids=10; /* how much SSIDs we have */
char *ssids[] = {
@KirillSleta
KirillSleta / clone-all-twitter-github-repos.sh
Created March 7, 2023 10:49 — forked from caniszczyk/clone-all-twitter-github-repos.sh
Clone all repos from a GitHub organization
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'
@KirillSleta
KirillSleta / region-names.py
Created July 8, 2022 15:35 — forked from simgislab/region-names.py
For each input name search for reference region name and add codes to output.
#!/usr/bin/env python -u
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# region-names.py
# Author: Maxim Dubinin ([email protected])
# About: For each input name search for reference region name and add codes to output.
# Created: 24.03.2014
# Usage example: python region-names.py in.csv ref.csv out.csv
# ---------------------------------------------------------------------------
@KirillSleta
KirillSleta / useful-one-liners.sh
Created February 15, 2022 15:13 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@KirillSleta
KirillSleta / golang-tls.md
Created December 29, 2021 16:32 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)
@KirillSleta
KirillSleta / postgres_queries_and_commands.sql
Created December 23, 2021 18:00 — forked from rgreenjr/postgres_queries_and_commands.sql
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'