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
{ | |
"LastApplication": "2020-04-27T05:05:36.940814+00:00", | |
"Collapsed": { | |
"ARES_MOC_ENTITLEMENT": "urn:entitlement:arestencent.ares.moc", | |
"CLIENT.ICONS.ENABLED": "true", | |
"CLIENT_LEADERBOARDS_ENABLED": "false", | |
"GAME_ALLOW_CONSOLE": "true", | |
"GAME_ALLOW_DEVELOPER_MENU": "true", | |
"GAME_DISABLED_DEATHCAM": "true", | |
"GAME_DISABLED_SKINS_WEAPONS": "{B96ABFD9-4E1C-55AD-B685-8A88427C7404},{86F7362A-4649-892D-1A76-2FB3F1E9F2D2},{AD699809-4C07-85F8-BF94-749ABE92D531}", |
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
# Copied from code shared on Gitter (https://gitter.im/tiangolo/fastapi) by @dmontagu | |
# Decorator for fastapi | |
def repeat_every(*, seconds: float, wait_first: bool = False): | |
def decorator(func: Callable[[], Optional[Awaitable[None]]]): | |
is_coroutine = asyncio.iscoroutinefunction(func) | |
@wraps(func) | |
async def wrapped(): | |
async def loop(): | |
if wait_first: |
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 python | |
# -*- coding: utf-8 -*- | |
# Tcp Port Forwarding (Reverse Proxy) | |
# Author : WangYihang <wangyihanger@gmail.com> | |
import socket | |
import threading | |
import sys |
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
// Taken from https://stackoverflow.com/a/47088726/3429133. | |
function getAbsoluteXPath(element) { | |
var comp, comps = []; | |
var parent = null; | |
var xpath = ''; | |
var getPos = function(element) { | |
var position = 1, | |
curNode; | |
if (element.nodeType == Node.ATTRIBUTE_NODE) { | |
return null; |
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.6 | |
import asyncio | |
from contextlib import closing | |
import aiohttp | |
import tqdm | |
async def download(session, url, progress_queue): |