Skip to content

Instantly share code, notes, and snippets.

View pavlozt's full-sized avatar

Pavel Z pavlozt

View GitHub Profile
@pavlozt
pavlozt / xrayjson_to_vless.py
Created January 12, 2026 09:28
generate vless:// scheme url from xray naive json format config
#!/usr/bin/env python3
# Based on: https://gist.github.com/graythze/432978a0e15d58f42b95092702adce5e
import json
import urllib.parse
import sys
def convert_json_to_vless(config_data, custom_name):
# Extract necessary data from the JSON structure
outbound = config_data['outbounds'][0]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pavlozt
pavlozt / main.tf
Created November 13, 2021 09:23
aws with elastic ip
terraform elastic ip
# like this https://mmas.github.io/read-apache-access-log-pandas
import pandas as pd
import io
logstring="""
sosiski.ru 37.140.192.84 - - [10/Aug/2020:03:15:14 +0300] "GET /api.html?ip= HTTP/1.0" 200 4897 "-" "-" 0.137 0.082 0.082
sosiski.ru 93.77.28.57 - - [15/Aug/2020:08:43:25 +0300] "GET //%103%10%02/%08?5++]5%FF%FF%BC%FF%E3%06 HTTP/1.1" 404 43364 "https://sosiski.ru/assets/CenturySchoolbook-Italic.ttf" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" 0.140 0.140 0.137
sosiski.ru 93.77.28.57 - - [15/Aug/2020:08:43:25 +0300] "GET //%103%10%02/%08?5++]5%FF%FF%BC%FF%E3%06 HTTP/1.1" 404 43364 "https://sosiski.ru.ru/assets/CenturySchoolbook-Italic.ttf" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" 0.124 0.124 0.121
"""