start new:
tmux
start new with session name:
tmux new -s myname
$ cat .tmux.conf | |
## UTF-8を用いるかどうかはロケールから自動検出される(必要のある場合のみ指定) | |
#set-window-option -g utf8 on | |
#set-option -g status-utf8 on | |
## 既定のPrefixキー(Ctrl+b)の割り当てを解除 | |
unbind-key C-b | |
## Ctrl+jをPrefixキーにする | |
set-option -g prefix C-j | |
bind-key C-j send-prefix |
http://nginx.org/en/docs/http/configuring_https_servers.html
http://nginx.org/ja/docs/http/configuring_https_servers.html
default_serverは対象のポートに対して有効だから
下記のようにポート毎にデフォルトサーバを指定できる。
server {
/** | |
* VH and VW units can cause issues on iOS devices: http://caniuse.com/#feat=viewport-units | |
* | |
* To overcome this, create media queries that target the width, height, and orientation of iOS devices. | |
* It isn't optimal, but there is really no other way to solve the problem. In this example, I am fixing | |
* the height of element `.foo` —which is a full width and height cover image. | |
* | |
* iOS Resolution Quick Reference: http://www.iosres.com/ | |
*/ | |
{% assign work_items = site.work_items | sort: 'date' | reverse %} | |
{% for work_item in work_items limit:4 %} | |
<div> | |
<a href="{{ work_item.url | prepend: site.baseurl }}">{{ work_item.title }}</a> | |
</div> | |
{% endfor %} |
There are two types of markup in Liquid: Output and Tag.
{{ matched pairs of curly brackets (ie, braces) }}
# Generate and use an oauth2 bearer token for the Twitter API in Ruby | |
# | |
# For Application-Only authentication to the twitter API, a 'bearer token' | |
# is required to authenticate agains their endpoints for rate limiting | |
# purposes. | |
# | |
# This script generates a bearer token by posting to twitter and then it | |
# uses that token to poll their API. | |
# | |
# Note, the base 64 encoded consumer credentials for the bearer token needs |