Skip to content

Instantly share code, notes, and snippets.

@Fclem
Fclem / lsof.py
Last active April 19, 2017 11:37 — forked from kohenkatz/lsof.py
lsof utility wrapper copied from http://www.remix.net/blog/?p=130
#!/usr/bin/python
from __future__ import print_function
from subprocess import Popen, PIPE
from distutils.spawn import find_executable
import re
class LsOf(object):
"""
lsof wrapper class
@Fclem
Fclem / inspector-stylesheet.css
Last active March 11, 2022 09:55
CSS enabling easy printout of Azure Devops markdown page preview from repositories browser
/*
* When you open a markdown file from a code repository in Azure Devops, inject this CSS into the code inspector of your browser.
* See https://stackoverflow.com/a/54613970 for instruction on how to do that.
*/
@media print {
pre, blockquote {
page-break-inside: avoid;
}
@page {