Skip to content

Instantly share code, notes, and snippets.

View ragoragino's full-sized avatar

Rastislav Kisel ragoragino

View GitHub Profile
@ragoragino
ragoragino / protobuf_spark_schema_convertor.py
Last active June 12, 2024 22:01
Protobuf schema to Spark schema conversion
import google.protobuf.descriptor
from pyspark.sql.types import (
StructType,
StructField,
StringType,
IntegerType,
LongType,
DoubleType,
FloatType,
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Rastislav Kisel",
"label": "Software engineer",
"image": "",
"email": "kiselrastislav@gmail.com",
"url": "https://ragoragino.github.io",
"summary": "",
"location": {
ARG ALPINE_VERSION=3.13
FROM alpine:${ALPINE_VERSION}
LABEL ALPINE_VERSION="${ALPINE_VERSION}"
RUN apk update && \
apk add bash \
# dig, nslookup
bind-tools \
ARG ALPINE_VERSION=3.13
FROM alpine:${ALPINE_VERSION}
RUN apk update
RUN apk add g++ \
make \
cmake \
ccache \
python3-dev \
@ragoragino
ragoragino / openssl.sh
Last active August 27, 2021 21:22
Common OpenSSL commands
#!/bin/bash
set -ex
touch index.txt
touch RANDFILE
# Configuration of CA
cat <<-EOF > ca.cnf
[ ca ]
package main
import (
"context"
"fmt"
"log"
"os"
"strconv"
"github.com/Azure/azure-sdk-for-go/services/cosmos-db/mgmt/2015-04-08/documentdb"