Skip to content

Instantly share code, notes, and snippets.

@Hamid-K
Hamid-K / eml-extractor.py
Last active February 11, 2024 05:09
Extract email attachments from .eml files in given directory.
#!/usr/bin/env python
# This script will go through a given directory recursively, extracting all attachments from .eml files.
# .eml files are often how full mailbox dumps are leaked online.
# If an attachment with the same filename already exists, MD5 sum of the files are calculated and if not
# a match, the new file will be saved with _# suffix.
#
# Hamid Kashfi (@hkashfi)
import os
@Hamid-K
Hamid-K / telescope.lua
Created December 19, 2023 03:53
Fix for Neovim Telescope plugin to enable preview of binary contents.
local previewers = require('telescope.previewers')
local Job = require('plenary.job')
local new_maker = function(filepath, bufnr, opts)
filepath = vim.fn.expand(filepath)
Job:new({
command = 'cat',
args = { filepath },
on_exit = function(j)
local result = j:result()
@Hamid-K
Hamid-K / Windows10Reloaded.ps1
Created October 12, 2020 14:33 — forked from subinacls/Windows10Reloaded.ps1
Windows 10 Reloaded Security/Hardening powershell script enables basic IPSec, Chrome policy, Adobe Reader and Acrobat Security features and disables various telemetry. This also removes all default installed apps, and installs apps of your choice.
##########
# Win10 Initial Setup Script
# Author: Disassembler, Gr1d:, TheRoc
# Edited by Gr1D:
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# TheROC's E.T. Disable script: https://gist.github.com/thoroc/86d354d029dda303598a
# THIS IS VERSION 5.5, error suppression is turned on. PLEASE be patient and PLEASE restart after running the script.
# This script leaves more MS defaults on, including MSE and smart-screen,
# but blocks a ton of domains and disables remote assistance secures java, sets up ipsec..