Skip to content

Instantly share code, notes, and snippets.

View jeremywarrick's full-sized avatar
👋

Jeremy Warrick jeremywarrick

👋
View GitHub Profile
@jeremywarrick
jeremywarrick / parser.py
Last active September 7, 2020 13:08
A simple UCR data parser
import csv
import os
import sys
import logging
import argparse
import pandas as pd
import fileinput
LOGLEVEL = os.environ.get('LOGLEVEL', 'WARNING').upper()
logging.basicConfig(level=LOGLEVEL)
@jeremywarrick
jeremywarrick / email-subject-cleanup.md
Last active March 31, 2020 09:14
VBA to remove [EXTERNAL] tag in email subjects in Windows Outlook 2016

Overview

Want to remove prefixes from email subjects automatically before you send them? Let's do that...

Why would you want to do that

Let's say you're organization decides to add prefixes to inbound emails that are sent from domains other than your own and you want to remove them because you end up with stacked "RE: [EXTERNAL] FW: [EXTERNAL]" added to subjects, breaking the conversation view in Outlook... that's why.

Prerequisites

  • Windows 10
  • Outlook 2016
  • Ability to turn on macros in Outlook (you aren't prevented from doing so by an IT policy)
@jeremywarrick
jeremywarrick / README.md
Created May 25, 2019 23:36 — forked from steve-jansen/README.md
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
@jeremywarrick
jeremywarrick / github_repository_lister.py
Created May 1, 2019 18:01
Quick python3 code to list all the repositories in a GitHub organization
import requests
import json
user = 'user name here'
token = 'token here'
url = "https://api.github.com/orgs/<organization_name>/repos"
session = requests.Session()
session.auth = (user, token)