This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """Count special characters in unique Registry player names.""" | |
| from __future__ import annotations | |
| import argparse | |
| import json | |
| from collections import Counter | |
| from pathlib import Path | |
| from typing import Any, Iterator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """" | |
| Vanilla BF2 admin chat logger (Python 2.3 compatible) | |
| Setup | |
| - add to standard_admin as admin/standard_admin/chatlogger.py | |
| - in admin/standard_admin/__init__.py, add two lines: | |
| import chatlogger | |
| chatlogger.init() | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Player verification module | |
| ====================== | |
| Verify player's accounts as players join. | |
| ===== Config ===== | |
| # Add a bypass IP address | |
| # You can let players bypass verification based on their IP address. | |
| # If your server uses "idle bots", make sure to add bypass using their IP address, else they will get banned. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| ControlPointManager module | |
| ====================== | |
| Modify control point settings without modifying map files. | |
| ===== Config ===== | |
| # Add a condition | |
| # You can use any server setting/single-value-returning RCON command as a condition for enabling control point modifications | |
| mm_controlpointmanager.addCondition "<setting (including sv. prefix) or other RCON command>" "<value>" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "bytes" | |
| "encoding/binary" | |
| "io" | |
| "log" | |
| "os" | |
| "path/filepath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # uncompyle6 version 3.9.3.dev0 | |
| # Python bytecode version base 2.3 (62011) | |
| # Decompiled from: Python 3.8.10 (default, Jul 29 2024, 17:02:10) | |
| # [GCC 9.4.0] | |
| # Embedded file name: /tmp/bf2c/bf2hub/HttpClient.py | |
| # Compiled at: 2014-09-03 19:41:22 | |
| import socket, string | |
| from urlparse import urlparse | |
| class HttpClient: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "net" | |
| "os" | |
| "time" | |
| "github.com/rs/zerolog" | |
| "github.com/rs/zerolog/log" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function combine(strings: string[], length: number): string[] { | |
| // Init results array of required length, filled with empty strings | |
| const combinations = Array(strings.length**length).fill('') | |
| for (let i = length; i > 0; i--) { | |
| for (let j = 0; j < combinations.length; j++) { | |
| combinations[j] += strings[Math.floor(j/(strings.length**(i-1)))%strings.length] | |
| } | |
| } | |
| return combinations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 2024.04.16 16:32:56 UTC | |
| # Embedded file name: bf2mld_gui.py | |
| import wx | |
| import wx.html | |
| import sys | |
| import time | |
| from _winreg import * | |
| import psutil | |
| import threading | |
| import ConfigParser |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| from urllib.parse import quote | |
| from pybfbc2stats import Platform, FeslClient, SecureConnection, TheaterClient | |
| from pybfbc2stats.constants import FeslTransmissionType | |
| from pybfbc2stats.packet import FeslPacket | |
| def main(): | |
| client = FeslClient('', '', Platform.pc, track_steps=False) |
NewerOlder