qemu-img create -f qcow2 Image.img 10G
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 asyncio | |
import websockets | |
import json | |
async def main(): | |
uri = "ws://localhost:6123" | |
async with websockets.connect(uri) as websocket: | |
await websocket.send("sub -e window_managed") | |
await websocket.send("sub -e focus_changed") |
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
package main | |
import ( | |
"crypto/hmac" | |
"crypto/rand" | |
"crypto/sha1" | |
"encoding/base32" | |
"fmt" | |
"log" | |
"math" |
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 boxy, opengl, windy | |
let windowSize = ivec2(1280, 720) | |
let window = newWindow("test", windowSize) | |
makeContextCurrent(window) | |
loadExtensions() | |
let bxy = newBoxy() |
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 requests | |
#CHANGE THIS TO LEVY ROZMAN'S CURRENT RATING | |
gotham_rating = 2322 | |
headers = { | |
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0', | |
'Accept': '*/*', | |
'Accept-Language': 'en-US,en;q=0.5', | |
# 'Accept-Encoding': 'gzip, deflate, br', |
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 pwn import * | |
import requests | |
import pickle | |
from bs4 import BeautifulSoup | |
url = "https://icanhazdadjoke.com/" | |
suburl = "search?term=&page=" | |
jokes = [] |
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
#edited: knew after writing this that pdfimages from poppler.utils does the same job but easier... | |
from pdf2image import convert_from_path | |
#doing this in batches so it doesn't killed itself (+ forlooping broke somehow soooo yea) | |
dpi = 300 | |
path = "./PurQRatory.pdf" | |
pages = convert_from_path(path, dpi=500, output_folder="",last_page=26) |
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 kotlin.random.Random | |
fun main() { | |
var value = 0 | |
print("width: ") | |
val w = readNum() | |
print("height: ") | |
val h = readNum() |