Initial commit

This commit is contained in:
Stepan 2026-04-13 19:18:03 +03:00
commit f614660cd1
7 changed files with 47 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

1
README.md Normal file
View File

@ -0,0 +1 @@
Надо по приколу и сбору всяких моих каловых проектов

26
code/proxy/app.py Normal file
View File

@ -0,0 +1,26 @@
import requests
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
urlpr='http://vps-sni-site.site:507/api/random'
url='https://httpbin.org/ip'
r = requests.get(urlpr, verify=False)
data = r.json()
text = data["proxy"]
proxies = {
'http': text,
'https': text
}
j = requests.get(url, proxies=proxies, verify=False)
data2 = j.json()
text2 = data2["origin"]
f = requests.get(url, verify=False)
data3 = f.json()
text3 = data3['origin']
print(f'Прокси: {text2}\nБез прокси: {text3}')

4
code/proxy/main.sh Normal file
View File

@ -0,0 +1,4 @@
sudo apt update && sudo apt install python3-pip
pip install requests --break-system-packages
pip install urllib3 --break-system-packages
pip install 'requests[socks]' --break-system-packages

9
code/sergay/app.py Normal file
View File

@ -0,0 +1,9 @@
import requests
url = "http://vps-sni-site.site:5000/api/random"
r = requests.get(url, verify=False)
data = r.json()
text = data[str(data["id"])]
print(f"серГЕЙ {text}\nбэээээ")

2
code/sergay/main.sh Normal file
View File

@ -0,0 +1,2 @@
sudo apt update && sudo apt install python3-pip
pip install requests --break-system-packages

4
sh.sh Normal file
View File

@ -0,0 +1,4 @@
git pull origin main
git add .
git commit -m "update"
git push