Skip to content

Instantly share code, notes, and snippets.

View Sarverott's full-sized avatar
💭
I may be slow to respond.

Sett Sarverott Sarverott

💭
I may be slow to respond.
View GitHub Profile
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>test of color pallet printing</title>
</head>
<body>
<!-- styles -->
<style>
@Sarverott
Sarverott / _verymessy-payload-o-execution-o-script-o-inator.py
Created December 13, 2023 23:57
good mood charm. this script is just as training for fun. it works, but it's not pretty, and it can suddenly autodestruct itself!
import subprocess
from os import path, system, remove
import sys
gitBashScript="""#!/usr/bin/env bash
case $1 in
"log") git -C "$2" log | cat ;;
"status") git -C "$2" status -s ;;
"add") git -C "$2" add * ;;
# sample for playing with android debugging stuff
from ppadb.client import Client as AdbClient
#client = AdbClient(host="127.0.0.1", port=5037)
client = AdbClient() # default is thesame as above
devList = client.devices()
#print(dev[0].__dict__) # see what we got here
@Sarverott
Sarverott / _move-all-files-with-conditional-filename-changes.py
Last active December 11, 2023 13:01
Casual common thing, spontanously uploaded for educational reasons, for new programmers to learn. NOTE: Variable names, function names and comments should be in english for more official impression and professional code cleanliness! My use of polish is politeness.
#!/usr/bin/python3
# ten poczatek "#!/usr/bin/python3" jest dla linuxa, mowi mu jakiego interpretera uzyc,
# wtedy w terminalu mozna zamiast "python3 skrypt.py" uruchomic go piszac "./skrypt.py"
# zwyczajny kod zycia codziennego, spontanicznie upubliczniony w celach edukacyjnych,
# aby nowi programiści mogli sie zainspirowac. UWAGA: Nazwy zmiennych, nazwy funkcji
# i komentarze powinny byc w języku angielskim, jesli chcemy zapewnic bardziej oficjalne
# wrazenie i dla profesjonalnej czystosci kodu
# this snippet makes http request to website with random sentence generator
# special thanks for hard work to the creators of "https://randomword.com" - these sentences are great!
from bs4 import BeautifulSoup
import requests
exitflag = False
while not exitflag:
website = requests.get( "https://randomword.com/sentence" )
infosoup = BeautifulSoup( randomMessageWebpage.content, 'html.parser' )
// Sarverott @ 2023
// to downolad old swf source files
x=document.querySelector("ruffle-object").attributes["data"].nodeValue;
open(x, '__blank');
#!/bin/sh
# written to transfer big audiobook library
find . -type d -maxdepth 1 -not -name "." -exec sh -c "zip -r \$(echo {} | tr ' ' '_').zip \"{}\" " \;
# it seams handy in future
#!/bin/sh
echo "RDP server prepare"
echo "exclusive access subnet IP address (or single IP, 127.0.0.1):"
read accessIp
echo "subnet mask length (32 if exclusive for only one host):"
read accessMask
echo "port (default is 3389):"
read accessPort
#!/bin/sh
sudo apt purge npm --auto-remove
sudo apt purge nodejs --auto-remove
sudo rm -f $( whereis node | sed -n -e 's/^.*node: //p' )
sudo apt install npm nodejs
sudo npm install -g n
//espesialy helpfull to extract large amounts of google dorked objects to research
console.log(
Array.from(
document.querySelectorAll(".yuRUbf a")
).filter(
(x)=>!x.href.includes("google")
).map(
(x)=>x.href
).join("\n")