Skip to content

Instantly share code, notes, and snippets.

View arunstar's full-sized avatar
🎯
Focusing

Arun arunstar

🎯
Focusing
View GitHub Profile
@arunstar
arunstar / server.py
Created September 8, 2023 08:36 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
License: MIT License
Copyright (c) 2023 Miel Donkers
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
@arunstar
arunstar / example_paramiko_with_tty.py
Created June 2, 2017 05:40 — forked from rtomaszewski/example_paramiko_with_tty.py
example paramiko script with interactive terminal
import paramiko
import time
import re
bastion_ip='ip'
bastion_pass='pass'
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy( paramiko.AutoAddPolicy() )
ssh.connect(bastion_ip, username='root', password=bastion_pass)