Skip to content

Instantly share code, notes, and snippets.

View kksudo's full-sized avatar
:octocat:
Software is like sex: It’s better when it’s free.

Kirill kksudo

:octocat:
Software is like sex: It’s better when it’s free.
View GitHub Profile

Task: Developing a Backend for a Mini-DEX on TON Blockchain

Description:

Develop the backend part for a simple decentralized exchange (DEX) on the TON blockchain. Your task is to create an API for interacting with the DEX smart contract and implement basic token exchange logic.
As you'll be working in an Agile environment with a team of developers, we'll use GitHub flow for our branching strategy. You'll need to split this task into smaller, manageable pieces and update the main branch accordingly.

GitHub Flow Process:

  1. Create a new branch for each subtask from the main branch
@kksudo
kksudo / DemoTaskAuraX.md
Created March 26, 2025 11:46
Test task for the PY developer in AuraX | Test Demo Task: Financial System CLI with Agile Practices

Overview
Aura x Capital is seeking a Middle-Level Python Developer to work on a crypto swap and limits exchange system. In this task, you’ll build a simple Python-based crypto transaction processor that simulates a swap operation between two wallets, updates their balances, and logs the transaction.

Task Requirements

  1. Create a Python script that processes a mock crypto swap between two wallets, updating their balances and logging the transaction.

    • Implement a Wallet class to manage balances (in a fictional “TONcoin” currency).
    • Simulate a swap by deducting an amount from one wallet and adding it to another, including a 1% transaction fee (e.g., for 100 TONcoin sent, 1 TONcoin is taken as a fee, and 99 TONcoin is received).
  • Log each transaction with a timestamp, sender, receiver, amount sent, fee, and amount received in a list or file.
@kksudo
kksudo / newfile.py
Created February 14, 2025 10:40
Ilia-PY
from tkinter import *
from tkinter import messagebox
from random import randint
# Определяем начальную точку русского алфавита
st = ord('А')
# метод при нажатии на клавишу, для десктопа
def pressKey(event):
@kksudo
kksudo / ByeDPI Android.md
Last active January 7, 2025 00:40
Инструкция по установке ByeDPI через Obtainium

Инструкция по установке ByeDPI через Obtainium

ByeDPI

Приложение локально запускает ByeDPI и перенаправляет весь TCP трафик через него

Описание

Эта инструкция поможет вам установить приложение ByeDPI на устройство Android с использованием приложения Obtainium, которое упрощает управление установкой и обновлением приложений.


@kksudo
kksudo / table.csv
Last active July 30, 2024 21:06
https://medium.com/p/9b5827660bcc Warm-Up Kubernetes Node with large image size: 3GB size, 1000 PODS, from 1 hour to seconds
Step Init deploy step Pre deploy step Deploy Total time Diff
Without preheat 0 0 11m 21s 11m 21s 0
With preheat 8 seconds 58 seconds 25 seconds 1m 31s -9m 50s
@kksudo
kksudo / vpn-instructions.md
Last active March 31, 2025 17:19
Настраиваем подключение к впн Устанавливайте только Stable версии приложений!

Настраиваем подключение к впн Устанавливайте только Stable версии приложений!

Подробнее про клиенты и настройку можно почитать по этой ссылке

Android

  1. NekoBox for Android
  • Скачать и установить приложение на смартфон.
@kksudo
kksudo / aws-s3-test-connection.sh
Last active February 27, 2025 20:02
Test connection to AWS S3 bucket using AWS CLI from bash script.
#!/usr/bin/env bash
set -eo pipefail
# Description: Test connection to AWS S3 bucket using AWS CLI from bash script.
# Prerequisites:
# - Install jq https://stedolan.github.io/jq/download/
# - Install AWS CLI https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
# Author: Kirill https://Kazakov.xyz
@kksudo
kksudo / .zshenv
Last active March 24, 2023 19:26
bash_profile file is a personal initialization file for configuring the user environment.
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
export ZSH_AUTOSUGGEST_STRATEGY=(history completion)
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export FPATH=/opt/linuxbrew/.linuxbrew/share/zsh/site-functions:$FPATH
@kksudo
kksudo / certificate_synthetic.js
Created April 7, 2022 15:15 — forked from adamcrews/certificate_synthetic.js
New Relic SSL/TLS Synthetic
/*
To use this synthetic, set the following Secure credentials:
NEW_RELIC_INSIGHTS_API_KEY - Your api key from the account settings.
NEW_RELIC_ACCOUNT_ID - Your account ID, also found in the account settings.
CERTS_TO_MONITOR - A list of hosts to check via https, separated by a comma and a space, for example:
host.example.com, foo.example.com
Create a new Synthetic monitor, copy the entire contents of this script to the monitor.
Set the monitor to run once a day from a single location.
@kksudo
kksudo / iam.tf
Created November 29, 2021 14:28
SkillFactory, a task solution ECS with EC2. Getting started with the classic console using Amazon EC2
# This role has a trust relationship which allows
# to assume the role of ec2
resource "aws_iam_role" "ecs" {
name = "${var.appName}_ecs_${var.environ}"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
"Statement": [
{
"Action": "sts:AssumeRole",