Skip to content

Instantly share code, notes, and snippets.

@mt8
mt8 / memo.sh
Last active July 12, 2022 02:19
Homebrewでインストールしたterraformを任意のバージョンに戻す🍺
# terraformのGitコミットログを確認
$ brew log terraform
Warning: homebrew/core is a shallow clone so only partial output will be shown.
To get a full clone run:
git -C "$(brew --repo homebrew/core)" fetch --unshallow
commit 74f8f0f9c5cd3703dd36031cfada22e721b244e5
Author: BrewTestBot <homebrew-test-bot@lists.sfconservancy.org>
Date: Tue Jun 4 19:00:44 2019 +0000
@wokamoto
wokamoto / cloudfront-input.json
Last active April 8, 2016 07:43
[AWS][WordPress] WordPress 用 CloudFront 設定サンプル
{
"DistributionConfig": {
"Comment": "",
"CacheBehaviors": {
"Items": [
{
"TrustedSigners": {
"Enabled": false,
"Quantity": 0
},
@hissy
hissy / backlog-deploy.php
Last active April 11, 2023 02:04
Git Webhookを使ったCPIへのデプロイスクリプト
<?php
// CPIユーザーID(契約情報で確認してください)
$user_id = 'abc123defg';
// リポジトリ名(Backlogで確認してください)
$repo_name = 'repository_name';
// Gitレポジトリの位置の指定
$git_dir = '/usr/home/' . $user_id . '/' . $repo_name . '.git';
// 展開先ディレクトリの指定
$work_tree = '/usr/home/' . $user_id . '/html';
// logファイルの指定