Skip to content

Instantly share code, notes, and snippets.

@tnmt
tnmt / ghost-to-hugo.py
Created September 25, 2017 11:57
data exporter from Ghost (ready for 1.X) to Hugo (also Octopress) data format.
#!/bin/env python
# coding: utf-8
import os
import json
from datetime import datetime
def main():
# Read the Ghost export file
f = open('GhostData.json', 'r')
@tnmt
tnmt / stns-query-wrapper.te
Created December 19, 2017 10:20
STNSのsshクエリラッパー用SELinuxのポリシーファイル
module stns-query-wrapper 1.0;
require {
type bin_t;
type chkpwd_t;
type policykit_t;
type sshd_t;
type sysctl_net_t;
type sysfs_t;
type system_dbusd_t;