Skip to content

Instantly share code, notes, and snippets.

https://www.google.co.jp/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=icheck+onclick
@katsuobushiFPGA
katsuobushiFPGA / .htaccess
Last active April 15, 2017 01:24
.htaccessに関するメモ
###CakePHPで一部だけコントロール下にしたい
- httpdocs (ドキュメントルート)
- a
-index.html
- b
-index.html
- c
-index.html
- d
レプリケーション参考用メモ
MySQLでMaster-Slave構成のレプリケーション設定
http://qiita.com/ksugawara61/items/fdd5ae9b78931540887f
MySQL入門 レプリケーション編
http://qiita.com/Tocyuki/items/c224cef57493f536a941
レプリケーション設定手順
https://blog.apar.jp/linux/3163/
1.AWSのセキュリティグループ インバウンド属性に 3306を許可していない。(RDSと連携できないはず)
->nmapして確かめる。
nmap でポートスキャンしたときに、3306が出てこなければたぶんこれ。
2.app.phpのport番号が不要?
->ありえない
上記でない場合、home.ctpをコピーして動作させる。
RDSのインバウンド許可がされていない
<?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)
<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));
<?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;
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 )
}
}
#-----------------------------
#-------User Settings---------
#-----------------------------
#補完機能
autoload -U compinit
compinit
export LANG=ja_JP.UTF-8
#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 {