Skip to content

Instantly share code, notes, and snippets.

View jbrzozoski's full-sized avatar

jbrzozoski

View GitHub Profile
@jbrzozoski
jbrzozoski / letter_blocks.c
Created July 5, 2019 04:00
Writing messages with kids letter blocks for fun...
#include <stdio.h>
#include <stdint.h>
#include <string.h>
/*
This was some idle programming for fun while on vacation. I was staying
at a vacation house that had a set of kids letter blocks, the sort that
are six-sided wooden blocks with a different letter on each side. I was
trying to figure out the most entertaining messages I could write with the

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@jbrzozoski
jbrzozoski / gsmtime.c
Last active December 6, 2020 05:28
GSM Time to Unix
#include <stdint.h>
#include <stdio.h>
#include <time.h>
#ifndef TM_YEAR_BASE
#define TM_YEAR_BASE 1900
#endif
#ifndef GSM_YEAR_BASE
#define GSM_YEAR_BASE 2000
@jbrzozoski
jbrzozoski / pwtest.sh
Created March 3, 2019 02:43
Simple bash script to safely check passwords against the pwnedpasswords.com API
#!/bin/bash
# Get a password from the user...
while read -s -p "Enter password to check or Ctrl-C to quit: " pass2check
do
# Output a blank line to clean up output...
echo
# Get the SHA1 of the entered password...
sha1sum_output=`echo -n ${pass2check} | sha1sum`