Skip to content

Instantly share code, notes, and snippets.

View seaofnight's full-sized avatar

kim youngjin seaofnight

  • 경기도 용인시 어딘가에 거주함.
View GitHub Profile
@seaofnight
seaofnight / check.sh
Created May 3, 2019 04:06
ping, host alive check script
# ping check
ping 192.168.0.1 -c 1
# host alive check
PASSWORD=abcdefg
sshpass -p $PASSWORD ssh -o StrictHostKeyChecking=no root@192.168.0.1 hostname
# output
# hostname
@seaofnight
seaofnight / install.sh
Created November 15, 2018 12:21
zabbix-docker install centos 7.x
yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
MYSQL_USER="root"
MYSQL_CONTAINER_NAME="mysql"
MYSQL_ROOT_PASSWORD="root"
MYSQL_PASSWORD="root"
@seaofnight
seaofnight / install-stress-ng.sh
Created November 13, 2018 10:14
stress-function-test
#!/bin/bash
yum -y install git || apt-get install git
yum -y groupinstall 'Development Tools' || apt-get install build-essential git
cd /tmp
git clone git://kernel.ubuntu.com/cking/stress-ng.git
cd stress-ng
make
cp stress-ng /usr/bin
rm -rf /tmp/stress-*
@seaofnight
seaofnight / grid_constrant.js
Last active October 21, 2016 03:47
kendo grid configuration
var column_options = kendo.data.Model.define({
fields : {
aggregates : { type: "object", editable : true },
columns : { type: "object", editable : true },
groupable : { type: "object", editable : true },
editor : { type: "object", editable : true },
field : { type: "string", editable : true },
filterable: { type: "object", editable : true , defaultValue : true } ,
format : { type: "string", editable : true },
@seaofnight
seaofnight / index.html
Created October 12, 2016 00:35
Kendo UI Theme builder
<!DOCTYPE html>
<html class="k-material">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>HTML5 and JavaScript widgets integrated with AngularJS | Kendo UI Demos</title>
<link href='//fonts.googleapis.com/css?family=Roboto+Slab:400,700' rel='stylesheet'>
<link rel="shortcut icon" href="/kendo-ui/favicon.ico"/>
@seaofnight
seaofnight / index.html
Last active October 11, 2016 06:59
kendo ui window example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Kendo UI window Example</title>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.3.914/styles/kendo.common.min.css"/>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.3.914/styles/kendo.rtl.min.css"/>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.3.914/styles/kendo.silver.min.css"/>
<link rel="stylesheet" href="//kendo.cdn.telerik.com/2016.3.914/styles/kendo.mobile.all.min.css"/>
@seaofnight
seaofnight / categories.js
Last active October 7, 2016 08:16
kendo_grid_example
var categories = [{
CategoryID : 1,
CategoryName : "Beverages",
Description : "Soft drinks, coffees, teas, beers, and ales"
}
,{
CategoryID : 2,
CategoryName : "Condiments",
Description : "Sweet and savory sauces, relishes, spreads, and seasonings"
},

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

**Markdown**은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점

@seaofnight
seaofnight / context-test-mail
Created May 27, 2016 08:19
Spring Mail Util
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.2.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd">
@seaofnight
seaofnight / mvn
Created June 11, 2015 03:52
maven add local respoitory
mvn install:install-file -Dfile=D:\+Dev\workspace\lucy-nclavis-2.5.0.jar -DgroupId=com.nhncorp.lucy -DartifactId=lucy-nclavis -Dversion=2.5.0 -Dpackaging=jar -DgeneratePom=true