Skip to content

Instantly share code, notes, and snippets.

View taisyo7333's full-sized avatar

Daisuke Inoue taisyo7333

View GitHub Profile
@taisyo7333
taisyo7333 / google.md
Created August 18, 2017 10:14
Googleの検索結果のキャッシュを削除したい
@taisyo7333
taisyo7333 / dns_failover_ttl.md
Last active July 15, 2017 00:25
DNS failoverについて

support.dnsmadeeasy

  • TTL を 180sec - 300sec に設定した方がよい。
  • 正しく設定しても最大で10min DNSの伝播に時間がかかるケースがある。
  • PC内にある名前解決キャッシュはTTLをベースに更新される

End clients who have queried for your IP address recently will have the IP cached in their local resolving name server held by their ISP. This cache time is based on the TTL of your record. Records that use DNS Failover should have a shorter TTL between 180 and 300 seconds to minimize this cache time. Worst case scenario it will be about 10 minutes before your new IP is propagated on cached systems if the TTL is set correctly.

@taisyo7333
taisyo7333 / docker_system.md
Created June 30, 2017 00:26
command : docker system

docker 便利機能

v1.13から?

不要になったコンテナのイメージなどを削除してくるコマンド

docker system df (before)

> docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              74                  27                  3.759 GB            3.404 GB (90%)
@taisyo7333
taisyo7333 / assets_on_aws.md
Last active June 29, 2017 01:32
Assets on AWS(S3 + CouldFront) 独自SSL無し

システム構成

  • S3
  • CloudFront

想定

基本情報

  • デイリーユーザー : 5000人/日
  • 1ヶ月 = 30日
  • ASSETSファイル = 1.5MB
@taisyo7333
taisyo7333 / ssl.md
Last active April 7, 2017 07:57
SSL Server Test / Moziila configuration
@taisyo7333
taisyo7333 / powershell.md
Created March 28, 2017 08:20
Mac のHomebrew で powershellをインストールする方法
brew cask install powershell  
@taisyo7333
taisyo7333 / postgres_.md
Last active March 7, 2017 08:52
Docker / Postgres にアクセスする方法

条件

  • database名: development
  • ユーザー名:postgres
  • ホスト名:db

コマンド

psql -d <db_name> -U <user-name> -h <host>
@taisyo7333
taisyo7333 / ntp.md
Created March 6, 2017 06:02
Ubuntu ntp

インストール

apt-get -y install ntp ntpdate

確認

ntpq -p

ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
@taisyo7333
taisyo7333 / curl_ubuntu.md
Created March 4, 2017 08:30
ubuntu で curlがインストールできない場合の対処法