Skip to content

Instantly share code, notes, and snippets.

@jonnung
jonnung / Dockerfile_mongodb_replset
Last active July 1, 2022 03:14
도커로 스탠드얼론 MongoDB 컨테이너를 ReplSet으로 설정하기
From mongo:4.4
WORKDIR .
COPY initiateReplSet.js ./docker-entrypoint-initdb.d/
CMD ["-replSet", "rs0"]
@jonnung
jonnung / barapp_with_loadbalancer_service.yaml
Last active April 5, 2021 15:53
MacOS 환경에서 Kind로 설치한 Kubernetes 클러스터에 Istio 설치 및 BookInfo 애플리케이션 실습
# Metallb 설치 후 Loadbalancer 타입의 Service 접근이 가능한 지 테스트하기 위한 샘플 POD와 Service
kind: Pod
apiVersion: v1
metadata:
name: bar-app
labels:
app: http-echo
spec:
containers:
- name: bar-app
@jonnung
jonnung / # python - 2018-04-09_11-15-24.txt
Created August 7, 2018 01:33
python on macOS 10.12.5 - Homebrew build logs
Homebrew build logs for python on macOS 10.12.5
Build date: 2018-04-09 11:15:24
@jonnung
jonnung / example.js
Last active April 27, 2016 09:28
[DalkStudy] react-webpack-starter-example.js
var React = require('react');
var ReactDOM = require('react-dom');
var RandomMessage = React.createClass({
getInitialState: function () {
return { message: "Hello, React!" };
},
onClick: function () {
var messages = ['Hello, DalkStudy', 'Hello, Jonnung', 'Hello, Gaerae'];
var randomMessage = messages[Math.floor(Math.random() * 3)];
@jonnung
jonnung / webpack.config.js
Created April 27, 2016 08:08
[DalkStudy] webpack.config.js
module.exports = {
entry: {
app: './src/app.js'
},
output: {
path: __dirname + '/dist',
publicPath: "/assets/",
filename: '[name].bundle.js'
},
devServer: {
@jonnung
jonnung / react-webpack-module-require.js
Last active April 28, 2016 01:36
[DalkStudy] React를 모듈로 불러오기 (CommonJS st.)
// CommonJS style
var React = require('react');
var ReactDOM = require('react-dom');
var Greeting = React.createClass({
render: function () {
return (
<p> Hello, Dalk Study</p>
);
}
@jonnung
jonnung / react-quick-start.html
Last active April 26, 2016 15:09
[DalkStudy] React Quick Start
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First React Example</title>
</head>
<body>
<div id="greeting-div"></div>
<script src="https://fb.me/react-15.0.0.js"></script>
<script src="https://fb.me/react-dom-15.0.0.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<title>My First React Example</title>
</head>
<body>
<div id="greeting-div"></div>
<script src="https://fb.me/react-15.0.0.js"></script>
<script src="https://fb.me/react-dom-15.0.0.js"></script>
@jonnung
jonnung / k-means_clustering.ipynb
Last active September 3, 2015 09:13
K-Means_Clustering
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonnung
jonnung / AutoloadClass.php
Created May 19, 2015 02:15
Composer 없이 PSR-4로 Autoload 구현하기
<?php
namespace Moveopn\Vendor\Autoload;
/**
* An example of a general-purpose implementation that includes the optional
* functionality of allowing multiple base directories for a single namespace
* prefix.
*
* Given a foo-bar package of classes in the file system at the following
* paths ...