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
from pypdf import PdfReader, PdfWriter | |
FILES = [ | |
# File names | |
] | |
writer = PdfWriter() | |
for file in FILES: | |
reader = PdfReader(file) |
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 os | |
import re | |
def get_arp_table() -> dict[str, str]: | |
arp_table = {} | |
try: | |
with os.popen("arp -a") as arp_output: | |
output = arp_output.read() | |
for line in output.splitlines(): | |
match = re.search(r"(\d{1,3}(?:\.\d{1,3}){3}).*?([\da-fA-F]{2}(?:(?::|[\-])[\da-fA-F]{2}){5})", line) | |
if match: |
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
from time import sleep | |
AMONGUS_CODE = 3486 | |
SLEEP_TIME = 0.33 | |
try: | |
i = 0 | |
while True: | |
print(chr(AMONGUS_CODE + i), end='') | |
i = (i + 1) % 5 |
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
from pypdf import PdfReader, PdfWriter | |
PDF_IN = '' # CHANGE | |
PDF_OUT = '' # CHANGE | |
PAGES = [] # Starting at 1 | |
reader = PdfReader(PDF_IN) | |
writer = PdfWriter() | |
for page in PAGES: |
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
#define c "c" | |
#define cc int | |
#define ccc main | |
#define cccc printf | |
#define ccccc return | |
#define cccccc 0 | |
#define ccccccc ( | |
#define cccccccc ) | |
#define ccccccccc { | |
#define cccccccccc } |