Skip to content

Instantly share code, notes, and snippets.

import java.io.{FileOutputStream, FileInputStream}
import scala.io.StdIn
/**
* Created by YoungJoo on 2015-09-11.
*/
object DrearyDesign extends App {
val path = "D:\\dev\\intellySpace\\ScalaStudy\\"
// Console.setIn(new FileInputStream(path + "testFile"))
@otwm
otwm / ie hack
Created November 10, 2015 10:29
ie hack
/**
* ie 10 - 11 hack
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.verify_wrap2 {
position: relative;
right: -10px;
display: inline-block;
width: 460px;
float: right;
@otwm
otwm / ie hack
Created November 10, 2015 10:30
ie hack
<style type="text/css">
/**
* ie 10 - 11 hack
*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.verify_wrap2 {
position: relative;
right: -10px;
display: inline-block;
width: 460px;
@otwm
otwm / generateSequence.py
Created December 23, 2015 02:11
generate sequence
def generateSequence(end=100,head='MG',fill=17):
for index in range(1,end):
print(head + (index + '').zfill(fill)):
@otwm
otwm / getSqlString.py
Last active December 23, 2015 06:24
sql 파일 생성
import codecs
sql = ""
sql += "merge into tn_year_cust t1 using (select '{year}' year,'{custId}' cust_Id from dual) t2"
sql += " on (t1.year = t2.year and t1.cust_id= t2.cust_id)"
sql += " WHEN MATCHED THEN"
sql += " UPDATE SET"
sql += " SITE_TARGET_YN = '{siteTargetYn}'"
sql += " ,SITE_TARGET_DT = '{siteTargetDt}'"
sql += " ,SITE_COMPLETE_YN = '{siteCompleteYn}'"
@otwm
otwm / touch
Created December 24, 2015 02:10
find ./jsp -exec touch {} \;
@otwm
otwm / build.gradle
Created January 1, 2016 18:17
queryDsl generate by gradle
apply plugin: 'spring-boot'
jar {
baseName = 'core'
version = '0.5.0'
}
sourceSets {
generated {
@otwm
otwm / [ubuntu]hash sum problem fix.txt
Last active March 18, 2016 20:13
[ubuntu]hash sum problem fix
sed -i 's/kr.archive.ubuntu.com/ftp.daum.net/g' /etc/apt/sources.list
@otwm
otwm / sql
Created March 2, 2016 04:18
oracle 만료기간 설정
-- 만료기간 검색
select resource_name, limit from dba_profiles
where profile='DEFAULT'
;
-- 만료기간 무제한 설정
alter profile default limit password_life_time unlimited;
-- 만료 계정 검색
select username,account_status,lock_date,expiry_date from dba_users
@otwm
otwm / sql
Created March 2, 2016 04:20
oracle 계정생성
1. 계정의 테이블 스페이스 생성
create tablespace [tablespace_name]
datafile '/home/oracle/oradata/DANBEE/[file_name].dbf' size 500m;
예)
CREATE TABLESPACE ADMIN DATAFILE 'D:\ORACLE\ORADATA\XE\ADMIN.dbf' SIZE 500M ;
2. 오라클 유저 만들기