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
--- include/openssl/ssl.h.orig 2018-11-20 22:35:40.000000000 +0900 | |
+++ include/openssl/ssl.h 2018-11-22 19:52:15.000000000 +0900 | |
@@ -173,12 +173,12 @@ | |
# define SSL_DEFAULT_CIPHER_LIST "ALL:!COMPLEMENTOFDEFAULT:!eNULL" | |
/* This is the default set of TLSv1.3 ciphersuites */ | |
# if !defined(OPENSSL_NO_CHACHA) && !defined(OPENSSL_NO_POLY1305) | |
-# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_256_GCM_SHA384:" \ | |
- "TLS_CHACHA20_POLY1305_SHA256:" \ | |
- "TLS_AES_128_GCM_SHA256" | |
+# define TLS_DEFAULT_CIPHERSUITES "TLS_AES_128_GCM_SHA256:" \ |
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
function tm() { | |
if [ -n "${1}" ]; then | |
tmux -2 attach-session -t ${1} || \ | |
tmux -2 new-session -s ${1} | |
else | |
tmux -2 attach-session || \ | |
tmux -2 new-session | |
fi | |
} |
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 perl | |
# | |
# Requirements: | |
# MIME::Parser, Encode, LWP::UserAgent, Crypt::SSLeay | |
# | |
use strict; | |
use warnings; | |
use MIME::Parser; |
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 | |
INTERVAL=10 | |
FILE_TMP="/tmp/tmpfile" | |
[ -f "${FILE_TMP}" ] || touch -t 197001010000 "${FILE_TMP}" | |
_prev=`stat -c '%Y' ${FILE_TMP}` | |
_now=`date '+%s'` | |
if [ $((_now - _prev)) -ge ${INTERVAL} ] |
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 bash | |
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/sbin:/usr/sbin | |
export PATH | |
# usage | |
_usage() { | |
echo "usage:" | |
echo " echo hogehoge | ${0} -t to@add.re.ss [-f from@add.re.ss] [-s subject] [-m mxhost] [-p mxport]" | |
exit 1 |