This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Threading; | |
using System.Diagnostics; | |
public class FirstSQLite : MonoBehaviour { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Base VPC Template.", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyAWS::CloudFormation::InitPair to enable SSH access to the instances", | |
"Type": "String", | |
"MinLength": "1", | |
"MaxLength": "64", | |
"AllowedPattern": "[-_ a-zA-Z0-9]*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE DATABASE APP_LOG CHARACTER SET utf8; | |
create table if not exists access_log ( | |
id int(10) NOT NULL AUTO_INCREMENT, | |
code int(10) NOT NULL, | |
path varchar(255) NOT NULL, | |
agent varchar(255) NOT NULL, | |
referer varchar(255) NOT NULL, | |
PRIMARY KEY(id) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
※EC2は構築済み | |
1. apacheいれる | |
# sudo yum update -y | |
# sudo yum install httpd -y | |
# sudo /etc/init.d/httpd start | |
2. td-agentの導入〜起動まで |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "Base VPC Template.", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing EC2 KeyAWS::CloudFormation::InitPair to enable SSH access to the instances", | |
"Type": "String", | |
"MinLength": "1", | |
"MaxLength": "64", | |
"AllowedPattern": "[-_ a-zA-Z0-9]*", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Resources": { | |
"vpc626b7500": { | |
"Type": "AWS::EC2::VPC", | |
"Properties": { | |
"CidrBlock": "10.0.0.0/16", | |
"InstanceTenancy": "default", | |
"EnableDnsSupport": "true", | |
"EnableDnsHostnames": "true" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<source> | |
type tail | |
tag apache.access | |
format apache | |
path /var/log/httpd/access_log | |
pos_file /var/log/httpd/access_log | |
</source> | |
<match apache.access> | |
type s3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using KiiCorp.Cloud.Storage; | |
using KiiCorp.Cloud.Analytics; | |
public class KiiCloudManager : MonoBehaviour { | |
void Awake() | |
{ | |
string deviceID = SystemInfo.deviceUniqueIdentifier; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 子 | |
GameObject child = gameObject.transform.FindChild("GameObjectChild").gameObject; | |
// 孫 | |
GameObject grandSon = gameObject.transform.Find("GameObjectChild/GameObjectGrandSon").gameObject; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
public class testLoad : MonoBehaviour { | |
private string prefabName = "test0001"; | |
// Use this for initialization | |
void Start () { | |
GameObject prefab = Resources.Load(prefabName) as GameObject; |