Skip to content

Instantly share code, notes, and snippets.

View ilya-korotya's full-sized avatar

Ilya ilya-korotya

View GitHub Profile
@ilya-korotya
ilya-korotya / proxy.service
Created November 4, 2019 09:25
Basic config for systemd manager
[Unit]
Description=SOCKS5 prxoy for telegram
After=syslog.target
After=network.target
[Service]
Type=forking
PIDFile=/home/ec2-user/go/src/github.com/ilia-korotia/simpleproxy/pid
User=root
@ilya-korotya
ilya-korotya / travis.yml
Created November 15, 2020 14:13
Bash ci/cd in travis
language: minimal
env:
- SERVER_USER=ec2-user SERVER_DNS=ec2-35-180-69-65.eu-west-3.compute.amazonaws.com
before_install:
- openssl aes-256-cbc -K $encrypted_2c430460807a_key -iv $encrypted_2c430460807a_iv -in travis.pem.enc -out travis.pem -d
script:
- echo $TRAVIS_COMMIT_RANGE
@ilya-korotya
ilya-korotya / dynamodb.yaml
Created August 12, 2021 19:58
k8s configuration for local dynamodb
apiVersion: apps/v1
kind: Deployment
metadata:
name: dynamodb
labels:
app: dynamodb
spec:
selector:
matchLabels:
app: dynamodb
@ilya-korotya
ilya-korotya / Dockerfile
Created December 9, 2021 10:02
Docker for init private cardano network
FROM ubuntu:20.04
WORKDIR /cardano/private_network
RUN apt-get update && apt-get -y install wget
# source file here https://hydra.iohk.io/build/8110920
# TODO (illia-korotia): compare hash for pin version of tar.gz
RUN wget https://hydra.iohk.io/build/8110920/download/1/cardano-node-1.31.0-linux.tar.gz
# install required bin files
RUN tar -xvf cardano-node-1.31.0-linux.tar.gz -C /bin/
@ilya-korotya
ilya-korotya / main.go
Created August 18, 2022 15:29
Merkle tree on IPFS
package main
import (
"fmt"
ipfs "github.com/ipfs/go-ipfs-api"
"io"
"strings"
"time"
)
@ilya-korotya
ilya-korotya / iden3credential.json-ld
Created September 5, 2022 10:38
iden3credential.json-ld
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"Iden3Credential": {
"@id": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/iden3credential.json-ld#Iden3Credential",
"@context": {
"@version": 1.1,
@ilya-korotya
ilya-korotya / iden3credential.json-ld
Last active September 14, 2022 15:59
New Iden3ReverseSparseMerkleTreeProof
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"Iden3Credential": {
"@id": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/iden3credential.json-ld#Iden3Credential",
"@context": {
"@version": 1.1,
@ilya-korotya
ilya-korotya / test.json-ld
Last active September 20, 2022 14:04
test
{
"@context": {
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"Iden3Credential": {
"@id": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/iden3credential-v2.json-ld#Iden3Credential",
"@context": {
"@version": 1.1,
@ilya-korotya
ilya-korotya / auth.json-ld
Last active January 17, 2023 09:14
state.md
{
"@context": [{
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"AuthBJJCredential": {
"@id": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/auth.json-ld#AuthBJJCredential",
"@context": {
"@version": 1.1,
{
"@context": [
{
"@version": 1.1,
"@protected": true,
"id": "@id",
"type": "@type",
"KYCAgeCredential": {
"@id": "https://raw.githubusercontent.com/iden3/claim-schema-vocab/main/schemas/json-ld/kyc-v3.json-ld#KYCAgeCredential",
"@context": {