超雑にまとめました。修正してください。
登場人物
- アプリケーション先輩: いつも忙しい。横に広がるのが得意(デブじゃない)。
- 後輩: 頼んでばっかしで役に立たない。
- サーバー先輩: アプリケーション先輩と仲がいい。Unix Socket でつながるくらい仲良し。
- プロクシ先輩: アプリケーション先輩とかサーバー先輩と後輩の間を取り持って代わりに伝えたりしてくれる。たまに勝手にレスポンスを書き換える。
| # /etc/init.d/dropbox | |
| ### BEGIN INIT INFO | |
| # Provides: dropbox | |
| # Required-Start: $network $syslog $remote_fs | |
| # Required-Stop: $network $syslog $remote_fs | |
| # Should-Start: $named $time | |
| # Should-Stop: $named $time | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start and stop the dropbox daemon for debian/ubuntu |
Ubuntu+Nginx+Unicorn+Rails+Capistrano — Gist
この記事から設定を例として抽出
定義更新する
| #import <UIKit/UIKit.h> | |
| @interface UIImage (BezierPath) | |
| + (UIImage *)imageWithBezierPathFill:(UIBezierPath *)bezierPath; | |
| + (UIImage *)imageWithBezierPathStroke:(UIBezierPath *)bezierPath; | |
| @end |
| #!/bin/bash | |
| LANG=ja_JP.utf8 | |
| pid=$$ | |
| date=`date '+%Y-%m-%d-%H_%M'` | |
| playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
| playerfile="/tmp/player.swf" | |
| keyfile="/tmp/authkey.png" |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; |
| # rubocop v0.35.0 から inherit_gem という機能が増えたので gem にしました | |
| # https://github.com/onk/onkcop | |
| inherit_gem: | |
| onkcop: "config/rubocop.yml" |
| #!/bin/sh | |
| cd ${WORKSPACE} | |
| BRANCH=`echo ${GIT_BRANCH} | cut -d'/' -f2` | |
| git checkout ${BRANCH} | |
| git pull origin ${BRANCH} | |
| git submodule sync > /dev/null && git submodule -i > /dev/null | |
| for FILE in `git diff --name-only ${GIT_PREVIOUS_COMMIT} ${GIT_COMMIT} | grep "py$"`; do |
| # Check these threads before proceeding: | |
| # https://github.com/microsoft/WSL/discussions/5857 | |
| # https://github.com/microsoft/WSL/issues/5821 | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| $CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
| Exit | |
| } | |
| # Restart the Host Network Service | |
| Restart-Service -Force -Name hns |