ssh -R 22222:localhost:22 server_user@server -p PORT
socat TCP-LISTEN:22223,fork,bind=0.0.0.0 TCP:localhost:22222
ssh local_user@server -p 22223
#include <Windows.h> | |
#include <wlanapi.h> | |
#include <iostream> | |
#pragma comment(lib, "wlanapi.lib") | |
typedef DWORD(WINAPI* P_WlanOpenHandle)(DWORD, PVOID, PDWORD, PHANDLE); | |
typedef DWORD(WINAPI* P_WlanCloseHandle)(HANDLE, PVOID); | |
typedef DWORD(WINAPI* P_WlanHostedNetworkStartUsing)(HANDLE, PWLAN_HOSTED_NETWORK_REASON, PVOID); | |
typedef DWORD(WINAPI* P_WlanHostedNetworkStopUsing)(HANDLE, PWLAN_HOSTED_NETWORK_REASON, PVOID); |
import cv2 | |
from PIL import Image | |
import numpy as np | |
def cv2_estimate_dx_dy(prev_filename, curr_filename): | |
""" | |
Calculates dx and dy using OpenCV script for two consecutive frames | |
""" | |
# Load the previous and current frames | |
prev_frame = cv2.imread(prev_filename, cv2.IMREAD_GRAYSCALE) |
ssh -R 22222:localhost:22 server_user@server -p PORT
socat TCP-LISTEN:22223,fork,bind=0.0.0.0 TCP:localhost:22222
ssh local_user@server -p 22223
from time import time | |
import av | |
import cv2 | |
import numpy as np | |
from PIL import Image | |
from SSIM_PIL import compare_ssim | |
# Load reference image and get its dimensions | |
ref_img = cv2.imread("preroll_end2_cropped.png") | |
ref_height, ref_width, _ = ref_img.shape |
import os | |
import shutil | |
import subprocess | |
import tempfile | |
from pwnlib.log import getLogger | |
log = getLogger(__name__) | |
def _run(cmd, stdin = None): |
def gen_a(length_full=48): | |
i=0 | |
a = [] | |
a.append(" "*((length_full-i*4)//2)+" "*3 + ":AYAYA:") | |
for i in range(1, length_full//4//2): | |
a.append(" "*((length_full-i*4)//2) + ":AYAYA:" + " "*(i*4) + ":AYAYA:") | |
i+=1 | |
a.append(" "*((length_full-i*4)//2) + ":AYAYA:"*(length_full//8)) | |
i+=1 | |
#print(i, i+6+1) |
apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances \
gcc-11 g++-11 | grep "^\w" | sort -u | xargs
(credits: How to list/download the recursive dependencies of a debian package?)
apt download binutils binutils-common binutils-x86-64-linux-gnu cdebconf cpp-11 debconf dpkg g++-11 gcc-11 \
gcc-11-base gcc-12-base libacl1 libasan6 libatomic1 libbinutils libbz2-1.0 libc-dev-bin libc6 libc6-dev libcc1-0 \
wget https://dl.google.com/android/repository/android-ndk-r23c-linux.zip
unzip android-ndk-r23c-linux.zip
export NDK=$(realpath android-ndk-r23c)
$NDK/build/tools/make_standalone_toolchain.py --arch arm --api 21 --install-dir $(realpath toolchain)
export PATH=$PATH:$(realpath toolchain/bin)
import time | |
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
driver = webdriver.Chrome() | |
driver.get("https://discord.com/login") | |
# login and manually navigate to https://discord.com/channels/x/y") |