- AWSのEC2上でRails+Unicorn+Nginxを実現する
- OSはAmazon Linux AMIを使用する
sudo yum -y install gcc
sudo yum -y install make
sudo yum -y install gcc-c++
require 'find' | |
source = ARGV[0] | |
destination = ARGV[1] | |
print "Source = #{source}\n" | |
print "Destination = #{destination}\n" | |
files = {} | |
match_keys = [] |
# # your config.ru | |
# require 'unicorn_killer' | |
# use UnicornKiller::MaxRequests, 1000 | |
# use UnicornKiller::Oom, 400 * 1024 | |
module UnicornKiller | |
module Kill | |
def quit | |
sec = (Time.now - @process_start).to_i | |
warn "#{self.class} send SIGQUIT (pid: #{Process.pid})\talive: #{sec} sec" |
diff --git configure.ac configure.ac | |
index 62f53a3..850eaa4 100644 | |
--- configure.ac | |
+++ configure.ac | |
@@ -1571,7 +1571,7 @@ if test "${HAVE_NS}" = yes; then | |
leimdir="\${ns_appresdir}/leim" | |
INSTALL_ARCH_INDEP_EXTRA= | |
fi | |
- NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" | |
+ NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o macim.o" |
Doorkeeper の API
http://www.doorkeeperhq.com/developer/api
イベントを検索したりはできるみたい。
どうやってAPIをたたくか。
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import csv | |
import codecs | |
import numpy as np | |
import MeCab | |
from sklearn.feature_extraction.text import TfidfVectorizer | |
from sklearn.cluster import KMeans, MiniBatchKMeans |
EMACS_VER=24.3 | |
curl -O http://ftp.gnu.org/pub/gnu/emacs/emacs-${EMACS_VER}.tar.gz | |
curl -O https://gist.github.com/anonymous/8553178/raw/c0ddb67b6e92da35a815d3465c633e036df1a105/emacs.memory.leak.aka.distnoted.patch.diff | |
svn co http://svn.sourceforge.jp/svnroot/macemacsjp/inline_patch/trunk inline_patch | |
tar xvfz emacs-${EMACS_VER}.tar.gz | |
cd emacs-${EMACS_VER} |
# sshd+nginx | |
# | |
# VERSION 0.0.1 | |
FROM ubuntu | |
RUN apt-get update | |
# sshd | |
RUN apt-get install -y openssh-server |
using UnityEngine; | |
using System.Collections; | |
public class AudioManager : SingletonMonoBehaviour<AudioManager> { | |
AudioClip bgm_Game; | |
AudioClip se_Tanpopo; | |
private const int source_bgm_Game = 0; | |
private const int maxAudio = 10; |