Skip to content

Instantly share code, notes, and snippets.

View mah3uz's full-sized avatar
🏠
Working from home

Mahfuz Shaikh mah3uz

🏠
Working from home
View GitHub Profile
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://localhost:8069/
@mah3uz
mah3uz / check_open_port.py
Last active March 12, 2016 19:29
Check Open Port
#!/usr/bin/python
import socket
ip = raw_input("Enter the IP: ")
port = input("Enter the Port: ")
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
if s.connect_ex((ip, port)):
print "Port", port, "is closed"
else: