Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am zorchenhimer on github.
  • I am zorchenhimer (https://keybase.io/zorchenhimer) on keybase.
  • I have a public key ASDAk1nnUuzAbuJFNEEfA3oJ-fb1a8JApMxJiYeBystavAo

To claim this, I am signing this object:

View remove-win10-spyware.bat
@echo off
AT > NUL
if %ERRORLEVEL% EQU 1 (
echo Error: Not running as administrator.
echo Please right click the batch file and select 'Run as Administrator'
exit /b 1
)
echo Uninstalling bad updates...
View cobol-packed-numbers.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Pack and unpack COBOL's COMP-3 numbers.
Cobol stores most numbers as strings. There are times that they are stored in a
packed format ("Computational numbers"). Comp numbers are not stored like
traditional numbers (16-bit, 32-bit, 64-bit, etc), but in a bit length that is
four times the number of digits in the stored value plus four bits. For a
View add-crc.pl
#!/usr/bin/perl
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
use Digest::CRC;
# Disable output buffer
$|++;
View sort.py
#!/usr/bin/python
"""
Bogo Sort is best sort.
"""
import random
import time
import copy
def check_sort(lst):