Skip to content

Instantly share code, notes, and snippets.

Avatar

Stephen Checkoway stevecheckoway

View GitHub Profile
@stevecheckoway
stevecheckoway / verify.py
Created Oct 30, 2020
DKIM signature verification
View verify.py
#!/usr/bin/env python3
from dkim import DKIM
import sys
def get_txt(*args, **kwargs):
return b'k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1Kd87/UeJjenpabgbFwh+eBCsSTrqmwIYYvywlbhbqoo2DymndFkbjOVIPIldNs/m40KF+yzMn1skyoxcTUGCQs8g3FgD2Ap3ZB5DekAo5wMmk4wimDO+U8QzI3SD0" "7y2+07wlNWwIt8svnxgdxGkVbbhzY8i+RQ9DpSVpPbF7ykQxtKXkv/ahW3KjViiAH+ghvvIhkx4xYSIc9oSwVmAl5OctMEeWUwg8Istjqz8BZeTWbf41fbNhte7Y+YqZOwq1Sd0DbvYAD9NOZK9vlfuac0598HY+vtSBczUiKERHv1yRbcaQtZFh5wtiRrN04BLUTD21MycBX5jYchHjPY/wIDAQAB'
failed = False
@stevecheckoway
stevecheckoway / quiz-checklist.md
Last active Sep 12, 2019
Checklist for making a quiz on Blackboard
View quiz-checklist.md
  • reading quizzes > Assessments > Test
  • Create a New Test with questions
  • Set all point values to 1
  • Make test available to students
  • Allow unlimited attempts
  • Display after the previous class
  • Set the due date to the beginning of class
  • Do not allow students to start the Test if the due date has passed
  • After submission show all answers and submitted
  • After due date, show everything
@stevecheckoway
stevecheckoway / notes.md
Created May 29, 2019
Installing Ghidra Server on Ubuntu 18.04.2 LTS
View notes.md

Installation on Ubuntu 18.04.2 LTS

  1. Install the jdk.

    $ sudo apt update
    $ sudo apt install default-jdk
    
  2. Create a new user.

@stevecheckoway
stevecheckoway / fa.sty
Created Mar 10, 2018
Finite automata and (deterministic) Turing machine running/drawing.
View fa.sty
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{fa}
[2018/03/09 v0.3 Construct finite automata and Turing machines]
\RequirePackage{tikz}
\RequirePackage{etoolbox}
\usetikzlibrary{arrows.meta,automata,calc,chains,positioning}
% Define \emptystring to \varepsilon
@stevecheckoway
stevecheckoway / skramdown.rb
Last active Oct 24, 2018
Simple Jekyll plugin to 1. parse `$…$` or `\(…\)` as inline math; 2. parse `$$…$$` as display math both inside and outside paragraphs.
View skramdown.rb
# This is a (more) sane math parsing scheme.
require 'kramdown/parser/kramdown'
require 'kramdown/parser/kramdown/block_boundary'
module Kramdown
module Parser
class Skramdown < Kramdown::Parser::GFM
def initialize(source, options)
super
idx = @span_parsers.index(:inline_math)
@stevecheckoway
stevecheckoway / smalloc.c
Created Jan 9, 2016
Malloc implementation designed to be vulnerable to buffer overflows on the heap.
View smalloc.c
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
/* glibc's malloc hooks. Silence warnings about deprecated hooks (see
* bottom of this file). */
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: