This file contains 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 | |
from pathlib import Path | |
GAME = Path(__file__).parent | |
MODS = GAME / 'user' / 'mods' | |
for ts in MODS.rglob('*.ts'): | |
js = ts.with_suffix('.js') | |
map = ts.with_suffix('.js.map') |
This file contains 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
""" | |
This script requires Python 3.11 or later | |
Put it in a directory alongside a folder named `meta`, it should have a structure like the following: | |
├── newlink.py | |
└── meta | |
├── game | |
│ └── 14.1.2.29197 | |
│ ├── EscapeFromTarkov_Data | |
│ ├── EscapeFromTarkov.exe |
This file contains 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
# /etc/nginx/sites-available/YOURDOMAIN | |
server { | |
server_name your.domain; | |
location / { | |
proxy_pass http://localhost:PORT/; | |
include /etc/nginx/custom/proxy.conf; | |
} | |
include /etc/nginx/custom/ssl-YOURDOMAIN.conf; |
This file contains 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
from typing import Annotated, Any | |
from discord import Interaction, app_commands | |
from discord.app_commands import Choice | |
from discord.ext import commands | |
import discord | |
class CategoryTransformer(app_commands.Transformer): |
This file contains 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
from __future__ import annotations | |
""" | |
Copyright 2021 sgtlaggy | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>{% block title %}{% endblock %}</title> | |
<link type="text/css" rel="stylesheet" href="/style.css"> | |
{% block head %}{% endblock %} | |
</head> | |
<body> | |
<div id="container"> | |
<div id="main1"> |
This file contains 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 urllib.request | |
import random | |
import json | |
try: | |
from tkinter import Tk, messagebox | |
except ImportError: | |
tk = False | |
else: | |
tk = True |