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 | |
### BEGIN INIT INFO | |
# Provides: vpnclient | |
# Required-Start: $all | |
# Required-Stop: $network $local_fs $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: SoftEther VPN Client | |
# chkconfig: 2345 99 1 | |
# description: SoftEther VPN Client |
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 | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# @(#) rDNSlookup.sh ver.1.0.2 2016.01.29 | |
# | |
# Usage: | |
# rDNSlookup.sh 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
#!/bin/bash | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# @(#) letsencrypt_cert_autoupdate_webroot.sh ver.0.1.0 2016.01.31 | |
# | |
# Usage: | |
# |
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 | |
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# version: 0.1.0 (2016.02.05) | |
# |
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
[Unit] | |
Description=SoftEther VPN Server | |
After=network.target network-online.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/local/vpnserver/vpnserver execsvc | |
ExecReload=/bin/kill -HUP $MAINPID | |
KillMode=control-group | |
Restart=on-failure |
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 | |
# | |
# Copyright (c) 2016 Katsuya SAITO | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
# | |
# @(#) softethervpn_letsencrypt_cert_autoupdate.sh ver.0.1.0 2016.02.20 | |
# | |
# Usage: softethervpn_letsencrypt_cert_autoupdate.sh CommonName WEBROOT PASSWORD MAIL | |
# |
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 | |
# -*- coding: utf-8 -*- | |
# | |
import sys | |
import ipaddress | |
from ipwhois import IPWhois | |
def swhois(ip): | |
obj = IPWhois(ip) |
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
""" generate kana """ | |
def rubi(letters): | |
"""Generate kana. | |
alphabet upper case letter --> 'カタカナ'(大文字) | |
alphabet lowe case letter --> 'カタカナ' | |
none alphabet letter --> not convert to kana. | |
each kana is joined by '・'. |
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
def gen_crypt_password(password): | |
from crypt import crypt | |
import random | |
""" MD5-CRYPTパスワード文字列を生成 for python2.x | |
"salt"は[a-zA-Z0-9./]から選ばえれることになっているので、 | |
chr()でアルファベット大文字(65~91)、小文字(97~123)のシーケンスを生成して、 | |
.と/を付け加えて、"salt"の元とする |
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 | |
# | |
# instal rbenv and then, install ruby 2.3.0 and gem update, install bundler. | |
# This script is written for CentOS 7. | |
# | |
set -e | |
if [ ! -e /etc/redhat-release ]; then | |
echo "This script can only run on CentOS!" |
OlderNewer