Skip to content

Instantly share code, notes, and snippets.

View Preocts's full-sized avatar
💜
New code, who dis?

Preocts Preocts

💜
New code, who dis?
View GitHub Profile
@SocksTheWolf
SocksTheWolf / exploit.md
Last active October 26, 2026 02:41
Safe tests of OBS exploit. Paste these into your Twitch Chat while looking at your overlay

Important: Send each test as its own message.

If you want to verify you are doing things right, I have a clip of me doing this on stream (I don't run both tests in the clip because I yap too much and ran out of time). You can see the clip here.

 

1️⃣ First Test: general HTML injection of <script> tags

<script>document.body.style = "background-color: purple;" setTimeout(() => {window.location.reload()}, 1000);</script>

 

@Jip-Hop
Jip-Hop / README.md
Last active July 6, 2025 02:44
Simple comment preserving ConfigParser class to read/update/write INI files WITHOUT indented sections/keys/comments.

See the example usage inside configparser.py. Output when running the configparser.py file:

# Comments may appear before the first section

[Simple Values]
key = value
spaces in keys = allowed
spaces in values = allowed as well
spaces around the delimiter = obviously
@TusharBaruah
TusharBaruah / TB-timer.ahk
Last active August 4, 2026 00:30
Simple AutoHotKey v2 script to track screen-time usage
#Requires AutoHotkey v2.0
; -------- TB Timer --------
; Inspired V2 port of the AHK V1 script Ticker by RustingSword (https://gist.github.com/RustingSword/4368301)
; Tracks your usage time for different categories on a daily basis
; and saves it to the file 'timelog.txt' in the User's Documents folder by default
; Pressing right-ctrl key after running script for atleast 20 secs gives detailed GUI display
InstallKeybdHook
InstallMouseHook
@loopyd
loopyd / deienv.py
Last active January 10, 2024 03:22
[py] Pydantic environment (.env) file parser
from pydantic import BaseModel, Field
from typing import Any, Callable, Type, TypeVar, Union
import os, sys
class EnvFileModel(BaseModel):
class Config:
validate_assignment = True
extra = "forbid"
arbitrary_types_allowed = True
@salty-tree
salty-tree / pip-python-mismatch.md
Last active February 14, 2025 19:19
How to fix pip not installing packages even though it says 'requirement already satisfied'

Problem

Let's say you wanted to install a package (numpy for example) and you run the following command to install it:

$ pip install numpy

So pip does its thing, and exits with an output like so:

// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw
@CoolGuyBraydan
CoolGuyBraydan / Zombie Survival.py
Last active April 9, 2024 20:30
Zombie Survival Python (Hope you enjoy)
import turtle
import time
import random
import math
print('"Zombie Survival (3.2)" made by Braydan Smith')
print()
print("Would you like a tutorial? Enter 'yes' or 'no' (and DO NOTHING ELSE!).")
awnser=input(":")
awnser=awnser.lower()
#!/bin/bash
#
# Create a throwaway Python project
# Usage:
#
# 1. Put the script as `pysandbox` somewhere on your PATH
# 2.
# if (you want a predefined project name):
# source pysandbox play-around-with-aioredis
# elif (you want a random one):
@ursulacj
ursulacj / Create-branch-with-Github-API.md
Last active March 9, 2026 04:47 — forked from auwsome/Create-branch-with-Github-API.md
Create a branch on Github using API and Python

Create a branch on Github using API and Python

Created as a module that can be imported or run. Requires built in JSON, requests, and datetime modules.

Allows you to clone a branch on Github using the Github Git Database API Endpoints.

Forked Gist from:

  • auwsome/Create-branch-with-Github-API.md

See:

// code updates are now there:
// https://github.com/Bleuje/processing-animations-code/blob/main/code/radialcollapse/radialcollapse.pde
// Processing code by Etienne JACOB
// motion blur template by beesandbombs
// opensimplexnoise code in another tab is be necessary
// --> code here : https://gist.github.com/Bleuje/fce86ef35b66c4a2b6a469b27163591e
// See the license information at the end of this file.
// View the rendered result at: https://bleuje.com/gifanimationsite/single/radialcollapse/