\x6d\x65\x6d\x6f\x6e

Git Commit Logの文字化け対応 - Jenkins

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ vi  ~/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>Label</key>
    <string>homebrew.mxcl.jenkins</string>
    <key>ProgramArguments</key>
    <array>
      <string>/usr/bin/java</string>
      <string>-Xmx512m</string> 
      <string>-Dfile.encoding=UTF-8</string>
      <string>-jar</string>
      <string>/usr/local/lib/jenkins.war</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <true/>
  </dict>
</plist>

Display Http Header Using Tshark

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$ sudo tshark -V -R "http.request" -i lo0 port 80 
>>
    [Calculated window size: 81660]
    [Window size scaling factor: 2]
    Checksum: 0xfe28 [validation disabled]
        [Good Checksum: False]
        [Bad Checksum: False]
    Options: (12 bytes)
        No-Operation (NOP)
        No-Operation (NOP)
        Timestamps: TSval 664148220, TSecr 664148220
            Kind: Timestamp (8)
            Length: 10
            Timestamp value: 664148220
            Timestamp echo reply: 664148220
[2 Reassembled TCP Segments (132 bytes): #16(132), #20(0)]
    [Frame: 16, payload: 0-131 (132 bytes)]
    [Frame: 20 (no data)]
    [Segment count: 2]
    [Reassembled TCP length: 132]
Hypertext Transfer Protocol
    POST /data/post HTTP/1.1\r\n
        [Expert Info (Chat/Sequence): POST /data/post HTTP/1.1\r\n]
            [Message: POST /data/post HTTP/1.1\r\n]
            [Severity level: Chat]
            [Group: Sequence]
        Request Method: POST
        Request URI: /data/post
        Request Version: HTTP/1.1
    Accept: */*\r\n
    User-Agent: Ruby\r\n
    Content-Type: multipart/form-data; boundary=myboundary\r\n
    Host: localhost\r\n
    \r\n
    [Full request URI: http://localhost/data/post]

Ranking in Redis Sorted Set

Precondition

Rows : 1,000,000

Score: rand(1..100)

RedisのSorted Setを使用し、Top10と自分を含む前後5人のランキングを表示する

Jenkins-Unity Build Execute Shell for iPhone

Unity3D Plugin, Xcode Plugin, TestFlight Pluginも試したけど、結局shell scriptに落ち着いた。

referrel 【研究課題レポート抜粋】Jenkins+Unityで構築するスマフォアプリビルドサーバー

Reinstall Rvm

reinstall rvm

fsevent/fsevent_watch.c:1:10: fatal error: ‘stdio.h’ file not found

1
2
3
4
$ vi Gemfile
>>
- gem 'rb-fsevent',
+ gem 'rb-fsevent', :git => 'git://github.com/ttilley/rb-fsevent.git', :branch => 'pre-compiled-gem-one-off'

referrel
https://github.com/thibaudgg/rb-fsevent/issues/20#issuecomment-1814363

Insert DateTime in UTC Time

xxx.el

Upgrade to XCode 4.3

1
2
3
4
5
6
7
8
9
10
// Install OSX 10.7.3
// Install Xcode4.3
// open Xcode4.3 to remove /Developper
$ sudo /Developer/Library/uninstall-devtools --mode=all
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer
$ xcodebuild -version
Xcode 4.3
Build version 4E109