Skip to content

Instantly share code, notes, and snippets.

View cstayyab's full-sized avatar

Muhammad Tayyab Sheikh cstayyab

View GitHub Profile
@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('.')
@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 / spy_ssh_sessions.lua
Created December 5, 2018 08:31
A Sysdig Chisel written in lua to capture all the activites done in SSH sessions separately on a linux machine.
-- Chisel description
description = "Track SSH Session activity";
short_description = "Track SSH SESSIONS activity";
category = "Security";
-- Chisel argument list
args =
{
{
name = "max_depth",
@cstayyab
cstayyab / snort3_ubuntu18.04_deployment.sh
Created February 13, 2020 05:13
Deploy Snort 3 on Ubuntu 18.04
# This script deploys snort 3 on ubuntu according the official guide given on
# https://snort-org-site.s3.amazonaws.com/production/document_files/files/000/000/211/original/Snort3.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXACIED2SPMSC7GA%2F20200213%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200213T042310Z&X-Amz-Expires=172800&X-Amz-SignedHeaders=host&X-Amz-Signature=e871bb91fa3aa573ad8e425f0bcd641f8bd0f729562f42667d5b454fe9ad17a0
cat << EOF
Making sure that your system is up-to-date
==========================================
EOF
sudo apt-get update && sudo apt-get dist-upgrade -y
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Muhammad Tayyab Sheikh",
"label": "",
"image": "https://apna.link/CSTayyabAvatar",
"email": "[email protected]",
"phone": "+92-334-051-2689",
"url": "https://cstayyab.com",
"summary": "Full Stack Developer with 4+ years of experience in web and mobile apps. Led the development of a hybrid mobile app with 10K+ downloads and reduced the codebase by 6%. Skilled in React, React Native, Node.js, and cloud technologies. Delivered high-impact features like in-app payments and real-time chat, boosting user engagement by 30%. Passionate about clean code and performance optimization.",
@cstayyab
cstayyab / libravatar-demo.ipynb
Last active April 11, 2020 09:35
83e5ccaa4c5ee9c2b5454182ea67804e#file-libravatar-demo-ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cstayyab
cstayyab / get_app_data_from_APKPure.py
Last active September 1, 2020 12:22
Fetch App Information from APKPure using BeautifulSoup in Python
# Tested for APKPure Version 1.3.7 (this is website version that prints in Web Browser Console everytime a page from APK Pure Loads)
# Working as of September 1, 2020
import requests
import cssutils
from bs4 import BeautifulSoup
def getAppDataFromAPKPure(apkpure_url): # Example: https://apkpure.com/subway-surfers-1/com.kiloo.subwaysurf
headers = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET',
'Access-Control-Allow-Headers': 'Content-Type',
@cstayyab
cstayyab / AlphaNumGeneratorBookmarklet.md
Last active February 16, 2023 00:49
A Bookmarklet to quickly generate a random string of desired length

Create a bookmark with following link in you browser's bookmarks bar to have one click password (or alpha-numeric string) generator:

javascript:(() => { 
  prompt('Please copy the following generated String', (
    function generateRandomString(length) {  
      const chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';  
      let result = '';  
      for (let i = 0; i < length; i++) {    
 const randomIndex = Math.floor(Math.random() * chars.length);