This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import fitz # Import PyMuPDF | |
| def overlay_notes(original_pdf_path, notes_pdf_path, output_pdf_path): | |
| # Open the original and notes documents | |
| original_pdf = fitz.open(original_pdf_path) | |
| notes_pdf = fitz.open(notes_pdf_path) | |
| # Iterate through the pages and overlay notes onto the original | |
| for page_number in range(len(original_pdf)): | |
| original_page = original_pdf[page_number] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from scapy.all import * | |
| from scapy.utils import PcapWriter | |
| packets = rdpcap('cap.pcap') | |
| new_cap = PcapWriter("cap_new.pcap") | |
| # old: new | |
| mapping = { | |
| '203.76.192.10': '1.1.1.1' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LOAD DATA INFILE '<INSERT_FILE_PATH_HERE>' INTO TABLE accesslog | |
| FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '' | |
| LINES TERMINATED BY '\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime | |
| import piexif | |
| import os | |
| import time | |
| folder = './' | |
| def get_datetime(filename): | |
| date_str = filename.split('-')[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <style type="text/css"> | |
| body { | |
| zoom: 250%; | |
| } | |
| #alert { | |
| width: 500px; | |
| height: 150px; | |
| border: 1px solid #bababa; | |
| background-color: #fbfbfb; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl --user "<USERNAME>:<PASSWORD>" "https://api.github.com/user/repos" | grep -w clone_url | grep -o '[^"]\+://.\+.git' | xargs -L1 git clone |