repo
stringlengths
7
90
file_url
stringlengths
81
315
file_path
stringlengths
4
228
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:38:15
2026-01-05 02:33:18
truncated
bool
2 classes
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu1623.py
itur/models/itu1623.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import warnings import numpy as np from astropy import units as u from scipy.optimize import fsolve from scipy.special import erf as erf from itur.utils import get_input_type, prepare_...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu836.py
itur/models/itu836.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from astropy import units as u from itur.models.itu1511 import topographic_altitude from itur.models.itu1144 import (bilinear_2D_interpolator, ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu839.py
itur/models/itu839.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from astropy import units as u from itur.models.itu1144 import bilinear_2D_interpolator from itur.utils import (prepare_input_array, prepare_output_array, ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu840.py
itur/models/itu840.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from astropy import units as u from itur.models.itu1144 import bilinear_2D_interpolator from itur.utils import (dataset_dir, prepare_input_array, prepare_o...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu1510.py
itur/models/itu1510.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from astropy import units as u from itur.models.itu1144 import (bilinear_2D_interpolator, bicubic_2D_interpolator) from itur.utils i...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu1853.py
itur/models/itu1853.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import scipy.stats as stats from scipy.signal import lfilter from itur.models.itu618 import rain_attenuation, scintillation_attenuation_sigma from itur.models.itu676 ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu530.py
itur/models/itu530.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from astropy import units as u from scipy.optimize import bisect from itur.models.itu453 import DN65 from itur.models.itu837 import rainfall_rate from itur.models.it...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu1511.py
itur/models/itu1511.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from astropy import units as u from itur.models.itu1144 import bicubic_2D_interpolator from itur.utils import (prepare_input_array, prepare_output_array, ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/__init__.py
itur/models/__init__.py
__all__ = ['itu453', 'itu530', 'itu618', 'itu676', 'itu835', 'itu836', 'itu837', 'itu838', 'itu839', 'itu840', 'itu1144', 'itu1510', 'itu1511', 'itu1623', 'itu1853'] import itur.models.itu453 import itur.models.itu530 import itur.models.itu618 import itur.models.itu835 import itur.models.itu836 i...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu835.py
itur/models/itu835.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from astropy import units as u from itur.utils import (prepare_input_array, prepare_output_array, get_input_type, ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu618.py
itur/models/itu618.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import scipy.stats as stats import scipy.special import scipy.integrate from astropy import units as u from itur.models.itu453 import water_vapour_pressure,\ wet_...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu453.py
itur/models/itu453.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import numpy as np from astropy import units as u from itur.models.itu1144 import bilinear_2D_interpolator from itur.utils import (prepare_input_array, prepare_quantity, load_...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/itur/models/itu676.py
itur/models/itu676.py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import warnings import numpy as np from astropy import units as u from itur.models.itu453 import radio_refractive_index from itur.models.itu835 import (standard_pressure, st...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/test/itur_test.py
test/itur_test.py
# -*- coding: utf-8 -*- import os import sys import warnings import numpy as np import unittest as test import itur import itur.models as models from astropy import units as u basepath = os.path.dirname(os.path.realpath(__file__)) test_data = os.path.join(basepath, 'test_data') def suite(): """ A test suite fo...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/test/examples_test.py
test/examples_test.py
# -*- coding: utf-8 -*- import matplotlib matplotlib.use('agg') import itur.models.itu835 as itu835 import itur.models.itu676 as itu676 import itur import unittest as test import numpy as np import sys import matplotlib.pyplot as plt def suite(): """A test suite for the examples includes in itur. """ suite =...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/test/ITU_validation_report_test.py
test/ITU_validation_report_test.py
# -*- coding: utf-8 -*- import sys import numpy as np import pandas as pd import os.path as path from collections import defaultdict, OrderedDict import unittest as test import itur.models as models from itur import atmospheric_attenuation_slant_path pd.set_option('display.max_colwidth', None) basepath = path.dirna...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/test/__init__.py
test/__init__.py
__all__ = [ 'itur_test', 'ITU_validation_report_test', 'ITU_validation_test', 'examples_test']
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/test/ITU_validation_test.py
test/ITU_validation_test.py
# -*- coding: utf-8 -*- import unittest as test import itur import itur.models as models import sys from astropy import units as u def suite(): """ A test suite for the ITU-P Recommendations. Recommendations tested: * ITU-P R-676-9 * ITU-P R-676-11 * ITU-P R-618-12 * ITU-P R-618-13 * ITU-P R...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
true
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/docs/build_module_tables.py
docs/build_module_tables.py
# -*- coding: utf-8 -*- import re import requests import importlib from functools import reduce def make_rst_table(grid): cell_width = 2 + max( reduce(lambda x, y: x + y, [[len(item) for item in row] for row in grid], []) ) num_cols = len(grid[0]) rst = table_div(num_cols, cell_width, 0) h...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/docs/conf.py
docs/conf.py
# -*- coding: utf-8 -*- # # ITU-Rpy documentation build configuration file, created by # sphinx-quickstart on Mon Sep 14 12:36:21 2015. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/gaseous_attenuation.py
examples/gaseous_attenuation.py
# -*- coding: utf-8 -*- """ This example reproduces the graphs plotted in ITU-R P.676 recommendation. """ import itur import itur.models.itu676 as itu676 import itur.models.itu835 as itu835 import numpy as np import matplotlib.pyplot as plt ##############################################################################...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/single_location.py
examples/single_location.py
# -*- coding: utf-8 -*- """ In this example we compute different atmospheric parameters for a single ground station. The ground station is located in Boston (GPS coordinates 41.36, -71.05) and the link operates at a frequency of 22.5 GHz, elevation angle of 60 degrees, and with a receiver antenna of 1 m diameter. Val...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/itu_837_rainfall_map.py
examples/itu_837_rainfall_map.py
# -*- coding: utf-8 -*- """ This example shows how to compute the rainfall-rate (mm/hr) exceeded for 0.01 % of the time of the average year over a large region of the Earth. This image is similar to the one plotted in page 5 of Recommendation ITU-R P.837-7. """ import itur import matplotlib.pyplot as plt # Set Recomm...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/itu_1510_mean_surface_temperature.py
examples/itu_1510_mean_surface_temperature.py
# -*- coding: utf-8 -*- """ This example shows how to compute the anuaml mean surface temperature over a large region of the Earth. This image is similar to the one plotted in page 3 of Recommendation ITU-R P.1510-1. """ import itur # Set Recommendation ITU-R P.1510 to version 1 itur.models.itu1510.change_version(1) ...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/single_location_vs_unavailability.py
examples/single_location_vs_unavailability.py
# -*- coding: utf-8 -*- """ This example shows how to compute the attenuation vs. percentage of time of the average year that values are exceeded for a single location. The link is a space-to-Earth link between a ground station in Boston and a satellite in GEO orbit (slot 77W). The link operates at 22.5 GHz and the re...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/map_africa.py
examples/map_africa.py
# -*- coding: utf-8 -*- """ This example shows how to compute the atmospheric attenuation exceeded for 0.1 % of the time of the average year over a large region of the Earth. It is assumed that the satellite is located in geostationary orbit, at the 4 E slot, and the link operates at 22.5 GHz with receiver-dishes of 1...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/multiple_location.py
examples/multiple_location.py
# -*- coding: utf-8 -*- """ This example shows how to compute the atmospheric attenuation exceeded for 0.1 % of the time for multiple ground stations. It is assumed that the satellite is located in geostationary orbit, at the 77 W slot, and the link operates at 22.5 GHz with receiver-dishes of 1.2 m diameter. Finally...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
inigodelportillo/ITU-Rpy
https://github.com/inigodelportillo/ITU-Rpy/blob/e69587f75bdb7f8b1049259f36eb31a36ca5c570/examples/single_location_vs_freq_el.py
examples/single_location_vs_freq_el.py
# -*- coding: utf-8 -*- """ This example shows how to compute the 'attenuation exceeded for 0.1 % of time of the average year' vs. 'frequency' and 'elevation angle' for a single location. For the 'attenuation exceeded for 0.1 % of time of the average year' vs. 'frequency' case the link is assume to be a space-to-Earth...
python
MIT
e69587f75bdb7f8b1049259f36eb31a36ca5c570
2026-01-05T07:12:38.084174Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/python/ipv6.py
python/ipv6.py
import base64 import json import re import requests # Configuration URLs config_urls = [ "https://raw.githubusercontent.com/Surfboardv2ray/Proxy-sorter/refs/heads/main/submerge/converted.txt", "https://raw.githubusercontent.com/Surfboardv2ray/TGParse/refs/heads/main/configtg.txt", # "https://raw.githubuserc...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/python/sorter.py
python/sorter.py
import base64 import json import requests import re import socket import os def get_country_code(ip_address): try: # Try to resolve the hostname to an IP address ip_address = socket.gethostbyname(ip_address) except socket.gaierror: print(f"Unable to resolve hostname: {ip_address}") ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/python/ipv6_ddremoval.py
python/ipv6_ddremoval.py
import base64 import json import re import requests # Configuration URLs config_urls = [ "https://raw.githubusercontent.com/Surfboardv2ray/Proxy-sorter/refs/heads/main/submerge/converted.txt", "https://raw.githubusercontent.com/Surfboardv2ray/TGParse/refs/heads/main/configtg.txt", "https://raw.githubuserco...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/python/7899.py
python/7899.py
import base64 import json import urllib.parse def modify_proxies(): with open('ws_tls/proxies/wstls', 'r') as f: proxies = f.readlines() modified_proxies = [] for proxy in proxies: proxy = proxy.strip() if proxy.startswith('vmess://'): base64_str = proxy.split('vmess://...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/python/wstls.py
python/wstls.py
import base64 import json import urllib.parse def filter_proxies(): with open('output/converted.txt', 'r') as f: proxies = f.readlines() filtered_proxies = [] for proxy in proxies: proxy = proxy.strip() if proxy.startswith('vmess://'): base64_str = proxy.split('vmess://...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/xrayping.py
xray/xrayping.py
import sys sys.path.append('./modules/xray_url_decoder/') sys.path.append('./modules/clash_meta_url_decoder/') sys.path.append('./') sys.path.append('./modules') sys.path.append('xray/modules/gitRepo.py') import json import uuid from ruamel.yaml import YAML from modules.gitRepo import commitPushRActiveProxiesFile, get...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/client.py
xray/modules/client.py
from telethon import TelegramClient from dotenv import load_dotenv import os load_dotenv() api_id = int(os.getenv('API_ID')) api_hash = os.getenv('API_HASH') if not (api_id or api_hash): raise Exception('You have to pass both API_ID and API_HASH env variables') proxy = {} if len(os.getenv('PROXY_URL')) > 2: ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/XrayConfig.py
xray/modules/XrayConfig.py
from XrayRouting import * from XrayInbound import * class XrayConfigSimple: policy: dict log: dict inbounds: List[Inbound] outbounds: List[dict] stats: dict routing: XrayRouting def __init__(self, inbounds: List[Any], outbounds: List[dict], routing: XrayRouting, stats: dict = None, ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/cleanProxiesRowUrl.py
xray/modules/cleanProxiesRowUrl.py
import json import shutil import sys from urllib.parse import urlparse sys.path.append('./xray_url_decoder/') from gitRepo import getLatestActiveConfigs, getLatestRowProxies, commitPushRowProxiesFile from xray_url_decoder.XrayUrlDecoder import XrayUrlDecoder def is_duplicated_config(proxy: str, seen_lines: set[str]...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/gitRepo.py
xray/modules/gitRepo.py
import shutil from git import Repo from dotenv import load_dotenv import os load_dotenv() GITHUB_TOKEN = os.getenv('TOKEN_GITHUB') REPO = os.getenv('REPO', 'Surfboardv2ray/Proxy-sorter') IS_DEBUG = '0' if os.path.exists("./repo/.git"): repo = Repo("./repo/") else: repo = Repo.clone_from( "https://m...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/checkProxies.py
xray/modules/checkProxies.py
import json import sys import uuid from ruamel.yaml import YAML from gitRepo import commitPushRActiveProxiesFile, getLatestActiveConfigs sys.path.append('./xray_url_decoder/') sys.path.append('./clash_meta_url_decoder/') sys.path.append('./') from xray_url_decoder.XrayUrlDecoder import XrayUrlDecoder from xray_ping.X...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/XrayPing.py
xray/modules/XrayPing.py
import json import time from random import randint import subprocess from threading import Thread from pathlib import Path import requests from XrayInbound import * from XrayRouting import * from XrayConfig import XrayConfigSimple def real_delay(port: int, proxy_name: str): test_url = 'http://detectportal.firef...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/dontLetGrowAllRowProxies.py
xray/modules/dontLetGrowAllRowProxies.py
import shutil from gitRepo import getLatestRowProxies, commitPushRowProxiesFile with open("collected-proxies/row-url/all.txt", 'r') as rowProxiesFile: if len(rowProxiesFile.readlines()) < 1000: print("row proxies count(under 1000) => ", rowProxiesFile.readlines()) exit(0) getLatestRowProxies() s...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/main.py
xray/modules/main.py
from client import app, PROXY_CHANNELS from telethon.sync import events import re import datetime from gitRepo import commitPushRowProxiesFile, getLatestRowProxies def extract_v2ray_links(text) -> list[str]: regex = r"(vless|vmess|trojan):\/\/[^\\\n]*" matches = re.finditer(regex, text, re.MULTILINE) ret...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/XrayRouting.py
xray/modules/XrayRouting.py
from typing import List, Any class Rule: inboundTag: str domain: List[Any] outboundTag: str type: str def __init__(self, inbound_tag: str, outbound_tag: str, domain: List[Any], type: str = None) -> None: self.inboundTag = inbound_tag self.domain = domain self.outboundTag ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/__init__.py
xray/modules/__init__.py
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/XrayInbound.py
xray/modules/XrayInbound.py
from typing import List class SocksSettings: auth: str udp: bool allow_transparent: bool def __init__(self, auth: str = None, udp: bool = None, allow_transparent: bool = None) -> None: self.auth = auth if auth is not None else "noauth" self.udp = udp if udp is not None else True ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/IsValid.py
xray/modules/xray_url_decoder/IsValid.py
import uuid from curses.ascii import isalnum from .XraySetting import TLSSettings, RealitySettings from .vless import UserVless, VnextVless def is_valid_uuid(value): try: uuid.UUID(str(value)) return True except ValueError: return False def isValid_link(username: str, address: str, ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/trojan.py
xray/modules/xray_url_decoder/trojan.py
import re from random import randint from typing import List from xray_url_decoder.XraySetting import StreamSettings, Mux class ServerTrojan: address: str port: int password: str email: str level: int def __init__(self, address: str, port: int, password: str, email: str = "t@t.tt", level: in...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/vless.py
xray/modules/xray_url_decoder/vless.py
import re from random import randint from typing import List from xray_url_decoder.XraySetting import StreamSettings, Mux class UserVless: id: str alterId: int email: str security: str encryption: str flow: str def __init__(self, id: str, alter_id: int = 0, email: str = "t@t.tt", securit...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/XrayUrlDecoder.py
xray/modules/xray_url_decoder/XrayUrlDecoder.py
import ipaddress import json import base64 import uuid from urllib.parse import parse_qs, ParseResult, urlencode, urlparse, urlunparse from .IsValid import isValid_tls, isValid_reality, isValid_userVless, isValid_vnextVless, isValid_link from .XraySetting import GrpcSettings, TCPSettings, WsSettingsVless, RealitySettin...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/XraySetting.py
xray/modules/xray_url_decoder/XraySetting.py
from typing import List class Mux: enabled: bool concurrency: int def __init__(self, enabled: bool = None, concurrency: int = None) -> None: self.enabled = enabled if enabled is not None else False self.concurrency = concurrency if concurrency is not None else -1 class TLSSettings: ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/__init__.py
xray/modules/xray_url_decoder/__init__.py
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/xray_url_decoder/vmess.py
xray/modules/xray_url_decoder/vmess.py
import re from random import randint from typing import List from xray_url_decoder.XraySetting import StreamSettings, Mux class UserVmess: id: str security: str level: int alterId: int def __init__(self, id: str, alterId: int = None, security: str = None, level: int = None) -> None: self...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/VNetwork.py
xray/modules/clash_meta_url_decoder/VNetwork.py
class RealityOpts: publicKey: str shortId: str def __init__(self, publicKey: str, shortId: str = None): self.publicKey = publicKey self.shortId = shortId if shortId is not None else "" class GrpcOpts: grpcServiceName: str def __init__(self, grpcServiceName: str): self.grp...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/IsValid.py
xray/modules/clash_meta_url_decoder/IsValid.py
import uuid def is_valid_uuid(value): try: uuid.UUID(str(value)) return True except ValueError: return False def isValid_link(username: str, address: str, port: int) -> bool: if is_valid_uuid(username): return True return False
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/ClashMetaUrlDecoder.py
xray/modules/clash_meta_url_decoder/ClashMetaUrlDecoder.py
import ipaddress import json import base64 import re import uuid from collections import namedtuple from urllib.parse import parse_qs, ParseResult, urlencode, urlparse, urlunparse from clash_meta_url_decoder.IsValid import isValid_link from clash_meta_url_decoder.VBase import VBase from clash_meta_url_decoder.VNetwork...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/trojan.py
xray/modules/clash_meta_url_decoder/trojan.py
from clash_meta_url_decoder.VBase import VBase class Trojan(VBase): password: str clientFingerprint: str fingerprint: str udp: bool sni: str alpn: list[str] skipCertVerify: bool def __init__(self, password: str, vBase: VBase, clientFingerprint: str = None, fingerprint: str = None, ...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/vless.py
xray/modules/clash_meta_url_decoder/vless.py
from clash_meta_url_decoder.VBase import VBase from clash_meta_url_decoder.VNetwork import VNetwork class Vless(VBase, VNetwork): uuid: str def __init__(self, uuid: str, vBase: VBase, bNetwork: VNetwork) -> None: self.uuid = uuid VBase.__init__(self, vBase.type, vBase.name, vBase.server, vBas...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/VBase.py
xray/modules/clash_meta_url_decoder/VBase.py
import re from random import randint def generateName(name): return "proxy_" + str(randint(1111, 9999999)) + "_" + re.sub(r'([/:+])+', '', name[:120]) class VBase: name: str type: str port: int server: str def __init__(self, type: str, name: str, server: str, port: int) -> None: sel...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/xray/modules/clash_meta_url_decoder/vmess.py
xray/modules/clash_meta_url_decoder/vmess.py
from clash_meta_url_decoder.VBase import VBase from clash_meta_url_decoder.VNetwork import VNetwork class Vmess(VBase, VNetwork): uuid: str alterId: int cipher: str def __init__(self, uuid: str, vBase: VBase, bNetwork: VNetwork, alterId: int = None, cipher: str = None) -> None: self.uuid = uu...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
Surfboardv2ray/Proxy-sorter
https://github.com/Surfboardv2ray/Proxy-sorter/blob/c3826a3f304c57855729c678ccb66b0957052705/selector/random_lines.py
selector/random_lines.py
import random # File names input_file = 'output/converted.txt' output_file = 'selector/random' # Number of lines to select num_lines_to_select = 100 def select_random_lines(input_file, output_file, num_lines): with open(input_file, 'r') as f: lines = f.readlines() # Ensure we do not exceed the numbe...
python
MIT
c3826a3f304c57855729c678ccb66b0957052705
2026-01-05T06:58:19.259148Z
false
tobilg/duckdb-nodejs-layer
https://github.com/tobilg/duckdb-nodejs-layer/blob/caa10aa16f944aee73e66a4f7c0c9dd68208bb40/src/configure.py
src/configure.py
import os import sys import json import pickle # list of extensions to bundle extensions = ['parquet', 'icu', 'json', 'httpfs', 'fts'] # path to target basedir = os.getcwd() target_dir = os.path.join(basedir, 'src', 'duckdb') gyp_in = os.path.join(basedir, 'binding.gyp.in') gyp_out = os.path.join(basedir, 'binding.gy...
python
MIT
caa10aa16f944aee73e66a4f7c0c9dd68208bb40
2026-01-05T07:07:26.578811Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/QnQSec/2025/web/QnQsec_portal/app.py
ctfs/QnQSec/2025/web/QnQsec_portal/app.py
import os import sqlite3 import secrets import hashlib from hashlib import md5 from datetime import datetime, timedelta, timezone import jwt from flask import ( Flask, request, render_template, redirect, session, flash, url_for, g, abort, make_response ) from admin_routes import admin_bp,generate_jwt BASE_D...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/VuwCTF/2025/misc/not_turing_complete/parser.py
ctfs/VuwCTF/2025/misc/not_turing_complete/parser.py
# parser.py VARIABLES = [ "a", "b", "c" ] def trim_line(line): line = line.strip() return line class LeftExpr: def __init__(self, var_name): if var_name not in VARIABLES: raise ValueError() self.var_name = var_name def validate(self): if self.var_name not in VARIA...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/VuwCTF/2025/misc/not_turing_complete/interpreter.py
ctfs/VuwCTF/2025/misc/not_turing_complete/interpreter.py
# interpreter.py from parser import VARIABLES, ARITHMETIC_OPERATORS, LeftExpr, RightExpr class Interpreter: def __init__(self, code: list): self.code = code self.variables = { var: 0 for var in VARIABLES } def initialize(self, a_value: int = 0, b_value: int = 0, c_value: int = 0): sel...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/VuwCTF/2025/misc/not_turing_complete/server.py
ctfs/VuwCTF/2025/misc/not_turing_complete/server.py
from parser import Parser from interpreter import Interpreter import sys import os import secrets import xxhash FLAG = os.getenv('FLAG', 'VuwCTF{ntc_test_flag}') BANNER = """ .-----------------. .----------------. .----------------. | .--------------. || .--------------. || .--------------. | | | ____ _____ | |...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/VuwCTF/2025/crypto/totally_random_art/randart.py
ctfs/VuwCTF/2025/crypto/totally_random_art/randart.py
import numpy as np import random # Generates random ascii art of totally-not-sensitive data! WIDTH = 10 HEIGHT = 5 PALETTE = ".:-=+*#%@oT0w&8R" def generate_random_art(data: bytes, width=WIDTH, height=HEIGHT) -> str: rng = random.Random(data[0:4]) # Seed with first 4 bytes of data remaining_data = data[4:]...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/VuwCTF/2025/web/fishsite/fishsite.py
ctfs/VuwCTF/2025/web/fishsite/fishsite.py
import os import sqlite3 import flask app = flask.Flask(__name__) app.secret_key = os.urandom(32) @app.route('/') def index(): return flask.render_template("index.html") @app.post('/login') def login(): username = flask.request.form.get('username') password = flask.request.form.get('password') ...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/UNbreakableInternational/2024/crypto/krotate/chall.py
ctfs/UNbreakableInternational/2024/crypto/krotate/chall.py
from Crypto.Random import get_random_bytes KEY_LEN = 100 key = get_random_bytes(KEY_LEN) R = 0x01 def RGEN(): global R R = ((R << 1) ^ (0x71 if (R & 0x80) else 0)) & 0xFF return R def xor_text(text, key): return bytes([text[i] ^ key[i] for i in range(len(text))]) def next_key(key): return byt...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/UNbreakableInternational/2024/crypto/sat1sf1/sah652.py
ctfs/UNbreakableInternational/2024/crypto/sat1sf1/sah652.py
from functools import reduce import sys def KekF1601onLanes(lanes): R = 1 for _ in range(24): C = [reduce(lambda a, b: a ^ b, lanes[x]) for x in range(len(lanes))] D = [ C[(x + 4) % len(lanes)] ^ C[(x + 1) % len(lanes)] for x in range(len(lanes)) ] lanes = [[lanes[...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/manage.py
ctfs/RACTF/2021/web/Secret_Store/src/manage.py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'secretstore.settings') try: from django.core.management import execute_from_command_line except ...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/views.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/views.py
from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.shortcuts import render from django.views.generic import CreateView from rest_framework import viewsets, filters from rest_framework.permissions import IsAuthenticated from secret.models import Secret from se...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/permissions.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/permissions.py
from rest_framework import permissions class IsSecretOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): return request.method in permissions.SAFE_METHODS and obj.owner == request.user
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/admin.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/admin.py
from django.contrib import admin # Register your models here.
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/models.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/models.py
from django.contrib.auth.models import User from django.db import models from django.db.models import CASCADE class Secret(models.Model): value = models.CharField(max_length=255) owner = models.OneToOneField(User, on_delete=CASCADE) last_updated = models.DateTimeField(auto_now=True) created = models.D...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/serializers.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/serializers.py
from rest_framework import serializers from secret.models import Secret class SecretSerializer(serializers.ModelSerializer): class Meta: model = Secret fields = ["id", "value", "owner", "last_updated", "created"] read_only_fields = ["owner", "last_updated", "created"] extra_kwargs...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/__init__.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/__init__.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/tests.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/tests.py
from django.test import TestCase # Create your tests here.
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/apps.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/apps.py
from django.apps import AppConfig class SecretConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'secret'
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/forms.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/forms.py
from django.forms import ModelForm from secret.models import Secret class SecretForm(ModelForm): class Meta: model = Secret fields = ["secret"]
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/urls.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/urls.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/migrations/0001_initial.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/migrations/0001_initial.py
# Generated by Django 3.2.6 on 2021-08-03 02:52 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secret/migrations/__init__.py
ctfs/RACTF/2021/web/Secret_Store/src/secret/migrations/__init__.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secretstore/asgi.py
ctfs/RACTF/2021/web/Secret_Store/src/secretstore/asgi.py
""" ASGI config for secretstore project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secretstore/settings.py
ctfs/RACTF/2021/web/Secret_Store/src/secretstore/settings.py
""" Django settings for secretstore project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ import os...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secretstore/__init__.py
ctfs/RACTF/2021/web/Secret_Store/src/secretstore/__init__.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secretstore/wsgi.py
ctfs/RACTF/2021/web/Secret_Store/src/secretstore/wsgi.py
""" WSGI config for secretstore project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Secret_Store/src/secretstore/urls.py
ctfs/RACTF/2021/web/Secret_Store/src/secretstore/urls.py
"""secretstore URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/manage.py
ctfs/RACTF/2021/web/Emojibook/manage.py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'notebook.settings') try: from django.core.management import execute_from_command_line except Imp...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notebook/asgi.py
ctfs/RACTF/2021/web/Emojibook/notebook/asgi.py
""" ASGI config for notebook project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETT...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notebook/settings.py
ctfs/RACTF/2021/web/Emojibook/notebook/settings.py
""" Django settings for notebook project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notebook/__init__.py
ctfs/RACTF/2021/web/Emojibook/notebook/__init__.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notebook/wsgi.py
ctfs/RACTF/2021/web/Emojibook/notebook/wsgi.py
""" WSGI config for notebook project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notebook/urls.py
ctfs/RACTF/2021/web/Emojibook/notebook/urls.py
"""notebook URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/views.py
ctfs/RACTF/2021/web/Emojibook/notes/views.py
import base64 import os import re from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.urls import reverse from django.views.generic i...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/admin.py
ctfs/RACTF/2021/web/Emojibook/notes/admin.py
from django.contrib import admin # Register your models here.
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/models.py
ctfs/RACTF/2021/web/Emojibook/notes/models.py
from django.contrib.auth.models import User from django.db import models from django.db.models import CASCADE class Note(models.Model): name = models.CharField(max_length=255) body = models.TextField() author = models.ForeignKey(to=User, on_delete=CASCADE)
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/__init__.py
ctfs/RACTF/2021/web/Emojibook/notes/__init__.py
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/tests.py
ctfs/RACTF/2021/web/Emojibook/notes/tests.py
from django.test import TestCase # Create your tests here.
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/apps.py
ctfs/RACTF/2021/web/Emojibook/notes/apps.py
from django.apps import AppConfig class NotesConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'notes'
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false
sajjadium/ctf-archives
https://github.com/sajjadium/ctf-archives/blob/129a3a9fe604443211fa4d493a49630c30689df7/ctfs/RACTF/2021/web/Emojibook/notes/forms.py
ctfs/RACTF/2021/web/Emojibook/notes/forms.py
import json import re from django import forms from django.forms import Textarea from notes.models import Note class NoteCreateForm(forms.ModelForm): class Meta: model = Note fields = ["name", "body"] widgets = { "body": Textarea(attrs={"cols": 60, "rows": 20}), } ...
python
MIT
129a3a9fe604443211fa4d493a49630c30689df7
2026-01-05T01:34:13.869332Z
false