Skip to content

Instantly share code, notes, and snippets.

View nasa114's full-sized avatar
🔥
Wow fast and quality.

Masaki Osugi nasa114

🔥
Wow fast and quality.
View GitHub Profile
@nasa114
nasa114 / VPS_update_nginx_20170325.sh
Last active March 25, 2017 02:32 — forked from kennwhite/Nginx_1.11_Mainline_Cent_6_7_Static_OpenSSL_1.1.sh
RPM build Nginx 1.11.x with ALPN on CentOS 6/7 using static LibreSSL 2.5.1.(Not chack 'nginx_libressl.sh')
# Based on CentOS7 fork of @smartmadsoft: https://gist.github.com/moneytoo/ab3f34e4fddc2110675952f8280f49c5
# "6" for CentOS6 or Amazon Linux, "7" for CentOS7
CENTVER="7"
LIBRESSL="libressl-2.5.1"
NGINX_VER="1.11.12"
NGINX="nginx-$NGINX_VER-1"
mkdir -p /opt/lib
@nasa114
nasa114 / [profile_name]_ssl.conf
Last active November 10, 2016 01:21
KUSANAGI内のApacheでLet's Encryptのエラーを解決する ref: http://qiita.com/nasa114/items/77840fc1a6460540e6ae
SSLCertificateFile /etc/letsencrypt/live/[domain]/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/[domain]/privkey.pem
@nasa114
nasa114 / nginx_leatest_install_amazon_linux
Last active July 26, 2021 18:15 — forked from moneytoo/gist:ab3f34e4fddc2110675952f8280f49c5
nginx with OpenSSL 1.0.2 (ALPN) on Amazon Linux(2016.03)
yum -y install epel-release
yum -y groupinstall 'Development Tools'
yum -y install wget openssl-devel libxml2-devel libxslt-devel gd-devel perl-ExtUtils-Embed GeoIP-devel
OPENSSL="openssl-1.0.2i"
NGINX="nginx-1.11.4-1"
mkdir -p /opt/lib
wget https://www.openssl.org/source/$OPENSSL.tar.gz -O /opt/lib/$OPENSSL.tar.gz
tar -zxvf /opt/lib/$OPENSSL.tar.gz -C /opt/lib
@nasa114
nasa114 / mt-centos-perl.md
Last active May 6, 2019 15:49
perl-mt-install

CentOSでとりあえずMovable Typeを動かすためのPerlモジュール群

一般的な方法としては, 以下の様な手順を踏むと思われる.

  1. VPSなどサーバーを借りる
  2. 借りたVPSにログインする
  3. VPSにApache, MySQL, Perlなどを導入する
  4. Movable Typeをインストールする

本稿では3.の太字部分に関する内容が記載されています.

@nasa114
nasa114 / speedtest-net-mini
Created January 26, 2014 05:53
Speedtest.net miniをアップデートするだけのスクリプト。PHP動作を前提としているのでASP環境など考えていません。
#!/bin/sh
cd /var/www/html
rm -rf mini
wget http://c.speedtest.net/mini/mini.zip
unzip mini.zip
cd mini
mv index-php.html index.html
# remove not to need file
rm -rf index-asp.html