Skip to content

Instantly share code, notes, and snippets.

View ocelotsloth's full-sized avatar
🐕

Mark Stenglein ocelotsloth

🐕
View GitHub Profile
@ocelotsloth
ocelotsloth / README.md
Last active December 7, 2021 14:41
@ocleotsloth's Advent of Code 2021
@ocelotsloth
ocelotsloth / mailgun-bounces.py
Created February 6, 2020 15:53
Get Mailgun Bounce List
import requests
import csv
import datetime
#################################################################
# Configure mailgun domain and api key here
#################################################################
domain = "MAILGUN_DOMAIN_HERE"
apikey = "API_KEY_HERE"
#################################################################
@ocelotsloth
ocelotsloth / Password References.md
Created July 22, 2019 19:02 — forked from technion/Password References.md
A set of references on modern password policies

References on modern password policies

Below links provide source, reference link and relevant quote

Standards

NIST

https://github.com/usnistgov/800-63-3/blob/nist-pages/sp800-63b/sec5_authenticators.md

Verifiers SHOULD NOT impose other composition rules (e.g., requiring mixtures of different character types or prohibiting consecutively repeated characters) for memorized secrets. Verifiers SHOULD NOT require memorized secrets to be changed arbitrarily (e.g., periodically).However, verifiers SHALL force a change if there is evidence of compromise of the authenticator.

Major organisations

@ocelotsloth
ocelotsloth / DeployWiz_Initialization.vbs
Last active May 30, 2023 22:35
MDT Dropdown OU Selector Modifications
' // ***************************************************************************
' //
' // Copyright (c) Microsoft Corporation. All rights reserved.
' //
' // Microsoft Deployment Toolkit Solution Accelerator
' //
' // File: DeployWiz_Initialization.vbs
' //
' // Version: 6.3.8450.1000-ocelotsloth-1.0
' //
@ocelotsloth
ocelotsloth / README.md
Created December 10, 2018 13:25
Reset Windows MBR

Reset Windows MBR Instructions

Boot into recovery environment. Get shell. Enter the following:

BCDedit /export C:\BCD_Backup
C:
CD boot
Attrib BCD -s -h -r
Ren C:\boot\bcd bcd.old
@ocelotsloth
ocelotsloth / README.md
Last active November 20, 2016 20:40
CS222 Project 2

CS 222 Project 2 - Makefile and Recursion

This project is to practice multiple components compilation, recursion, and structure. It is an extension to HW7.

The Mandelbrot Set

The Mandelbrot set is a set of all complex numbers that satisfy the following condition:

@ocelotsloth
ocelotsloth / README.md
Created November 15, 2016 21:57
CS222 HW8 Assignment Sheet

Homework Assignment 8 - Debugging Code with GDB

Debugging computer source code can be a rewarding and frustrating experience. Since source code is becoming much more complex, many tools and techniques to assist in debugging have been developed. It is helpful to be aware of these tools and techniques so that you can use them while working on your projects and labs. With them, you can become successful in submitting correct, well-written source code. One of the tools, which integrates visualization, is an interactive website at: http://www.pythontutor.com/c.html#mode=edit.

@ocelotsloth
ocelotsloth / isa564F16-lfs-migrate.sh
Created November 4, 2016 18:32
Migrate git repo to lfs
#!/bin/bash
# Clone original repository
git clone git@git.gmu.edu:astavrou/isa564F16.git
# Convert repository with moving .zip, .pdf, .ppt, .pptx, .doc, .docx, .mov, .mp4 files to LFS
#
# Usage: <main class> [options] LFS file glob patterns
# Options:
# -c, --cache
# Source repository

Keybase proof

I hereby claim:

  • I am ocelotsloth on github.
  • I am ocelotsloth (https://keybase.io/ocelotsloth) on keybase.
  • I have a public key ASAdhtpNM8Oj6owBzlR2a_GzydQD7KFhnwG7J8P5uMWdjAo

To claim this, I am signing this object:

@ocelotsloth
ocelotsloth / pitch.py
Created October 4, 2016 01:17
Sample pitch class in python
# Class to define a pitch
# returns string represetnation
class Pitch:
pitches = ["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"]
def __init__(self, intUserPitch):
self.pitch = intUserPitch
def __repr__(self):