Skip to content

Instantly share code, notes, and snippets.

View Tes3awy's full-sized avatar
👨‍💻
Focusing

Osama Abbas Tes3awy

👨‍💻
Focusing
View GitHub Profile
@ayebrian
ayebrian / vmware.md
Last active November 20, 2024 06:37
VMware ESXi 8 / vCenter 8 / Workstation 17 license key 2024
@NSWG
NSWG / VMware Workstation 16 Pro and Player keys
Last active November 18, 2024 13:39
VMware Workstation 16 Pro and Player keys
VMware Workstation Pro 16.x Serials
YA7RA-F6Y46-H889Z-LZMXZ-WF8UA
ZV7HR-4YX17-M80EP-JDMQG-PF0RF
UC3XK-8DD1J-089NP-MYPXT-QGU80
GV100-84W16-M85JP-WXZ7E-ZP2R6
YF5X2-8MW91-4888Y-DNWGC-W68TF
AY1XK-0NG5P-0855Y-K6ZXG-YK0T4
VMware Workstation Player 16.x Serials
@raymondpittman
raymondpittman / download_zip.js
Last active July 28, 2024 10:29
Native Javascript, automatically download a BLOB zip file using FETCH without the use of manual triggering clicking a DOM element. Will create a DOM element automatically and set the attribute HREF to a zip file or contents, then download file automatically on HTML file page load. Or also, will work through Node.js or another Fetch compatible Ja…
/*
* @Author Raymond Pittman
* @Github: https://github.com/raymondpittman
* @Note: Added README.md https://gist.github.com/raymondpittman/11cc82788422d1bddfaa62e60e5ec9aa
*/
/*
* @params
* @download: http://.zip
* @filename: ./downloaded.zip
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active November 18, 2024 05:01
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@ipwnponies
ipwnponies / asyncio.md
Last active March 6, 2024 21:35
concurrent.futures (threading) vs. asyncio (event loop)

Summary

This gist demonstrates the difference between threading and asyncio. To be clear, they're both limited by the Global Interpreter Lock and are both single process, multi-threaded. They are both forms of concurrency but not parallelism.

Threading, via concurrent.futures

Threading (via Thread, concurrent.futures) employs time-slicing of CPU. All threads are given a slot of CPU time to do work. If the thread is blocking (sleeping or blocked on sockets), then off it goes to the next thread. With many threads that are blocked for long periods, this begins to degrade into polling (polling vs. interrupt)

@mgeeky
mgeeky / VLANHopperDTP.py
Last active October 12, 2024 05:18
VLAN Hopping via DTP Trunk (Switch) Spoofing exploit - script automating full VLAN Hopping attack, from DTP detection to VLAN Hop with DHCP lease request.
#!/usr/bin/python
#
# This script is performing DTP Trunk mode detection and VLAN Hopping
# attack automatically, running sniffer afterwards to collect any other
# VLAN available. To be launched only in Unix/Linux environment as the
# script utilizes following applications:
# - 8021q.ko
# - vconfig
# - ifconfig / ip / route
@TannerRayMartin
TannerRayMartin / serial_test1.py
Created December 28, 2017 11:47
Connecting to a Cisco switch via console cable through a serial port with a laptop using python (pySerial)
__author__ = 'Tanner Ray Martin'
#this is for python 3, for python 2: change input to raw_input
import serial
#serial is the main module used and needs to be installed
import time
'''
from requests import Session
session = Session()
# HEAD requests ask for *just* the headers, which is all you need to grab the
# session cookie
session.head('http://sportsbeta.ladbrokes.com/football')
response = session.post(
url='http://sportsbeta.ladbrokes.com/view/EventDetailPageComponentController',
@Tes3awy
Tes3awy / gist:6dd5b45c1c6bbd8c673eb8421f4032c6
Last active September 24, 2017 15:09 — forked from bergantine/gist:5243223
CSS grayscale filter (go from grayscale to full color on hover) #css #sethneilson
/* At first the image is grayscaled by the filter and then on hover the filter is set to 0% */
img {
-moz-filter: grayscale(100%);
-o-filter: grayscale(100%);
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
-moz-transition: .5s ease-in-out;
-o-transition: .5s ease-in-out;
-webkit-transition: .5s ease-in-out;