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 | |
# @sacloud-once | |
# @sacloud-desc CentOS7にXRDPをインストールします。インストールには10分程度時間がかかります | |
# @sacloud-desc (このスクリプトは、CentOS7.Xでのみ動作します) | |
# @sacloud-require-archive distro-centos distro-ver-7.* | |
# xrdp、VNCをインストール | |
yum -y install epel-release | |
yum -y update |
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 commands | |
import datetime | |
def _(cmd): | |
return commands.getoutput(cmd) | |
def lambda_handler(event, context): | |
access_token = "access_token" | |
access_token_secret = "access_token_secret" | |
zone ="tk1v" #is1a:石狩第1ゾーン,is1b:石狩第2ゾーン,tk1a:東京第1ゾーン,tk1v:サンドボックス |
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
#atom |
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 | |
#---------START OF iptables---------# | |
cat <<'EOT' > /etc/sysconfig/iptables | |
*filter | |
:INPUT DROP [0:0] | |
:FORWARD DROP [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:fail2ban-SSH - [0:0] | |
-A INPUT -p tcp -m multiport --dports 22 -j fail2ban-SSH |
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 | |
set -eux | |
LANG=C | |
BLOGTITLE= | |
BLOGADMIN= | |
BLOGPW= | |
ADMINMAIL= | |
WPVERSION=4.2.2 |