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 argparse | |
import asyncio | |
import struct | |
import aioquic.asyncio | |
from aioquic.quic.configuration import QuicConfiguration | |
from aioquic.quic.events import StreamDataReceived | |
_I = struct.Struct('!I') |
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 argparse | |
import asyncio | |
import ssl | |
import struct | |
import aioquic.asyncio | |
from aioquic.quic.configuration import QuicConfiguration | |
from aioquic.quic.events import StreamDataReceived | |
_I = struct.Struct('!I') |
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 argparse | |
import asyncio | |
import ssl | |
import struct | |
import aioquic.asyncio | |
from aioquic.quic.configuration import QuicConfiguration | |
from aioquic.quic.events import StreamDataReceived | |
_I = struct.Struct('!I') |
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 argparse | |
import asyncio | |
import struct | |
_I = struct.Struct('!I') | |
class UDPClient(asyncio.DatagramProtocol): | |
def __init__(self, size, time): |
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
Push-Location $PSScriptRoot | |
$subscriptionsURL = 'https://raw.githubusercontent.com/adblockplus/adblockpluscore/master/data/subscriptions.json' | |
$subscriptions = Invoke-WebRequest $subscriptionsURL | ConvertFrom-Json | |
$language = (Get-UICulture).TwoLetterISOLanguageName | |
if ($language -notin $subscriptions.languages) {$language = 'en'} | |
$registryPath = 'HKCU:\Software\Microsoft\Internet Explorer\Safety\PrivacIE\Lists' | |
$added = Get-ItemPropertyValue "$registryPath\*" 'Name' |
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 code | |
from argparse import ArgumentParser | |
from decimal import getcontext | |
from functools import update_wrapper | |
from sys import float_info | |
from tokenize import generate_tokens, untokenize, NUMBER, STRING, NAME, OP | |
operations = [ | |
f'__{a}{b}__' for a in ['', 'r', 'i'] | |
for b in ['add', 'sub', 'mul', 'matmul', 'truediv', |
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
@echo off | |
if "%~1" == "" ( | |
set products=https://data.services.jetbrains.com/products?fields=code,name,distributions | |
PowerShell "(Invoke-WebRequest $env:products | ConvertFrom-Json).Where{$_.distributions.windows}.ForEach{Set-Content ('%~dp0' + $_.name + '.cmd') ('@\"%%~dp0setup.cmd\" ' + $_.code)}" | |
exit /b | |
) | |
if not exist "%~3" aria2c -d %Temp% --on-download-complete "%~dp0setup.cmd" "https://data.services.jetbrains.com/products/download?code=%1&platform=windows" & exit /b |
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> | |
<!-- saved from url=(0014)about:internet --> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Internet Explorer Tracking Protection Lists</title> | |
<style> | |
body { | |
font-family: Segoe UI, sans-serif, Segoe UI Emoji; | |
} |
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 glob | |
import sys | |
from concurrent.futures import ProcessPoolExecutor | |
from itertools import chain | |
from cchardet import UniversalDetector | |
detector = UniversalDetector() | |
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
@whoami /groups | find "S-1-16-8192" && (echo Start-Process cmd '/c ""%~f0" %*"' -Verb RunAs | PowerShell - & exit /b) |