Skip to content

Instantly share code, notes, and snippets.

Mark Shroyer mshroyer

Block or report user

Report or block mshroyer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am mshroyer on github.
  • I am mshroyer (https://keybase.io/mshroyer) on keybase.
  • I have a public key ASA2h00MxaCBoqlksCoSazZI054vW-doxongnIjItzytfAo

To claim this, I am signing this object:

View trackball.sh
#!/bin/sh
# From Arch Linux wiki
#xmodmap -e "pointer = 1 8 3 4 5 6 7 2 9 10 11 12 13"
# Based on https://help.ubuntu.com/community/Logitech_Marblemouse_USB, but
# with modifications to the button map and inverted axes for scrolling.
xinput set-button-map "Logitech USB Trackball" 1 8 3 4 5 6 7 2 9
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
View Emblem.asm
#include "ti86asm.inc"
; ===========================
; Emblem 86 version 1.1 gamma
; ===========================
; Mark's new label
; This is an 86 assembly program that allows users to draw a custom emblem for
; their calculators (on-calc) and install it in a user-interrupt routine so that
; it will be constantly present in the upper-right corners of their screens.
@mshroyer
mshroyer / keybase.md
Created May 26, 2017
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@mshroyer
mshroyer / icalendar_todos.py
Created Dec 28, 2016
Extract plaintext TODOs from Remember the Milk (RTM) iCalendar export
View icalendar_todos.py
#!/usr/bin/env python3
import argparse
import functools
import icalendar
import operator
import re
TAGS_PATTERN = re.compile(r'Tags: ([\w\d]+(?:, [\w\d]+)*)')
View gist:56be3c422f1242fb8578
INGREDIENTS
2 cups buttermilk (Bisquick) baking mix
2/3 cup milk
1/2 cup shredded sharp Cheddar cheese
1/4 cup butter, melted
1/4 tsp garlic powder
DIRECTIONS
@mshroyer
mshroyer / switch.c
Created May 3, 2014
Example of GCC's -Werror=switch
View switch.c
/*
* gcc -Werror=switch will produce an error for this
*/
#include <stdio.h>
enum language {
ENGLISH,
SPANISH,
GERMAN
@mshroyer
mshroyer / config.json
Last active Aug 29, 2015
Bootstrap 3 customization for markshroyer.com
View config.json
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#070",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
View webhook.py
#!/usr/bin/env python
"""webhook
Implements web hooks for BitBucket, etc. on my Amazon EC2 instance.
"""
__author__ = 'Mark Shroyer'
View sum.asm
;; nasm -f elf64 prog.asm && gcc -o prog prog.o
%define under 1000
section .data
output:
db "Result: %lu",10,0
section .text
extern printf
You can’t perform that action at this time.