It happens that there are many standards for storing cryptography materials (key, certificate, ...) and it isn't always obvious to know which standard is used by just looking at file name extension or file content. There are bunch of questions on stackoverflow asking about how to convert from PEM to PKCS#8 or PKCS#12, while many tried to answer the questions, those answers may not help because the correct answer depends on the content inside the PEM file. That is, a PEM file can contain many different things, such as an X509 certificate, a PKCS#1 or PKCS#8 private key. The worst-case scenario is that someone just store a non-PEM content in "something.pem" file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""python-xlib example which reacts to changing the active window/title. | |
Requires: | |
- Python | |
- python-xlib | |
Tested with Python 2.x because my Kubuntu 14.04 doesn't come with python-xlib | |
for Python 3.x. |
How to use matrix.org and vector.im as an IRC client
Join the room #freenode_<#channel>:matrix.org
, replacing <#channel>
with the name of the IRC channel. For example, in order to join the #prometheus
IRC channel, join the room #freenode_#prometheus:matrix.org
on matrix.org.
In vector.im, rooms can be joined with the directory symbol on the bottom left.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# If plex is not running, don't do anything. | |
plex_running=`ps ax | grep "\./Plex Media Server" | awk '{ print $1 }' | wc -l` | |
if [ "$plex_running" -eq 1 ]; then | |
exit 0 | |
fi | |
# Test Plex web interface. If it's dead, this'll time out in a few seconds. | |
curl -I -m 8 "http://localhost:32400/library/sections" > /dev/null 2>&1 |
Ok, I geeked out, and this is probably more information than you need. But it completely answers the question. Sorry. ☺
Locally, I'm at this commit:
$ git show
commit d6cd1e2bd19e03a81132a23b2025920577f84e37
Author: jnthn <[email protected]>
Date: Sun Apr 15 16:35:03 2012 +0200
When I added FIRST/NEXT/LAST, it was idiomatic but not quite so fast. This makes it faster. Another little bit of masak++'s program.
Please check here for an up-to-date config for a WISP (wireless ISP) setup on OpenWrt 14.07.