Skip to content

Instantly share code, notes, and snippets.

View vic4key's full-sized avatar
✔️
Hi, I'm Vic P.

Vic P. vic4key

✔️
Hi, I'm Vic P.
View GitHub Profile
@RobertAKARobin
RobertAKARobin / python.md
Last active March 8, 2026 07:19
Python Is Not A Great Programming Language
@Neo23x0
Neo23x0 / log4j_rce_detection.md
Last active October 4, 2025 08:06
Log4j RCE CVE-2021-44228 Exploitation Detection

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@dtbao20
dtbao20 / turtle_christmas.py
Last active January 6, 2024 09:45
🎄merry christmas!🎅
# convert from https://www.dwitter.net/d/26619
from turtle import *
bgcolor(0,0,0), setup(500,500)
hideturtle(), tracer(False), penup()
def rect(x=0, y=0, w=100):
goto(x,y)
begin_fill()
[ forward(w) or left(90) for _ in range(4) ]
end_fill()
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp