This file contains 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
https://www.google.co.jp/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=icheck+onclick |
This file contains 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
###CakePHPで一部だけコントロール下にしたい | |
- httpdocs (ドキュメントルート) | |
- a | |
-index.html | |
- b | |
-index.html | |
- c | |
-index.html | |
- d |
This file contains 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
レプリケーション参考用メモ | |
MySQLでMaster-Slave構成のレプリケーション設定 | |
http://qiita.com/ksugawara61/items/fdd5ae9b78931540887f | |
MySQL入門 レプリケーション編 | |
http://qiita.com/Tocyuki/items/c224cef57493f536a941 | |
レプリケーション設定手順 | |
https://blog.apar.jp/linux/3163/ |
This file contains 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
1.AWSのセキュリティグループ インバウンド属性に 3306を許可していない。(RDSと連携できないはず) | |
->nmapして確かめる。 | |
nmap でポートスキャンしたときに、3306が出てこなければたぶんこれ。 | |
2.app.phpのport番号が不要? | |
->ありえない | |
上記でない場合、home.ctpをコピーして動作させる。 | |
RDSのインバウンド許可がされていない |
This file contains 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
<?php | |
/** | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License | |
* For full copyright and license information, please see the LICENSE.txt | |
* Redistributions of files must retain the above copyright notice. | |
* | |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
This file contains 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
<html> | |
<head> | |
<title>アップロードフォーム</title> | |
<script src="jquery-3.1.1.min.js"></script> | |
<script type="text/javascript"> | |
function file_upload() | |
{ | |
console.log("test"); | |
// フォームデータを取得 | |
var formdata = new FormData($('#my_form').get(0)); |
This file contains 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
<?php | |
//entity class | |
// src/Model/Entity/Article.php | |
namespace App\Model\Entity; | |
use Cake\ORM\Entity; | |
class Article extends Entity | |
{ | |
} | |
//entity create | |
use App\Model\Entity\Article; |
This file contains 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
object Main extends App{ | |
val str = "EBG KVVV vf n fvzcyr yrggre fhofgvghgvba pvcure gung ercynprf n yrggre jvgu gur yrggre KVVV yrggref nsgre vg va gur nycunorg. EBG KVVV vf na rknzcyr bs gur Pnrfne pvcure, qrirybcrq va napvrag Ebzr. Synt vf SYNTFjmtkOWFNZdjkkNH. Vafreg na haqrefpber vzzrqvngryl nsgre SYNT." | |
val flag = "FLAG" | |
for(i <- 0 until 26) { | |
if(str.contains(cipher(flag,i)) ) { | |
println(cipher(flag,i)) | |
println("key:" + i ) | |
} | |
} |
This file contains 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
#----------------------------- | |
#-------User Settings--------- | |
#----------------------------- | |
#補完機能 | |
autoload -U compinit | |
compinit | |
export LANG=ja_JP.UTF-8 |
This file contains 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
#pragma once | |
#pragma warning(disable: 4996) | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define N 100 | |
#define DISP(ary) for(int i=0;i<N;i++)printf("%d",ary[i]); | |
#define DISPRES(ary) for(int i=0;i<N*N;i++)printf("%c",ary[i]); | |
struct point { |