Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
#
# Copyright 2014-2020 Cameron Hart <cameron.hart@gmail.com>.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
@prantlf
prantlf / kextsthatwillmakeanadmincry.py
Last active December 15, 2020 20:53 — forked from erikng/kextsthatwillmakeanadmincry.py
Prints kernel extensions on OSX
#!/usr/bin/python
# Credit to frogor for the objc
from Foundation import NSBundle
import json
import objc
import os
import plistlib
import subprocess
@prantlf
prantlf / diablo2_instructions.md
Created December 18, 2020 01:19 — forked from rodrigore/diablo2_instructions.md
Diablo2 on Mac OSX El Capitan

Diablo II LoD on Mac OSX El Capitan

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

@prantlf
prantlf / convertPointFromPageToNode.js
Created December 1, 2022 20:05 — forked from Yaffle/convertPointFromPageToNode.js
function to get the MouseEvent coordinates for an element that has CSS3 Transforms
/*jslint plusplus: true, vars: true, indent: 2 */
/*
convertPointFromPageToNode(element, event.pageX, event.pageY) -> {x, y}
returns coordinate in element's local coordinate system (works properly with css transforms without perspective projection)
convertPointFromNodeToPage(element, offsetX, offsetY) -> {x, y}
returns coordinate in window's coordinate system (works properly with css transforms without perspective projection)
*/