<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Tech on 葵屋</title>
    <link>https://blog.aoimotoya.net/categories/tech/</link>
    <description>Recent content in Tech on 葵屋</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    <lastBuildDate>Sun, 21 Jan 2024 23:00:00 +0900</lastBuildDate>
    <atom:link href="https://blog.aoimotoya.net/categories/tech/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>静的 Web サイトのインフラを Google Cloud から Cloudflare Pages へ移行した</title>
      <link>https://blog.aoimotoya.net/2024/01/21/cloudflare-pages/</link>
      <pubDate>Sun, 21 Jan 2024 23:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2024/01/21/cloudflare-pages/</guid>
      <description>経緯 ここ半年間ほど当ブログは Cloud Storage + Cloud Load Balancing の組み合わせで運用していた． https://blog.aoimotoya.net/2023/08/15/static-web-site-with-google-cloud/ この度インフラ費用が無視できなくなったため別の安価なプラットフォームに</description>
    </item>
    <item>
      <title>2023 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2023/12/31/looking-back/</link>
      <pubDate>Sun, 31 Dec 2023 19:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2023/12/31/looking-back/</guid>
      <description>仕事 後進の育成や引き継ぎに注力した一年間だった． 2022 年まではいわゆる一人情シスとして業務を行っていたが， 2023 年は 2 名を採用して体制を強化した．色</description>
    </item>
    <item>
      <title>SVG でダークモード対応の favicon を作成する</title>
      <link>https://blog.aoimotoya.net/2023/10/14/favicon/</link>
      <pubDate>Sat, 14 Oct 2023 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2023/10/14/favicon/</guid>
      <description>はじめに モダンな Web ブラウザは favicon 用の画像として SVG を認識するらしい．さらに SVG では閲覧者の UI モードに応じて描画内容を変更できるらしい．というわけで</description>
    </item>
    <item>
      <title>1Password の Owners グループに対してすべての vaults のアイテムの閲覧権限を割り当てる</title>
      <link>https://blog.aoimotoya.net/2023/08/28/1password-script/</link>
      <pubDate>Mon, 28 Aug 2023 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2023/08/28/1password-script/</guid>
      <description>はじめに 組織で使用するパスワードマネージャを LastPass から 1Password に乗り換えた．両者で「アイテムに対する管理者の権限」の考え方や挙動が異なっていたため，そ</description>
    </item>
    <item>
      <title>Cloud Storage と Cloud Load Balancing で静的ウェブサイトを構築する</title>
      <link>https://blog.aoimotoya.net/2023/08/15/static-web-site-with-google-cloud/</link>
      <pubDate>Tue, 15 Aug 2023 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2023/08/15/static-web-site-with-google-cloud/</guid>
      <description>はじめに このブログは随分と昔に Cloud Storage の静的ウェブサイトホスティング機能を用いて作ったきりで， HTTPS に対応していなかったり IaC 化できていなかったりと粗</description>
    </item>
    <item>
      <title>【E.G.G. #7 参加レポート】 Google Cloud 認定資格 Professional Cloud Architect を取得した</title>
      <link>https://blog.aoimotoya.net/2023/08/08/professional-cloud-architect/</link>
      <pubDate>Tue, 08 Aug 2023 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2023/08/08/professional-cloud-architect/</guid>
      <description>まとめ Google Cloud 特別トレーニングプログラム E.G.G. Japan #7 に参加した プログラムを通して Google Cloud の体系的な知識を獲得した Google Cloud 認定資格 Professional Cloud Architect を取得した E.G.G. とは Expert of Google Cloud</description>
    </item>
    <item>
      <title>2022 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2022/12/31/looking-back/</link>
      <pubDate>Sat, 31 Dec 2022 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2022/12/31/looking-back/</guid>
      <description>仕事 2021 年から準備を進めていたオフィス移転対応が完了した．私は IT 全般を担当した．新築物件への入居という珍しいイベントを経験することができて勉強</description>
    </item>
    <item>
      <title>2021 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2021/12/31/looking-back/</link>
      <pubDate>Fri, 31 Dec 2021 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2021/12/31/looking-back/</guid>
      <description>仕事 2020 年から続く COVID-19 の影響をうまく利用して，組織の IT 環境をあるべき形に近付ける取り組みを行っていた． 現職において COVID-19 の影響がもっとも大きい事柄が</description>
    </item>
    <item>
      <title>Mac のアーキテクチャを確認する</title>
      <link>https://blog.aoimotoya.net/2021/12/16/check-mac-architecture/</link>
      <pubDate>Thu, 16 Dec 2021 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2021/12/16/check-mac-architecture/</guid>
      <description>アーキテクチャ確認コマンド uname /usr/bin/uname -p Intel の場合は i386 or x86_64 が返る Apple Silicon の場合は arm が返る arch /usr/bin/arch Intel の場合は i386 が返る Apple Silicon の場合は arm64 が返る どちらのコマンドを使って</description>
    </item>
    <item>
      <title>Apps Script で Slack のチャンネル一覧を取得する</title>
      <link>https://blog.aoimotoya.net/2021/04/09/get-slack-channel-list/</link>
      <pubDate>Fri, 09 Apr 2021 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2021/04/09/get-slack-channel-list/</guid>
      <description>要求仕様 GUI であること 取得するチャンネルはパブリックチャンネルだけでよい チャンネル一覧を取得する方法 札束で殴る Slack の契約プランによっては管理者権</description>
    </item>
    <item>
      <title>2020 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2020/12/31/looking-back/</link>
      <pubDate>Thu, 31 Dec 2020 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2020/12/31/looking-back/</guid>
      <description>仕事 2019 年に引き続き組織全体の改善のために奔走していた． 今年は COVID-19 の影響によりリモートワークが実施された．組織メンバーが自宅にいても出社時同様に</description>
    </item>
    <item>
      <title>パスワードはどのくらい複雑にすればよいのか</title>
      <link>https://blog.aoimotoya.net/2020/05/14/password-complexity/</link>
      <pubDate>Thu, 14 May 2020 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2020/05/14/password-complexity/</guid>
      <description>異なるバックグラウンドを持つ者同士でお互いの専門分野の初歩的な内容を紹介し合う取り組みを行っている．例えば労務が労働法や社会保険について話し</description>
    </item>
    <item>
      <title>GitHub Actions でプライベートリポジトリを参照する</title>
      <link>https://blog.aoimotoya.net/2020/04/23/github-actions/</link>
      <pubDate>Thu, 23 Apr 2020 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2020/04/23/github-actions/</guid>
      <description>はじめに あるリポジトリの GitHub Actions が別のリポジトリを参照することを考える．パブリックリポジトリは自由に参照できるが，プライベートリポジトリは参照す</description>
    </item>
    <item>
      <title>2019 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2019/12/31/looking-back/</link>
      <pubDate>Tue, 31 Dec 2019 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2019/12/31/looking-back/</guid>
      <description>仕事 昨年まではプロダクトや開発環境をよくすることに注力していたが，今年は会社組織全体を対象とした改善活動に取り組んでいた．事業好調により組織</description>
    </item>
    <item>
      <title>Ubuntu 18.04 LTS で VLAN に接続する</title>
      <link>https://blog.aoimotoya.net/2019/08/27/ubuntu-vlan/</link>
      <pubDate>Tue, 27 Aug 2019 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2019/08/27/ubuntu-vlan/</guid>
      <description>事前準備 パッケージインストール sudo apt-get install vlan モジュールのロード sudo modprobe 8021q cat /etc/modules 8021q VLAN 設定 事前に ip a などで対象のインタフェースを確認しておく． ネットワークイ</description>
    </item>
    <item>
      <title>Macで .DS_Store ファイルを削除するアプリケーションを作成する</title>
      <link>https://blog.aoimotoya.net/2019/03/27/remove-ds-store/</link>
      <pubDate>Wed, 27 Mar 2019 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2019/03/27/remove-ds-store/</guid>
      <description>はじめに Mac から Windows にデータをコピーすると Windows にとって不要なファイルまでコピーされてしまい困ることがある (.DS_Store ファイルや， ._ から始まるファイルなど)．</description>
    </item>
    <item>
      <title>2018 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2018/12/31/looking-back/</link>
      <pubDate>Mon, 31 Dec 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/12/31/looking-back/</guid>
      <description>仕事 2017 年までは組織全体を横断して活動していたが， 2018 年は特定のプロダクトチームに所属して活動していた．社内でもっとも規模の大きい (負荷の大きい</description>
    </item>
    <item>
      <title>AWS WAF の OWASP Top 10 テンプレートを試す</title>
      <link>https://blog.aoimotoya.net/2018/11/21/aws-waf-owasp-top-10/</link>
      <pubDate>Wed, 21 Nov 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/11/21/aws-waf-owasp-top-10/</guid>
      <description>OWASP Japan - OWASP OWASP - Open Web Application Security Project とは、Webをはじめとするソフトウェアのセキュリティ環境の現状、またセキュアなソフトウェア開発を促進する技術・プロセス</description>
    </item>
    <item>
      <title>AWS WAF メモ</title>
      <link>https://blog.aoimotoya.net/2018/11/09/aws-waf/</link>
      <pubDate>Fri, 09 Nov 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/11/09/aws-waf/</guid>
      <description>AWS WAF で対策できること AWS WAF の詳細 - AWS WAF、AWS Firewall Manager、および AWS Shield アドバンスド WAF はその名の通りアプリケーションレベルのアタックを防</description>
    </item>
    <item>
      <title>AWS/GCP の IP アドレス範囲</title>
      <link>https://blog.aoimotoya.net/2018/09/28/public-cloud-ip-address-range/</link>
      <pubDate>Fri, 28 Sep 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/09/28/public-cloud-ip-address-range/</guid>
      <description>前書き 「ほとんどのDDoS攻撃は米国のアマゾンから」——アカマイの最新セキュリティレポート | ビジネスネットワーク.jp 日本に対する DDoS 攻撃の発</description>
    </item>
    <item>
      <title>Ruby による Cloud Pub/Sub ことはじめ</title>
      <link>https://blog.aoimotoya.net/2018/09/21/cloud-pub-sub/</link>
      <pubDate>Fri, 21 Sep 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/09/21/cloud-pub-sub/</guid>
      <description>資料 概要: Google Cloud Pub/Sub とは | Cloud Pub/Sub ドキュメント | Google Cloud アーキテクチャ: Google Cloud Pub/Sub: Google 規模のメッセージ サービス | Cloud Pub/Sub | Google Cloud Ruby ライブラリ: Module: Google::Cloud::Pubsub - Google GitHub: google-cloud-ruby/google-cloud-pubsub at master · googleapis/google-cloud-ruby RPC</description>
    </item>
    <item>
      <title>BigQuery でログを扱う上で考慮しておきたいこと</title>
      <link>https://blog.aoimotoya.net/2018/08/10/bigquery-notice/</link>
      <pubDate>Fri, 10 Aug 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/08/10/bigquery-notice/</guid>
      <description>前提 Ruby on Rails で独自実装したログを扱うことを考える 元々はログを Redshift に保存していた この記事は Redshift から BigQuery に乗り換えるために調査していることのメモである デ</description>
    </item>
    <item>
      <title>bundle exec で起動するプロセスを supervisord で管理したい</title>
      <link>https://blog.aoimotoya.net/2018/07/24/supervise-bundle-exec-process/</link>
      <pubDate>Tue, 24 Jul 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/07/24/supervise-bundle-exec-process/</guid>
      <description>前提 mkdir /path/to/hoge &amp;amp;&amp;amp; cd $_ rbenv local 2.5.1 vim Gemfile bundle install --path=vendor/bundle /path/to/hoge 内にインストールした gem から起動するプロセスを supervisord で管理したい．シェルから起動する場合は /path/to/hoge で bundle exec hoge を実行すればよ</description>
    </item>
    <item>
      <title>BigQuery の分割テーブルでは最大 90 分間  PARTITIONTIME 疑似列が NULL になる</title>
      <link>https://blog.aoimotoya.net/2018/06/22/bigquery-partitioned-table/</link>
      <pubDate>Fri, 22 Jun 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/06/22/bigquery-partitioned-table/</guid>
      <description>問題 分割テーブルの概要 | BigQuery | Google Cloud BigQuery の取り込み時間分割テーブルが持つ _PARTITIONTIME 疑似列には，そのレコードが挿入された日付が記録される．つまり 2018-06-22 に挿入され</description>
    </item>
    <item>
      <title>Rails5.1 で導入された環境変数の暗号化機能</title>
      <link>https://blog.aoimotoya.net/2018/03/29/rails-env-var-encryption/</link>
      <pubDate>Thu, 29 Mar 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/03/29/rails-env-var-encryption/</guid>
      <description>2018-10-02 追記 Rails 5.2 以降では encrypted secrets は廃止された模様．代わりに credentials を使うようにとのこと． https://github.com/rails/rails/blob/v5.2.0/activesupport/CHANGELOG.md Add config/credentials.yml.enc to store production app secrets. Allows saving any authentication credentials for third party services directly in repo encrypted with config/master.key or ENV[&amp;quot;RAILS_MASTER_KEY&amp;quot;]. This will eventually replace Rails.application.secrets and the encrypted secrets</description>
    </item>
    <item>
      <title>Docker ストレージアクセス速度調査</title>
      <link>https://blog.aoimotoya.net/2018/01/31/docker-storage-access-speed/</link>
      <pubDate>Wed, 31 Jan 2018 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2018/01/31/docker-storage-access-speed/</guid>
      <description>TL;DR Docker for Macのディスクスループットを約2倍にする - Qiita ちょうど Docker for Mac のストレージアクセスが遅くて困っていたので手元の環境で検証した 結論: Docker イメ</description>
    </item>
    <item>
      <title>2017 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2017/12/31/looking-back/</link>
      <pubDate>Sun, 31 Dec 2017 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2017/12/31/looking-back/</guid>
      <description>仕事 今年はインフラとアプリケーションを絡めた検証作業に取り組む機会が多かった．自社プロダクト (Ruby on Rails) の KVS を Cassandra から別のプロダクトに乗り換えたく，</description>
    </item>
    <item>
      <title>Google Cloud Datastore チュートリアル</title>
      <link>https://blog.aoimotoya.net/2017/03/22/cloud-datastore-tutorial/</link>
      <pubDate>Wed, 22 Mar 2017 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2017/03/22/cloud-datastore-tutorial/</guid>
      <description>事前準備 Google Cloud Platform Google Cloud Platform Console 新規プロジェクト (datastore-test) を作成 Cloud Datastore API を有効化 プロジェクトにアクセスするためのサービスアカウントを作成 Google Cloud SDK Cloud SDK | Google Cloud Platform Mac OS X</description>
    </item>
    <item>
      <title>DynamoDB チュートリアル</title>
      <link>https://blog.aoimotoya.net/2017/03/10/dynamodb-tutorial/</link>
      <pubDate>Fri, 10 Mar 2017 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2017/03/10/dynamodb-tutorial/</guid>
      <description>Cassandra を別の技術 (フルマネージドサービス) で置き換えるべく模索中． 資料 チュートリアル Ruby および DynamoDB - Amazon DynamoDB Aws::Record を使用して DynamoDB のテーブルを Rails から操作するチュ</description>
    </item>
    <item>
      <title>Mac で Jenkins から GUI アプリを動かす際の注意点</title>
      <link>https://blog.aoimotoya.net/2017/02/10/notice-for-jenkins/</link>
      <pubDate>Fri, 10 Feb 2017 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2017/02/10/notice-for-jenkins/</guid>
      <description>TL;DR Jenkins は Daemon ではなく Agent として起動しなければならない．また， Agent を起動したローカルユーザがログインしている状態を保持しなければならない． プログラム自</description>
    </item>
    <item>
      <title>2016 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2016/12/31/looking-back/</link>
      <pubDate>Sat, 31 Dec 2016 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2016/12/31/looking-back/</guid>
      <description>仕事 昨年から引き続き社内のなんでも屋エンジニアとして活動していた．主な変化としてはインフラとして AWS を使用する機会が増えたことが挙げられる．従</description>
    </item>
    <item>
      <title>Windows で Jenkins を使う際のハマりどころ</title>
      <link>https://blog.aoimotoya.net/2016/08/24/jenkins-on-windows/</link>
      <pubDate>Wed, 24 Aug 2016 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2016/08/24/jenkins-on-windows/</guid>
      <description>Mac 上の Jenkins ジョブを Windows 上に移植する際に躓いた点をメモする． 動作環境 Windows 10 Jenkins 2.7.2 Unity 5.3.4p5 Cygwin 2.5.2 環境変数 参照方法は UNIX 系では ${ENV_VAR} だが， Windows では %ENV_VAR% である ただし Jenkins 自体の</description>
    </item>
    <item>
      <title>EC2 のルートパーティションを EBS のサイズに合わせて自動拡張する</title>
      <link>https://blog.aoimotoya.net/2016/03/03/ebs/</link>
      <pubDate>Thu, 03 Mar 2016 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2016/03/03/ebs/</guid>
      <description>問題 AMI から作成した EC2 インスタンスのルートパーティションが EBS のサイズよりも小さくなってしまう． 10 GiB の EBS で作成したにもかかわらず，実際は 8 GiB しか</description>
    </item>
    <item>
      <title>SFTP が無効な環境で Ansible を使う</title>
      <link>https://blog.aoimotoya.net/2016/01/28/ansible-without-sftp/</link>
      <pubDate>Thu, 28 Jan 2016 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2016/01/28/ansible-without-sftp/</guid>
      <description>結論 SFTP が無効化されている環境に対して ansible コマンドを実行するとデータ転送エラーでコケるため， SFTP を有効化するか，もしくは SFTP ではなく SCP を用いるように</description>
    </item>
    <item>
      <title>2015 年の振り返り</title>
      <link>https://blog.aoimotoya.net/2015/12/31/looking-back/</link>
      <pubDate>Thu, 31 Dec 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/12/31/looking-back/</guid>
      <description>仕事 2014 年は前職を退職してからフリーランスをしたりバイクで旅をしたりしていた．色々と新鮮な経験をして十分に英気を養えたため 2015 年の春に再就職した</description>
    </item>
    <item>
      <title>Redis Pub/Sub ことはじめ</title>
      <link>https://blog.aoimotoya.net/2015/11/06/redis-pub-sub/</link>
      <pubDate>Fri, 06 Nov 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/11/06/redis-pub-sub/</guid>
      <description>Redis の Pub/Sub についてコマンドと動作を確認する． ref. Pub/Sub - Redis Redis インストール CentOS 6.6 で yum install redis を実行すると，デフォルトでは古いバージョン (2.4) がインストールされてし</description>
    </item>
    <item>
      <title>CDN 冗長化のための事前調査</title>
      <link>https://blog.aoimotoya.net/2015/09/09/cdn/</link>
      <pubDate>Wed, 09 Sep 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/09/09/cdn/</guid>
      <description>はじめに モバイルゲームのクライアントとして Android/iOS 用アプリを作成しており，サーバサイドではフロントに CDN (CloudFront) を配置している． CDN に冗長性を持たせられてお</description>
    </item>
    <item>
      <title>Infrastructure as Code ことはじめ</title>
      <link>https://blog.aoimotoya.net/2015/08/30/infrastructure-as-code/</link>
      <pubDate>Sun, 30 Aug 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/08/30/infrastructure-as-code/</guid>
      <description>はじめに サーバや開発環境 (以下，インフラ) を手順書に従って構築することは手間がかかる．少なくない時間を費やす必要がある上に，ヒューマンエラー</description>
    </item>
    <item>
      <title>Macでシリアルコンソール接続を行う</title>
      <link>https://blog.aoimotoya.net/2015/05/26/mac-serial-console-connection/</link>
      <pubDate>Tue, 26 May 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/05/26/mac-serial-console-connection/</guid>
      <description>使用機器 USBシリアル変換ケーブル｜株式会社バッファロー BUFFALO No brand コンソールケーブル (RJ45-DB9) 手順 ドライバインストール Virtual COM Port Drivers から Mac 用のドライバをダウン</description>
    </item>
    <item>
      <title>Apache proxy はデフォルトでクライアントがリクエストしたホスト名を保持しない</title>
      <link>https://blog.aoimotoya.net/2015/03/25/apache-proxy/</link>
      <pubDate>Wed, 25 Mar 2015 21:00:00 +0900</pubDate>
      <guid>https://blog.aoimotoya.net/2015/03/25/apache-proxy/</guid>
      <description>問題 下記の構成で 2 つのバーチャルホスト (host1.example.com, host2.example.com) を作成し，同一ホストで異なるサービスを提供しようとした．しかし動作させてみると，クライアントがリク</description>
    </item>
    <item>
      <title>Private gyazo server on sinatra</title>
      <link>https://blog.aoimotoya.net/2014/04/22/private-gyazo/</link>
      <pubDate>Tue, 22 Apr 2014 13:30:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/22/private-gyazo/</guid>
      <description>Project aoimotoya/gyazo * GitHub What is this? This is a private gyazo server works on sinatra. It provides not only gyazo server function but also image gallery.
Requirements Sinatra (includes WEBrick) Rack (interface between sinatra and nginx) Nginx (or other reverse-proxy/web-server) Procedure Gyazo server Nginx only works as a reverse proxy.
Image gallery Dynamic contents and static contents are provided by sinatra and nginx respectively.
Difference between official and mine File name Official gyazo names image files based on MD5 hash.</description>
    </item>
    <item>
      <title>[Ruby] Sinatra アプリを Rack でデーモン化する際の注意点</title>
      <link>https://blog.aoimotoya.net/2014/04/21/sinatra-notice/</link>
      <pubDate>Mon, 21 Apr 2014 08:30:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/21/sinatra-notice/</guid>
      <description>結論 ソースコード中のパスをすべて絶対パスで記述しないとエラーとなる． 経緯 デーモン化したら動かない Sinatra で作ったアプリを rackup -D コマンドによりデーモン</description>
    </item>
    <item>
      <title>[Ruby] rbenv でシステム全体の Ruby を管理する</title>
      <link>https://blog.aoimotoya.net/2014/04/18/rbenv/</link>
      <pubDate>Fri, 18 Apr 2014 14:30:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/18/rbenv/</guid>
      <description>rbenv はユーザ個人に対して Ruby 環境の設定を行う．しかし，どうせならシステム全体の Ruby を管理したい．というわけで以下の記事を見ながら設定を行った． rb</description>
    </item>
    <item>
      <title>[Ruby] 62 進数のランダム文字列を出力する</title>
      <link>https://blog.aoimotoya.net/2014/04/16/rand-string/</link>
      <pubDate>Wed, 16 Apr 2014 10:00:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/16/rand-string/</guid>
      <description>背景 短縮 URL 等で使われているようなランダム文字列を生成したい． 62 進数は半角英数字 0-9a-zA-Z で表現することとする． コード STR_LENGTH = 3 table = [(&amp;#39;0&amp;#39;..&amp;#39;9&amp;#39;), (&amp;#39;a&amp;#39;..&amp;#39;z&amp;#39;), (&amp;#39;A&amp;#39;..&amp;#39;Z&amp;#39;)].map { |i| i.to_a }.flatten hash = STR_LENGTH.times.map {</description>
    </item>
    <item>
      <title>zsh-completions</title>
      <link>https://blog.aoimotoya.net/2014/04/15/zsh-completions/</link>
      <pubDate>Tue, 15 Apr 2014 07:00:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/15/zsh-completions/</guid>
      <description>What is this? zsh-users/zsh-completions * GitHub
This projects aims at gathering/developing new completion scripts that are not available in Zsh yet. The scripts are meant to be contributed to the Zsh project when stable enough.
Installation % mkdir ~/.zsh % cd ~/.zsh % git clone git://github.com/zsh-users/zsh-completions.git % vim ~/.zshrc fpath=(~/.zsh/zsh-completions/src $fpath) autoload -U compinit compinit % source ~/.zshrc How it works (on FreeBSD)? % pkg [Tab] add -- Registers a package and installs it on the system audit -- Reports vulnerable packages autoremove -- Removes orphan packages backup -- Backs-up and restores the local package database check -- Checks for missing dependencies and database consistency clean -- Cleans old packages from the cache convert -- Convert database from/to pkgng create -- Creates software package distributions fetch -- Fetches packages from a remote repository help -- Displays help information info -- Displays information about installed packages install -- Installs packages from remote package repositories query -- Queries information about installed packages register -- Registers a package into the local database remove delete -- Deletes packages from the database and the system repo -- Creates a package repository catalogue rquery -- Queries information in repository catalogues search -- Performs a search of package repository catalogues set -- Modifies information about packages in the local database shell -- Opens a debug shell shlib -- Displays which packages link against a specific shared library stats -- Displays package database statistics update -- Updates package repository catalogues updating -- Displays UPDATING information for a package upgrade -- Performs upgrades of packaged software distributions version -- Displays the versions of installed packages which -- Displays which package installed a specific file It shows not only commands but help documents.</description>
    </item>
    <item>
      <title>[FreeBSD] Routing table</title>
      <link>https://blog.aoimotoya.net/2014/04/10/routing-table/</link>
      <pubDate>Wed, 09 Apr 2014 23:30:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/04/10/routing-table/</guid>
      <description>How to view % netstat -rn Default gateway We can specify the IP address of the default gateway by below command.
% sudo route add default 10.20.30.1 Reference 30.2. Gateways and Routes, Chapter 30. Advanced Networking, FreeBSD Handbook</description>
    </item>
    <item>
      <title>[FreeBSD] Root-on-ZFS recovery by using snapshots</title>
      <link>https://blog.aoimotoya.net/2014/03/29/zfs-recovery/</link>
      <pubDate>Fri, 28 Mar 2014 16:00:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/03/29/zfs-recovery/</guid>
      <description>Introduction An HDD for a rootFS of my FreeBSD machine has broken. I installed a new HDD and recovered the rootFS from ZFS snapshots.
Partitioning The new HDD is recognized as /dev/da1. In this section, da1 is conformed to a broken disk.
# gpart destroy -F da1 da1 destroyed # gpart create -s gpt /dev/da1 da1 created # gpart add -s 64K -b 34 -t freebsd-boot -l /boot/boot0 /dev/da1 da1p1 added # gpart add -s 1G -t freebsd-swap -l swap0 /dev/da1 da1p2 added # gpart add -t freebsd-zfs -l disk0 /dev/da1 da1p3 added # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/da1 bootcode written to da1 Create zpool for rootFS I named a new zpool rpool2.</description>
    </item>
    <item>
      <title>[FreeBSD] Several installations and settings</title>
      <link>https://blog.aoimotoya.net/2014/03/27/freebsd-setting/</link>
      <pubDate>Thu, 27 Mar 2014 08:50:11 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/03/27/freebsd-setting/</guid>
      <description>What I installed are listed below.
sudo Installation # pkg install sudo Settings # visudo %wheel ALL=(ALL) ALL zsh Installation % sudo pkg install zsh Settings % vi ~/.zshrc % whereis zsh zsh: /usr/local/bin/zsh /usr/local/man/man1/zsh.1.gz /usr/ports/shells/zsh % chsh Shell: /usr/local/bin/zsh % zsh ipfw % sudo vi /etc/rc.conf firewall_enable=&amp;#34;YES&amp;#34; firewall_script=&amp;#34;/etc/ipfw.rules&amp;#34; firewall_logging=&amp;#34;YES&amp;#34; % sudo vi /etc/ipfw.rules % sudo /etc/rc.d/ipfw start ntp % sudo vi /etc/ntp.conf server yourNtpServer % sudo /etc/rc.d/ntpd restart ssmtp % sudo /etc/rc.</description>
    </item>
    <item>
      <title>[FreeBSD] Using the ports collection</title>
      <link>https://blog.aoimotoya.net/2014/03/27/ports-collection/</link>
      <pubDate>Thu, 27 Mar 2014 05:30:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/03/27/ports-collection/</guid>
      <description>Initial process To download a compressed snapshot into /var/db/portsnap
# portsnap fetch # du -sh /var/db/portsnap/ 153M	/var/db/portsnap/ To extract the snapshot into /usr/ports
# portsnap extract # du -sh /usr/ports/ 860M	/usr/ports/ After the first steps shown above, /usr/ports can be updated by running
# portsnap fetch &amp;amp;&amp;amp; portsnap update Cron setting To keep a ports tree latest, it is recommended to set cron jobs.
# crontab -e 0 3 * * * /usr/sbin/portsnap cron &amp;amp;&amp;amp; /usr/sbin/portsnap update &amp;gt;/dev/null portsnap cron executes portsnap fetch after random (from 1 to 3600) seconds.</description>
    </item>
    <item>
      <title>[FreeBSD] SSH settings</title>
      <link>https://blog.aoimotoya.net/2014/03/27/ssh-setting/</link>
      <pubDate>Thu, 27 Mar 2014 03:00:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/03/27/ssh-setting/</guid>
      <description>Notice: during the installation of FreeBSD, I enabled sshd.
Configuration # cp /etc/ssh/sshd_config /etc/ssh/sshd_config.org # vi /etc/ssh/sshd_config PermitRootLogin no RSAAuthentication yes PubkeyAuthentication yes PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no AllowUsers yourUserName Key generation % mkdir ~/.ssh % chmod 700 ~/.ssh % cd ~/.ssh % vi ssh-key.pub yourPublicKey # ssh-keygen -i -f ssh-key.pub &amp;gt; authorized_keys # chown yourUserName:yourGourp authorized_keys # chmod 600 authorized_keys % rm -f ssh-key.pub Confirmation # /etc/rc.d/sshd restart % netstat -a | grep LISTEN tcp4 0 0 *.</description>
    </item>
    <item>
      <title>Installation of FreeBSD 10.0 on ConoHa VPS</title>
      <link>https://blog.aoimotoya.net/2014/03/27/freebsd-installation/</link>
      <pubDate>Wed, 26 Mar 2014 15:00:00 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2014/03/27/freebsd-installation/</guid>
      <description>I installed FreeBSD 10.0 on my ConoHa VPS. Fortunately, ConoHa prepared a FreeBSD 10.0 image to make installation easy. In this installation, I enabled virtio and Root-on-ZFS. ConoHa allows us to use virtio by default. Automatic Root-on-ZFS is one of the features of FreeBSD 10.0. Before 10.0, we had troubles in setting Root-on-ZFS. Now, several results for commands/experiments are shown below. Benchmark for virtio Notice: there is no result when</description>
    </item>
    <item>
      <title>[Kinesis] Advantage USB Contoured Keyboard 購入記 （発送から到着まで）</title>
      <link>https://blog.aoimotoya.net/2010/12/22/kinesis-arrival/</link>
      <pubDate>Tue, 21 Dec 2010 15:00:51 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/12/22/kinesis-arrival/</guid>
      <description>※2012/08/08 追記 サーバトラブルのため，掲載していた画像を紛失してしまいました．よって，不完全な記事となっています． 12/20 に無事に荷物を</description>
    </item>
    <item>
      <title>[Kinesis] Advantage USB Contoured Keyboard 購入記 （注文から発送まで）</title>
      <link>https://blog.aoimotoya.net/2010/12/16/kinesis-order/</link>
      <pubDate>Wed, 15 Dec 2010 15:00:14 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/12/16/kinesis-order/</guid>
      <description>※2012/08/08 追記 サーバトラブルのため，掲載していた画像を紛失してしまいました．よって，不完全な記事となっています． エルゴノミックデ</description>
    </item>
    <item>
      <title>[Ubuntu 10.04 LTS] サービスの起動と停止</title>
      <link>https://blog.aoimotoya.net/2010/05/14/sysv-rc-conf/</link>
      <pubDate>Thu, 13 May 2010 15:00:13 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/05/14/sysv-rc-conf/</guid>
      <description>Ubuntu で chkconfig コマンドを打ったところ，そんなコマンドは存在しないとのこと．そこで， chkconfig の代わりとなる sysv-rc-conf を導入する． sysv-rc-conf のインストール $ sudo apt-get install sysv-rc-conf sysv-rc-conf の使い方</description>
    </item>
    <item>
      <title>[CentOS 5.4] DLNA サーバ構築</title>
      <link>https://blog.aoimotoya.net/2010/03/31/mediatomb/</link>
      <pubDate>Tue, 30 Mar 2010 15:00:35 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/03/31/mediatomb/</guid>
      <description>MediaTomb を導入して DLNA サーバを構築する． MediaTomb のインストール # wget http://downloads.sourceforge.net/mediatomb/mediatomb-0.11.0.tar.gz # tar zxvf mediatomb-0.11.0.tar.gz # cp mediatomb-0.11.0/mediatomb.spec /usr/src/redhat/SPECS/ # cp mediatomb-0.11.0.tar.gz /usr/src/redhat/SOURCES/ # vi /usr/src/redhat/SPECS/mediatomb.spec BuildRequires: sqlite-devel, mysql-devel, libexif-devel, taglib-devel, file, js-devel, zlib-devel, expat-devel # rpmbuild -bb --clean /usr/src/redhat/SPECS/mediatomb.spec エラー: ビルド依存性の失敗:</description>
    </item>
    <item>
      <title>[CentOS 5.4] yum に RPMforge を登録する</title>
      <link>https://blog.aoimotoya.net/2010/02/27/rpmforge/</link>
      <pubDate>Fri, 26 Feb 2010 15:00:33 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/02/27/rpmforge/</guid>
      <description>yum に RPMforge リポジトリを登録する． wiki の手順通りに進めて問題なく導入完了した． RPMforge リポジトリの登録 # wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm # rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt # rpm -K rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm # rpm -ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm # yum check-update # rm -f rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm 設定 普段</description>
    </item>
    <item>
      <title>[CentOS 5.4] ファイルサーバ構築</title>
      <link>https://blog.aoimotoya.net/2010/01/24/samba/</link>
      <pubDate>Sat, 23 Jan 2010 15:00:03 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/01/24/samba/</guid>
      <description>Samba を導入して Windows 用のファイルサーバを構築する． Samba のインストール # yum install samba Samba アクセスユーザの設定 # pdbedit -a username new password: retype new password: ホームディレクトリと共有ディレク</description>
    </item>
    <item>
      <title>[CentOS 5.4] ソフトウェア RAID 構築</title>
      <link>https://blog.aoimotoya.net/2010/01/17/raid/</link>
      <pubDate>Sat, 16 Jan 2010 15:00:22 +0000</pubDate>
      <guid>https://blog.aoimotoya.net/2010/01/17/raid/</guid>
      <description>倉庫用に HDD を 2 台追加し，ソフトウェア RAID1 で運用する．追加した 2 台は， /dev/sdb および /dev/sdc として認識されている． RAID 用パーティション作成 # fdisk /dev/sdb このディスクの</description>
    </item>
  </channel>
</rss>
