Instantly share code, notes, and snippets.

View passwordsafe-resources-formatv3.txt
PasswordSafe database format description version 3.31
-----------------------------------------------------
Copyright (c) 2003-2016 Rony Shapiro <ronys@pwsafe.org>.
All rights reserved. Use of the code is allowed under the Artistic
License terms, as specified in the LICENSE file distributed with this
code, or available from
http://www.opensource.org/licenses/artistic-license-2.0.php
View sendmail-mailgun.py
#!/usr/bin/env python3
import os
import sys
import subprocess
s = ""
s += "---- begin args ----\n"
for i in range(0,len( sys.argv )):
s+= "argv[" + str(i) + "]:" + str(sys.argv[i]) +"\n"
View sendmail-free-mailgun.sh
#!/bin/bash
# Documentation can be found on either of following blogs (with mirrored content):
# https://pindertek.net/2018/07/04/sendmail-free-mailgun/
# https://craigphicks.github.io/2018/07/04/sendmail-free-mailgun/
# NOTE: root permission required to write to /var/log.
# Choose another log location if that will not be suitable.
Logfile=/var/log/sendmail-dummy.log
if [[ $EUID -ne 0 ]]; then
View MD of file being parsed - hexojs hexo issues 3178
---
title: Installing HEXO
tags:
- Software
categories:
- Hexo
comments: true
date: 2018-05-14 00:00:00
---
View mgmail.sh
#!/bin/bash
mgmail()
(
dflt_to="xxx@gmail.com"
dflt_froma="xxx@example.com"
dflt_sub="notice from admin"
dflt_text="default text"
mailgun_domain="example.com"
keyfile="./privatekey.txt"