DELAEMON BLOG

Live as if you were to die tomorrow. Learn as if you were to live forever.

2016-01-01から1年間の記事一覧

Nodejs Jest CiecleCI

課題 CricleCIでReactjs + Jest でテストを実行していたら、最近になってメモリの制限にひっかかって失敗するようになった。 原因 CircleCI の ビルドに割り当てられる最大メモリ容量は4GB Your build hit the 4G memory limit - CircleCIテストフレームワー…

redis3.2@Fedora22

環境 OS: Fedora22 概要 dnsコマンドではredis2.8がinstallされるので、redis3.2を手動でビルド 手順 1. ソースをダウンロード % wget http://download.redis.io/releases/redis-3.2.5.tar.gz % tar xvzf redis-3.2.5.tar.gz % cd redis-3.2.5/ README.mdよ…

Hugo SSL/TLS(Let's Encrypt) Renew

Systemdで動かしている Hugo サイトのSSL/TLS(Let's Encrypt)を更新した。更新しようとしたらエラー $ ./certbot-auto renew Requesting root privileges to run certbot... /home/dela/.local/share/letsencrypt/bin/letsencrypt renew -------------------…

AWS Certified Solution Architect Associate 対策

1軍サービス 制限、実践的な構成、トラブルシーティングなど詳細に把握しておく必要あり VPC (Multi-AZ, Internet Gateway, Route Table, NetworkACL, Security Group) IAM EC2 (+ Auto Scaling) EBS S3 CloudFront Route53 2軍サービス サービス概要・基本…

http/2@Hugo & Let's Encrypt

Let's Encryptで発行した証明書を使って、GolangのHugoで動いてるWebサイトをhttp/2にする 環境 OS: Fedora22 Go: 1.6.2 準備 firewalldのhttps/443番ポートを有効にしておく $ sudo firewall-cmd --list-all $ sudo firewall-cmd --permanent --add-service…

curl HTTP/2@Mac

HTTP/2用サーバーを立てるなら、debug用途でcurlでもHTTP/2を使いたい。環境: OS X EI Capitan 10.11.3普通にやると $ curl -I google.com HTTP/1.1 302 Found Cache-Control: private Content-Type: text/html; charset=UTF-8 Location: http://www.google.…

Mac OSX EI Capitan Wifi Commands

Mac Bookのネットワーク接続(Wifi/Proxy)をターミナルからコマンドから操作したい。 OS version OS X EI Capitan Wifiの操作 # On $ networksetup -setairportpower en0 on # Off $ networksetup -setairportpower en0 off # Info $ networksetup -getairpor…

LLVM build on Fedora23(VirtualBox)

VirtualBox上のFedora23でLLVMをビルドした。 インストール手順 1. 必要パッケージをインストール $ sudo dnf install make gcc-c++ texinfo m4 autoconf automake libtool graphviz python-xdot 2. ソースコードをダウンロード・解凍・配置 $ mkdir llvm $ …

Clojure Leiningen

Clojureことはじめ"Leiningen is the easiest way to use Clojure. With a focus on project automation and declarative configuration, it gets out of your way and lets you focus on your code." Leiningenleiningen をインストール $ brew install lei…

valgrind on Fedora22

Valgrind is an instrumentation framework for building dynamic analysis tools. Valgrind Homeインストール $ sudo dnf install valgrind メモリリーク検出 $ valgrind --leak-check=full ./fib ==4784== Memcheck, a memory error detector ==4784== Co…

perf on Fedora22

perf: Linux profiling with performance counters Perf Wikiインストール $ sudo dnf isntall perf てきとうなコードを用意 $ gcc fib.c -o fib イベント数を取得 $ perf stat ./fib 832040 failed to read counter stalled-cycles-frontend failed to read…

Build coreutils on Fedora22

Fedora22上にcoreutilsをビルドする。コードを用意して、./bootstrapを実行すると、必要なパッケージがわかる git clone git@github.com:coreutils/coreutils.git cd coreutils ./bootstrap ./bootstrap: line 424: autoconf: command not found ./bootstrap…

nginx build form source on Fedora23 Server (OSX VirtualBox)

OSX VirtualBox上のまっさらなFedora23Serverにnginxをsourceからビルド 最短距離 $ sudo dnf install git gcc pcre-devel zlib-devel openssl-devel $ git clone https://github.com/nginx/nginx.git $ cd nginx $ ./auto/configure --with-openssl=/usr/li…