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 / 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); 
@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 / libravatar-demo.ipynb
Last active April 11, 2020 09:35
83e5ccaa4c5ee9c2b5454182ea67804e#file-libravatar-demo-ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Muhammad Tayyab Sheikh",
"label": "Full Stack Web Developer (Node.js) | Python Programmer | Open Source Contributor",
"image": "",
"email": "cstayyab@gmail.com",
"phone": "+92-334-0512689",
"url": "https://github.com/cstayyab",
"summary": "Experienced Coder with a demonstrated history of working in the computer software industry. Strong engineering professional with a Bachelor's degree focused in Computer Science from COMSATS Institute of Information Technology. Skilled in Full Stack Development (using MERN, Python(Flask) & PHP). Also an active Open-Source Developer and contributor.",
@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
@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 / 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('.')