インフラ
poetryなしでDjangoをRender.comへデプロイする【Herokuの代替クラウド、アカウント作成から解説】
【LPIC】fileコマンドでMIMEタイプを調べておく
【LPIC】リダイレクションとは? 【>と<の違い、>>など】
【LPIC】trコマンドの使い方【標準入力したものを変換して出力する】
trコマンドは標準入力したものを変換して出力することができる。 例えば、以下のようにhelloをHelloに変換する tr "hello" "Hello" # tr hello Hello でも可 テキストファイルに書かれてある内容を置換して出力することができる。 tr hello Hello < test.txt 置換した内容を別のテキストファイルにリダイレクトして書き込みできる。 tr hello Hello < test.txt > test2.txt ちなみに、このように同じテキストにリダイレクトして書き込みしようとすると、このように全て消える。 tr hello Hello < test.txt > ...【LPIC】Level1で出てくるコマンドと用語の一覧
【LPIC】setコマンドを使用してシェルオプションを設定する
【LPIC】シェル変数と環境変数の違い【setコマンドとenvコマンド】
【Ubuntu】最新版PHPがインストールできるようにリポジトリを追加する
このリポジトリを前もってインストールしておかなければ、最新(2023年1月時点)のPHP8.1がインストールできない sudo apt-add-repository ppa:ondrej/php 参照元 https://www.itzgeek.com/how-tos/linux/ubuntu-how-tos/how-to-install-php-8-0-on-ubuntu-20-04-ubuntu-18-04.html 背景 GitHubからDLしたLaravelプロジェクトを手元で動かすため、 composer update を実行したものの、以下のエラーが出た。 Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires simplesoftwareio/simple-qrcode ^4.2 -> satisfiable by simplesoftwareio/simple-qrcode[4.2.0]. - simplesoftwareio/simple-qrcode 4.2.0 requires ext-gd * -> it is missing from your system. Install or enable PHP's gd extension. Problem 2 - laravel/cashier[v14.6.0, ..., 14.x-dev] require moneyphp/money ^4.0 -> satisfiable by moneyphp/money[v4.0.0-beta1, ..., v4.1.0]. - moneyphp/money[v4.0.0-beta1, ..., v4.1.0] require ext-bcmath * ...【MySQL】Ubuntuからrootユーザーでログインをするコマンド