すべて root で作業しています。
GeoIP関連パッケージはEPELにありますので、あらかじめEPELの設定をしたうえで、
# yum --enablerepo=epel install GeoIP mod_geoip
Stop-Service -Name FontCache ; Set-Service -Name FontCache -StartupType Disabled |
mailq | grep '^[0-9a-zA-Z]' | sed -e 's/ .*//' | xargs postcat -q | nkf -Jw | less |
#!/bin/sh | |
#https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora | |
# FedoraCoreやEnterpriseLinux(RHEL/CentOS)用のインストール手順 | |
# RHEL 5/6/7 で使える手順 | |
# 入るnode.jsはバージョンが一つ古い程度(v6.2.2が公開の時点の2016/6/29でv6.2.1が入った) | |
# Import yum repository | |
# curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - | |
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - |
Google Chromeのデータセーバー機能は透過プロキシとして動作し、Googleの所有する IPアドレスからアクセスされるのだが、サーバ側でリバースプロキシを構築していると、 多段串を使ってアクセスしてるかのような状態になる。
NginxとApacheの間で、リバースプロキシ環境を構築化でクライアントのIPアドレスを
伝える仕組みとして、Apache側に mod_rpaf
を入れて、Nginx側でリクエストヘッダ
を調整する方法があるのだけれども、データセーバーを使われてしまうと、Apache側
では、GoogleのProxyアクセスのIPアドレスが記録されてしまう。
{ | |
"require": { | |
"php": ">=5.3.3", | |
"fabpot/goutte": "~1.0" | |
} | |
} |
{ | |
"require": { | |
"php": ">=5.3.3", | |
"fabpot/goutte": "~1.0" | |
} | |
} |
/* JenkinsのCSS設定を変更 */ | |
@import url('http://fonts.googleapis.com/css?family=Inconsolata'); | |
/* フォントに Meiryoを使う */ | |
body, table, form, input, td, th, p, textarea, select { | |
font-family: Verdana, Meiryo, Helvetica, sans serif; | |
/* JenkinsのCSSでp要素は 11px に指定されている */ | |
} |
'use strict'; | |
// akizuki-7seg-10col.js: | |
// Usage: | |
// (Raspberry PiにRaspbian Jessieをインストールして、 | |
// sudo raspi-config で SPI使用を有効にしてリブート後、 | |
// piユーザでログイン) | |
// sudo apt-get update | |
// sudo apt-get -y remove nodered nodejs nodejs-legacy | |
// curl -LO http://node-arm.herokuapp.com/node_latest_armhf.deb |
/sbin/chkconfig --add jenkins | |
# If we have an old hudson install, rename it to jenkins | |
if test -d /var/lib/hudson; then | |
# leave a marker to indicate this came from Hudson. | |
# could be useful down the road | |
# This also ensures that the .??* wildcard matches something | |
touch /var/lib/hudson/.moving-hudson | |
mv -f /var/lib/hudson/* /var/lib/hudson/.??* /var/lib/jenkins | |
rmdir /var/lib/hudson |