Skip to content

Instantly share code, notes, and snippets.

View AndriiTsok's full-sized avatar
💡
Crafting

Andrii Tsok AndriiTsok

💡
Crafting
View GitHub Profile

I've exported my environment variables to make it easier to run the commands:

export SCHEMA_REGISTRY_URL=xxxxx
export SCHEMA_REGISTRY_API_KEY=xxxxx
export SCHEMA_REGISTRY_API_SECRET=xxxxx
export BASIC_AUTH_USER_INFO=$SCHEMA_REGISTRY_API_KEY:$SCHEMA_REGISTRY_API_SECRET
export BOOTSTRAP_SERVERS=SASL_SSL://xxxxx.xxxxx.aws.confluent.cloud:9092
export KAFKA_API_KEY=xxxxx
export KAFKA_API_SECRET=xxxxx
@AndriiTsok
AndriiTsok / ChoasLinesShader.metal
Created June 16, 2025 00:04 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);
import SwiftUI
struct JSONResult: Sendable {
let data: [String: CodableValue]
}
enum CodableValue: Codable, Sendable, CustomStringConvertible {
case string(String)
case stringArray([String])
@AndriiTsok
AndriiTsok / Building-a-SKS-Keyserver.md
Created April 12, 2025 16:16 — forked from mattrude/Building-a-SKS-Keyserver.md
Building a SKS Keyserver on Ubuntu 18.04 LTS

A Key Server is used to distribute PGP/GPG keys between different users. One of the most popular key servers for use with pgp/gpg is the sks keyserver. This document will walk you through downloading, installing, and setting up a sks keyserver on Ubuntu 18.04 LTS.

Building your own PGP SKS Server

Building a SKS server is a pretty straight forward project if you are use to running servers.

To build a production SKS Server, you must...

@AndriiTsok
AndriiTsok / setup.md
Created October 18, 2024 04:03 — forked from mizzunet/setup.md
Setup Squid Cache Proxy on Arch Linux

Installation

$ yay -S squid

Open firewall

# iptables -L -n -v | grep 3128
    0     0 ACCEPT     tcp  --  *      *       192.168.1.0/24       0.0.0.0/0            state NEW tcp dpt:3128

Generate a CA Certificate to be used by Squid

@AndriiTsok
AndriiTsok / maintenance-page.yaml
Created July 10, 2024 18:29 — forked from sidpalas/maintenance-page.yaml
Kubernetes temporary maintenance page
apiVersion: v1
kind: ConfigMap
metadata:
name: maintenance-page
data:
maintenance.html: |-
<!--HTML GOES HERE-->
<!doctype html>
<title>Site Maintenance</title>
<link rel="stylesheet" href="maintenance.css">
@AndriiTsok
AndriiTsok / ksqldb-tutorial.md
Created March 31, 2024 03:11 — forked from DennisFederico/ksqldb-tutorial.md
KSQLDB Simple Tutorial with Confluent Cloud
tags: #ksqldb/tutorial

Provisioning ksqlDB Cluster

Cluster Data

environment=env-0x3135
@AndriiTsok
AndriiTsok / kafka-ui.yaml
Created March 29, 2024 16:39 — forked from ashishmaurya/kafka-ui.yaml
Installing Kafka UI on local k8s cluster
apiVersion: apps/v1
kind: Deployment
metadata:
name: kafka-ui-deployment
labels:
app: kafka-ui
# namespace: mstore
spec:
replicas: 1
selector:
[root@kafka-a-01 /]# /opt/kafka_current/bin/kafka-console-consumer.sh
The console consumer is a tool that reads data from Kafka and outputs it to standard output.
Option Description
------ -----------
--blacklist <blacklist> Blacklist of topics to exclude from
consumption.
--bootstrap-server <server to connect REQUIRED (unless old consumer is
to> used): The server to connect to.
--consumer-property <consumer_prop> A mechanism to pass user-defined
properties in the form key=value to
@AndriiTsok
AndriiTsok / README.md
Created February 16, 2024 18:59 — forked from nrdobie/README.md
Use CUID2 with Prisma

This will automatically use CUID2 for all id fields when creating elements in Prisma.

You'll need to add the following libraries to make this work

npm install --save @paralleldrive/cuid2 immer
yarn add @paralleldrive/cuid2 immer
pnpm add @paralleldrive/cuid2 immer