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 | |
# install tool necessary | |
sudo apt -y install make gcc autoconf | |
# install dependencies | |
sudo apt-get -y install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev | |
GIT_DL_PAGE="https://mirrors.edge.kernel.org/pub/software/scm/git/" | |
GIT_VERSION="git-2.40.0" |
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 | |
# install tool necessary | |
yum -y install gcc autoconf ncurses-devel | |
cd /usr/local/src | |
git clone https://github.com/vim/vim.git | |
if [ $? -eq 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
#!/bin/bash | |
# install tool necessary | |
yum -y install gcc make autoconf | |
# install dependencies | |
yum -y install curl-devel expat-devel gettext-devel openssl-devel perl-devel zlib-devel | |
GIT_DL_PAGE="https://mirrors.edge.kernel.org/pub/software/scm/git/" | |
GIT_VERSION="git-2.40.0" |
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 | |
# A script to install or update libreoffice releases properly | |
if [[ "$1" == "-x" ]]; then | |
shift | |
set -x | |
fi | |
me=`basename $0` | |
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
#!/bin/bash | |
echo "========= CentOS Base Setup Start =========" | |
echo "===== time setup start =====" | |
yum -y update | |
### オリジナルをバックアップ | |
cp -a /etc/sysconfig/clock /etc/sysconfig/clock.org | |
if [ $? -eq 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
#!/bin/bash | |
echo "========= CentOS Base Setup Start =========" | |
echo "===== time setup start =====" | |
yum -y update | |
# タイムゾーンは日本 | |
timedatectl set-timezone Asia/Tokyo | |
# 手動で同期しておく | |
chronyc -a makestep | |
echo "===== time setup finish =====" |
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
# curl -LkvOf ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.45.tgz |
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
# coding: UTF-8 | |
import sys | |
import json | |
list_name = sys.argv[1] | |
with open(list_name, "r") as fList: | |
file_name = fList.readline().replace('\n', '') | |
input_str = "" |
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
## .pgpassファイルを作成 | |
# vi .pgpass | |
## 次の内容を記載 | |
<DBサーバのホスト名>:<DBサーバのポート>:<データベース名>:<ユーザ名>:<パスワード> | |
# 記載したら保存する | |
## 権限を以下のコマンドで変更する | |
# chmod 600 .pgpass |
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 python | |
# -*- coding: utf-8 -*- | |
import os | |
import sys | |
ascii_controls = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x7f] | |
try: | |
output = open(sys.argv[1], 'w') |