Skip to content

Instantly share code, notes, and snippets.

View mojtab23's full-sized avatar
🏠
Working from home

Mojtaba mojtab23

🏠
Working from home
View GitHub Profile
@mojtab23
mojtab23 / Cargo.toml
Created December 1, 2019 06:35
Rust multicast
[package]
name = "rust_test"
version = "0.1.0"
authors = ["Mojtaba Zarezadeh <mojtab23@aol.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
socket2 = "0.3.11"
@mojtab23
mojtab23 / dockerfile
Last active July 15, 2019 13:14
Example docker file with configuring user. Telegram mtproxy dockerfile
FROM alpine:3.6
# Uncomment if local sources
# COPY ./MTProxy /mtproxy/sources
COPY ./patches /mtproxy/patches
RUN apk add --no-cache --virtual .build-deps \
git make gcc musl-dev linux-headers openssl-dev \
&& git clone --single-branch --depth 1 https://github.com/TelegramMessenger/MTProxy.git /mtproxy/sources \
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws Exception{