Macでいろんなスクリプトの実行を行う際の管理ツールとして、Jenkinsを使ってみることにしたのでメモ。
Jenkinsは普通に、homebrewにいるので、homebrewからインストールする。
ちなみに、オフィシャルサイトにいけばOS X用パッケージファイルもある。
$ brew install jenkins
// ==UserScript== | |
// @name nicoLiveTweet | |
// @namespace http://nicolivemac.wordpress.com/ | |
// @description ニコ生お知らせTwitterボタン | |
// @include http://live.nicovideo.jp/watch/lv* | |
// ==/UserScript== | |
(function(){ | |
// 設定 |
## Level 8 | |
# https://www.bloc.io/ruby-warrior/#/warriors/53460/levels/8 | |
## Level 9 | |
# https://www.bloc.io/ruby-warrior/#/warriors/53460/levels/9 | |
class Player | |
def initialize | |
@maxhealth = 20 | |
@previous_health = @maxhealth | |
@previous_damage = nil |
$ rails g h_o_g_e:config |
CONFIGURE_OPTS="--enable-shared --with-openssl-dir=/usr/local/opt/openssl --with-readline-dir=/usr/local/opt/readline" rbenv install 1.9.3-p362 |
#!ruby | |
#coding: utf-8 | |
class Test | |
def self.test | |
'top Test.test' | |
end | |
end | |
module A |
$ osascript -e ' | |
on run argv | |
set applicationName to item 1 of argv | |
tell application "System Events" | |
set mystatus to exists of application process applicationName | |
return mystatus | |
end tell | |
end run' CotEditor | |
true |
Macでいろんなスクリプトの実行を行う際の管理ツールとして、Jenkinsを使ってみることにしたのでメモ。
Jenkinsは普通に、homebrewにいるので、homebrewからインストールする。
ちなみに、オフィシャルサイトにいけばOS X用パッケージファイルもある。
$ brew install jenkins
# -*- coding: utf-8 -*- | |
require_relative 'twitterbot' | |
Twitter.configure {|config| | |
config.consumer_key = 'consumer key' | |
config.consumer_secret = 'consumer secret' | |
config.oauth_token = 'oauth token' | |
config.oauth_token_secret = 'oauth token secret' | |
} |
MY_GROUP="" | |
if [ "$MY_GROUP" = "" ] ; then | |
echo '!!! undefined variable MY_GROUP.' | |
echo '!!!' | |
echo '!!! ex.) MY_GROUP=staff' | |
echo '!!!' | |
exit 1 | |
fi | |
cd /usr/local |