hn-utils favorites usage example

hackernews favorites output for user sharemywin

Package source code is available from


hn-utils -u sharemywin
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import argparse
import sys
def main(args):
parser = argparse.ArgumentParser(
description='Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text.. ',
View html2text-issue-28.go
package main
import (
func main() {
inp := ` <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=1"><style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=n-bottom:0;} --></style></head><body dir=3D"ltr"><div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr"><p style=3D"margin-top:0;margin-bottom:0"><br></p><p style=3D"margin-top:0;margin-bottom:0"><br></p><div id=3D"Signature"><div id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; color=:rgb(0,0,0); background-color:rgb(255,255,255); font-family:Calibri,Arial,H=elvetica,sans-serif,EmojiFont,&quot;Apple Color Emoji&quot;,&quot;Segoe UI =Emoji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&=quot;,EmojiSymbols,EmojiFont,&quot;Apple Color Emoji&quot;,&quot;Segoe UI E=moji&quot;,NotoColorEmoji,&quot;Segoe UI Symbol&quot;,&quot;Android Emoji&q=uot;,EmojiSy

Mac OS X

HOWTO: Kill PID occupying a port on macOS.

lsof -t -i tcp:<port-number> | xargs kill



It is possible to use curl to query the LXD unix.socket directly:

curl --unix-socket /var/lib/lxd/unix.socket http:/1.0/containers | jq .

Example output:


LXC / LXD 2.0 Mount Errors



root@ip-1-2-3-4:~# lxc list
cannot perform operation: mount /var/lib/snapd/hostfs/var/lib/lxd /var/lib/lxd -o nosuid,nodev,noexec,rbind,rslave: Permission denied

Initial symptoms

Kubernetes master setup went fine, but when I tried to join a kbminion slave node:

Checking whether docker can run container ...
Checking iptables default rule ...

Installing ZFS on Linux on Oracle Linux 7

We're going to add ZFS support to our Oracle Linux installation. We'll just add the ZFS on Linux Repo, verify the binary signature from GitHub, install the files, ensure the driver loads properly, and verify that it's functional. We'll save things like array creation for another document.

This is mostly a transcription of the process from the CentOS/RHEL ZoL installation manual.

Install the repo file

Add the ZFSonLinux repo and verify the fingerprint.

Note — manual fingerprint verification is atypical but we'll do it anyway just for kicks.

status = error
dest = err
name = PopertiesConfig
property.logDir = /var/log/elasticsearch
appender.console.type = Console = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n
View iTerm2Tips.go
package main
import (