Skip to content

Instantly share code, notes, and snippets.

mrowe / better-annotated.s
Last active Oct 16, 2021
clang compiled to ARM assembler
View better-annotated.s
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 11, 0 sdk_version 11, 3
.globl _main ; -- Begin function main
.p2align 2
_main: ; @main
.file 1 "/Users/mrowe/src" "better.c"
.loc 1 4 0 ; better.c:4:0
; %bb.0:
mrowe / harvard-deakin-university-2020.csl
Last active Oct 2, 2021
Zotero style definition for the 2020 version Deakin Australian Harvard (incomplete)
View harvard-deakin-university-2020.csl
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" default-locale="en-GB">
<title>Deakin University - Harvard 2020</title>
<link href="" rel="self"/>
<link href="" rel="template"/>
<link href="" rel="documentation"/>
mrowe /
Created May 17, 2020
Debugging weird prod problem

We were in the final push towards a major release of a large public-facing J2EE application when I was assigned The Defect. The application, which had been working quite well in functional test environments (all things considered), suddenly stopped when deployed to SIT. Well, it started up ok, but if you tried to log in, you were faced with a long wait. Very long.

It was exactly the same code that had been working in other environments, but the difference in SIT, of course, was that debug logging was turned off.

After a day of changing logging levels, bouncing WebSphere servers and tracing debug logging code, I stumbled across this gem:

    Iterator i = formBean.getKeys();
    while (i.hasNext()) {
        if (LOG.isDebugEnabled()) {
View example.csv
Title Notes Username Password URL Type
AirBNB p4ssw0rd Password
Airbnb user p4ssw0rd Login
PayPal user p4ssw0rd Login
Bendigo Bank user p4ssw0rd Login
Quantium PSeeker Replica (read only) quantium p4ssw0rd Database
irc mrowe p4ssw0rd Server
Disney user p4ssw0rd Login
Zoho user p4ssw0rd Login
Bookbaby user p4ssw0rd Login
mrowe / .xmobarrc
Created Jun 10, 2017
Xmonad/Xmobar config
View .xmobarrc
Config { font = "-misc-fixed-*-*-*-*-12-*-*-*-*-*-*-*"
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
, alpha = 255
, position = TopW L 100
, allDesktops = True
, overrideRedirect = True
, commands = [
mrowe /
Last active May 7, 2017
Restore my Garmin Edge 510 from a local backup
set -e
FILELIST="Sports/*.fit Settings/"
mrowe / unused-security-groups.rb
Last active Aug 29, 2015
Find unused security groups
View unused-security-groups.rb
#!/usr/bin/env ruby
require 'aws-sdk'
ec2 =
elb =
rds = # shrug
security_groups = { |sg| }.sort
instance_sgs = { |i| { |sg| } }.flatten.sort
mrowe /
Last active Aug 29, 2015
Toy Robot in Java 7
package com.mikerowecode.robot;
import java.util.Scanner;
import java.util.StringTokenizer;
public class Robots {
public static void main(String[] args) {
Robot robot = new Robot(-1, -1, Direction.WEST);
mrowe /
Created Jan 8, 2015
Toy Robot in Java 8
package com.mikerowecode.robot8;
import java.util.Scanner;
import java.util.StringTokenizer;
import java.util.function.Function;
public class Robots {
public static void main(String[] args) {
Robot robot = new Robot(-1, -1, Direction.WEST);
Scanner in = new Scanner(;
mrowe / muttrc
Created Oct 9, 2014
Viewing GitHub pull request diffs
View muttrc
folder-hook REA 'macro pager \Cd '<pipe-message>~/dotfiles/mutt/^M'