This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>test of color pallet printing</title> | |
</head> | |
<body> | |
<!-- styles --> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 * ;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sarverott @ 2023 | |
// to downolad old swf source files | |
x=document.querySelector("ruffle-object").attributes["data"].nodeValue; | |
open(x, '__blank'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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") |
NewerOlder