Skip to content

Instantly share code, notes, and snippets.

@nueh
nueh / README.md
Created November 26, 2020 10:07 — forked from cellularmitosis/README.md
QEMU PowerPC G4 OS X Tiger (10.4) setup
@nueh
nueh / PackUI.py
Last active November 12, 2017 21:18
Package a [Pythonista](http://omz-software.com/pythonista/) UI script and its corresponding .pyui file into a single self-extracting file
# PackUI by dgelessus
# https://github.com/dgelessus/pythonista-scripts/blob/master/UI/PackUI.py
#
# Package a UI script and its corresponding .pyui file into a single
# self-extracting file. When run, the generated script will unpack both files,
# allowing both running and further editing without limitations.
#
# The PackUI script itself can be given a py/pyui pair to package either using
# the (very basic) UI by running it directly, via sys.argv, or by importing it
# and using the PackUI.pack() function. All paths are considered relative to
diff -udprP mutt-1.6.0.orig/handler.c mutt-1.6.0/handler.c
--- mutt-1.6.0.orig/handler.c 2016-04-02 21:12:22.000000000 +0300
+++ mutt-1.6.0/handler.c 2016-04-06 20:24:25.000000000 +0300
@@ -1581,7 +1581,31 @@ static int text_plain_handler (BODY *b,
buf[--l] = 0;
}
if (s->prefix)
- state_puts (s->prefix, s);
+ {
+ int i;
diff -udprP mutt-1.6.0.orig/hdrline.c mutt-1.6.0/hdrline.c
--- mutt-1.6.0.orig/hdrline.c 2016-04-02 21:12:22.000000000 +0300
+++ mutt-1.6.0/hdrline.c 2016-04-06 20:22:39.000000000 +0300
@@ -212,6 +212,7 @@ int mutt_user_is_recipient (HEADER *h)
* %f = entire from line
* %F = like %n, unless from self
* %i = message-id
+ * %I = initials of author
* %l = number of lines in the message
* %L = like %F, except `lists' are displayed first
@nueh
nueh / dvtm.md
Last active August 29, 2015 14:24 — forked from jqtrde/dvtm.md

Installation

brew install dvtm dtach

Getting started

To begin, start dvtm with dvtm

Keybase proof

I hereby claim:

  • I am nueh on github.
  • I am nueh (https://keybase.io/nueh) on keybase.
  • I have a public key whose fingerprint is 88AA 62B5 4FC1 5EAD AE97 0DF8 B93C B37E ED8D 36CA

To claim this, I am signing this object:

@nueh
nueh / iss-notify
Last active November 12, 2017 15:25
iss-notify tells the time until the next pass of the ISS
#!/usr/bin/python
# -*- coding: UTF-8 -*-
#
# Heavily 'inspired' by Dr. Drang (https://github.com/drdrang/heavens-above)
import urllib2
from BeautifulSoup import BeautifulSoup
from datetime import datetime, date, timedelta
from time import strptime
import os
@nueh
nueh / plist2hashcat.py
Last active November 11, 2023 07:55
Convert Mac OS X 10.8 and later (SALTED-SHA512-PBKDF2) plist to password hash for hashcat. Slightly modified version of ml2john.py.
#!/usr/bin/env python
"""Utilities for writing code that runs on Python 2 and 3"""
import operator
import sys
import types
__author__ = "Benjamin Peterson <benjamin@python.org>"
__version__ = "1.2.0"