staffグループのユーザーに/usr/local以下の書き込み権限を与えればいい
/etc/bashrc OR /etc/profileの最終行に以下を追加
umask 0002
# frozen_string_literal: true | |
source "https://rubygems.org" | |
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } | |
gem 'jwt' |
package server | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"strings" | |
"sync" | |
"time" | |
) |
diff -urN apimode/.gitignore normal/.gitignore | |
--- apimode/.gitignore 2017-12-13 18:38:46.000000000 +0900 | |
+++ normal/.gitignore 2017-12-13 18:38:57.000000000 +0900 | |
@@ -17,4 +17,7 @@ | |
!/log/.keep | |
!/tmp/.keep | |
+/node_modules | |
+/yarn-error.log | |
+ |
{ | |
"formattingOptions": { | |
"NewLinesForBracesInTypes": false, | |
"NewLinesForBracesInMethods": false, | |
"NewLinesForBracesInProperties": false, | |
"NewLinesForBracesInAccessors": false, | |
"NewLinesForBracesInAnonymousMethods": false, | |
"NewLinesForBracesInControlBlocks": false, | |
"NewLinesForBracesInAnonymousTypes": false, | |
"NewLinesForBracesInObjectCollectionArrayInitializers": false, |
class User | |
attr_accessor :name | |
def initialize(name = '') | |
@name = name | |
end | |
def initWithCoder(decoder) | |
self.init | |
self.name = decoder.decodeObjectForKey('name') |
# Homebrew のインストール | |
# 公式 (http://brew.sh/) に載っているコマンドです | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Ruby のビルドに必要なものをインストール | |
brew install openssl readline rbenv ruby-build # 時間がかかります | |
# rbenv 用の設定を .bash_profile に書き込む | |
echo 'export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl) --with-readline-dir=$(brew --prefix readline) $RUBY_CONFIGURE_OPTS"' >> ~/.bash_profile | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile |
// Packages/User/ApplySyntax.sublime-settings | |
{ | |
// If you want exceptions reraised so you can see them in the console, change this to true. | |
"reraise_exceptions": false, | |
// If you want to have a syntax applied when new files are created, set new_file_syntax to the name of the syntax to use. | |
// The format is exactly the same as "name" in the rules below. For example, if you want to have a new file use | |
// JavaScript syntax, set new_file_syntax to 'JavaScript'. | |
"new_file_syntax": false, |
base_dir = "/var/www/hoge_server" | |
worker_processes 20 | |
working_directory "#{base_dir}/current" | |
shared = "#{base_dir}/shared" | |
listen "#{shared}/tmp/sockets/unicorn.sock" | |
timeout 30 | |
pid "#{shared}/tmp/pids/unicorn.pid" | |
stderr_path "#{shared}/log/unicorn.stderr.log" | |
stdout_path "#{shared}/log/unicorn.stdout.log" |
#!/bin/sh | |
# copy sdk | |
XCODE4=/Applications/Xcode4.app/Contents/Developer | |
XCODE5=/Applications/Xcode.app/Contents/Developer | |
SIM_DIR=Platforms/iPhoneSimulator.platform/Developer/SDKs | |
IOS_DIR=Platforms/iPhoneOS.platform/Developer/SDKs | |
rsync -av ${XCODE4}/${SIM_DIR}/iPhoneSimulator6.1.sdk ${XCODE5}/${SIM_DIR} |