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 | |
// 비대칭 알고리듬인 RSA를 사용하여 문자열을 암호화하는 법. | |
// 개인키 비밀번호는 암호화할 때는 필요없고 복호화할 때만 입력하면 되므로 | |
// 서버에 저장할 필요 없이 그때그때 관리자가 입력하도록 해도 된다. | |
// PHP 5.2 이상, openssl 모듈이 필요하다. | |
// RSA 개인키, 공개키 조합을 생성한다. | |
// 키 생성에는 시간이 많이 걸리므로, 한 번만 생성하여 저장해 두고 사용하면 된다. | |
// 단, 비밀번호는 개인키를 사용할 때마다 필요하다. |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------- | |
| DATABASE CONNECTIVITY SETTINGS | |
| ------------------------------------------------------------------- | |
| This file will contain the settings needed to access your database. | |
| | |
| For complete instructions please consult the 'Database Connection' | |
| page of the User Guide. |
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
-- phpMyAdmin SQL Dump | |
-- version 4.5.4.1deb2ubuntu2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- 생성 시간: 17-10-31 00:02 | |
-- 서버 버전: 5.7.19-0ubuntu0.16.04.1 | |
-- PHP 버전: 7.0.22-0ubuntu0.16.04.1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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
import logging | |
import datetime | |
date_string = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
logging.basicConfig( | |
level=logging.INFO, | |
format='%(asctime)s [%(levelname)s] %(message)s', | |
handlers=[ | |
logging.FileHandler("./{0}/{1}.log".format('log', 'projectname_' + date_string)), |
![catv1.jpg](https://gist.github.com/dryrain39/4c29d599b9d8ac8bcc63ac4166056d04/raw/784bbe74960c9cf2f9d96fdbc7a663cca884718e/catv1.jpg)
I hereby claim:
- I am dryrain39 on github.
- I am dryrain39 (https://keybase.io/dryrain39) on keybase.
- I have a public key ASBr8uBKWbCB00FUNw2s7TIuKJ8uaV6mTCA-KyhuNMJOtQo
To claim this, I am signing this object:
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
jar { | |
manifest { | |
attributes("Manifest-Version": "1.0", | |
"Main-Class": "your.package.name.HelloWorldApplication"); | |
} | |
} | |
task fatJar(type: Jar) { | |
manifest.from jar.manifest | |
classifier = 'all' |