Skip to content

Instantly share code, notes, and snippets.

View cstayyab's full-sized avatar
🎯
Focusing

Muhammad Tayyab Sheikh cstayyab

🎯
Focusing
View GitHub Profile
@cstayyab
cstayyab / setup-mysql-5.7.sh
Last active October 20, 2018 07:22 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "America/Chicago" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@cstayyab
cstayyab / ftpserver.py
Created January 25, 2018 06:35 — forked from scturtle/ftpserver.py
simple ftp server by python
#!/usr/bin/env python2
# coding: utf-8
import os,socket,threading,time
#import traceback
allow_delete = False
local_ip = socket.gethostbyname(socket.gethostname())
local_port = 8888
currdir=os.path.abspath('.')