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 | |
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" |
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
--- | |
title: Installing HEXO | |
tags: | |
- Software | |
categories: | |
- Hexo | |
comments: true | |
date: 2018-05-14 00:00:00 | |
--- |
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 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" |
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 | |
# 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 |
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
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 | |
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
import yaml | |
#import pdb | |
import sys | |
import subprocess | |
import pprint | |
fn_mdin = "./mdext.yml" | |
fn_mdcfgtmp = "./tmp/mdext-CFG.yml" | |
fn_scr="./call-pymd.out" |
From machine A, user-A
does an ssh
into th eaccount user-B
on server B
for a terminal session.
In the course of that session, it would be convenient to copy some data to A
's clipboard,
without using mouse to drag and click. Example use cases:
cat
files content into local clipboard. C.f.,cat | xsel -i -b
orcat | xclip -i -selection b
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 | |
# | |
# craigphicks copyright 2019 - MIT license | |
# see https://github.com/craigphicks/privca | |
set -u | |
Existing_CA_CN="" | |
function _get_CA_CN { |
OlderNewer