#Cocoapods
##kiwi
target :TargetTests, :exclusive => true do
pod 'Kiwi'
end
TargetTestsの箇所は、該当のTarget名
var http = require('http'); | |
server = http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end('Hello World\n'); | |
req.socket.end(); | |
}); | |
server.on('connection', function(socket) { | |
server.close(); | |
}); |
#Cocoapods
##kiwi
target :TargetTests, :exclusive => true do
pod 'Kiwi'
end
TargetTestsの箇所は、該当のTarget名
# 少し凝った zshrc | |
######################################## | |
# 環境変数 | |
export LANG=ja_JP.UTF-8 | |
# 色を使用出来るようにする | |
autoload -Uz colors | |
colors |
iOS8での通知関連の変更について, WWDC2014, また以後公開されているリファレンスによる情報をまとめた.
iOS8から変わる点はおおきくわけると以下の3つになる.
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# change default provider to digital_ocean | |
ENV['VAGRANT_DEFAULT_PROVIDER'] = "aws" | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
http://www.selfsignedcertificate.com/ |
#!/bin/sh | |
# | |
# chkconfig: - 89 11 | |
# description: serf daemon | |
# processname: serf | |
# config: /etc/serf/serf.conf | |
# Default-Start: | |
# Default-Stop: 0 1 2 3 4 5 6 | |
# Description: serf agent daemon |
#!/bin/sh | |
selfId=$(curl http://169.254.169.254/latest/meta-data/instance-id) | |
allocIds=$(aws ec2 describe-addresses | jq '[.Addresses[] | select(.AssociationId == null) | .AllocationId]') | |
allocLen=$(echo ${allocIds} | jq length) | |
if [ "${allocLen}" -eq 0 ]; then | |
echo 'Allocation address not found' 1>&2 | |
exit 2 |
#!/bin/sh | |
yum -y install httpd php mysql php-mysql | |
chkconfig httpd on | |
service httpd start | |
cd /tmp | |
wget http://us-east-1-aws-training.s3.amazonaws.com/self-paced-lab-4/examplefiles-as.zip | |
unzip examplefiles-as.zip | |
mv examplefiles-as/* /var/www/html |