Skip to content

Instantly share code, notes, and snippets.

import os
import gensim
from collections import Counter
import json
train_path = "./aclImdb/train"
test_path = "./aclImdb/test"
#simple function which read the data from directory and return data and label
# you can make your own reader for other dataset.
@cobryan05
cobryan05 / fixNvPe.py
Last active July 8, 2024 08:02
Python Script to disable ASLR and make nv fatbins read-only to reduce memory commit
# Simple script to disable ASLR and make .nv_fatb sections read-only
# Requires: pefile ( python -m pip install pefile )
# Usage: fixNvPe.py --input path/to/*.dll
import argparse
import pefile
import glob
import os
import shutil