AWS LightsailのVPS初期設定

Lightsailで、先日作成したインスタンスのOSは、Cent OS 7系で構築しました。他のミドルウェアは入れずにOSのみです。
初期設定は必要最低限のみ行ってみま ...
Amazon Lightsailでインスタンス作成

AmazonのVPSサービスの「Lightsail」が無料体験できるので、CentOS 7のOSで無料インスタンスを作成してみました。インスタンス作成は簡単で数分程度で終わりまし ...
安いAWSのLightsailというVPSサービス

今は月額1,000円程度でメモリが1GのVPSサービスを利用しています。特に大きな不満がないですが同じような価格でAWSのVPSサービスみたいな「Lighatsail」が価格改定され、3.5 USDか ...
FileZillaで「.DS_Store」を表示されないようにする

macOSの場合、フォルダを開くと「.DS_Store」が自動で生成されます。普段は不可視ファイルを表示しない場合は気にしなくてもいいですが、FTP ...
シェルスクリプトを実行している絶対パスを取得する

シェルスクリプトで実行しているディレクリ名を取得する場合「dirname ${0}」でディレクトリ名を取得できます。
但し、実行時に相対パスで実行するとディレクトリ名も相対パスとなります。
下記のスクリプトでは、「 ...
vsftpdでパッシブモードを設定する

FTPサーバーのvsftpdでパッシブモードも有効にして、F/W(iptables)でパッシブモードで利用するポートを開放する手順を説明します
vsftpdでパッシブモードを有効 ...ファイルパスからディレクリ名・ファイル名を取得

ファイルパスからディレクトリ名・ファイル名を取得するには「dirname」、「basename」を使うとディレクトリ名やファイル名を取得できます
dir ...シェルスクリプトでファイルを読み込んで処理する

シェルスクリプトでファイルの内容を読み込んで、その内容を出力したりする方法を紹介します
ファイルを標準入力へリダイレクトさせて読み込むwhile read lineで、標準入力 ...
Finderの右クリックメニューでターミナルを開く

macOSのFinderで、右クリックメニューから指定したディレクトリを開く方法を紹介します。これはキーボードのショートカットからおこないます
1.「システム環境設定 ...
「.DS_Store」を一括削除するコマンド(方法)

macOSでフォルダを開くと自動で生成される「.DS_Store」のファイルですが、このファイルはフォルダのフォルダ内のアイコンの位置や表示設定などの情報を保持してい ...
Eclipse でマーケットプレイスが無い場合に追加する方法

総合開発環境(IDE)のEclipseを使用していて、「マーケットプレイス」で追加のプラグインを追加しようと思っても「マーケットプレイス」が選択できなかったので、新たにインストー ...
cpコマンドで隠しファイルをコピーする

cpコマンドで「.htaccess」等の隠しファイルを含むディレクトリをコピーするときに、「 cp -r test/* 」とすると、コピー元に「.htaccess」等の隠し ...
macOSでアップデート後にgitコマンド時に「xcrun: error: invalid active developer path 」エラー

macOSでにアップデートした後で、gitコマンドを使用すると下記のような「xcrun: error: invalid active developer path〜」とエラーが表 ...
Github 無料でプライベートリポジトリを作る

GitHubでは、以前はプライベートリポジトリは月額7ドル以上で有料でしたが、2019年1月7日(現地時間)、無料ユーザーでもプライベートリポジトリを使えるようにしたと発表があり、無料で利用 ...
PHP if文での「==」と「===」の違い

if文の比較演算子で、イコールが2個続いた「==」とイコールが3個続いた「===」があります。
この違いですが、下記のサンプルをみれば、同じような値が入っていても実行結果は違います