Skip to content

Instantly share code, notes, and snippets.

@tinyjin
tinyjin / nginx.conf
Created April 18, 2019 03:04
범용 Nginx SSL 설정 파일 > /etc/nginx/conf.d 에 nginx.conf 로 저장 > <도메인> 부분을 현재 쓰는 실제 도메인으로 변경
server {
listen 80;
server_name <도메인>;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name <도메인>;
"use strict";var A=document.querySelectorAll("iframe");var M;for(var b=0,i=A.length;b<i;b+=1){var c=A[b];if(c.id.match(new RegExp("input_buffer(.+)[0-9]"))){M=A[b];break}}var I=document.querySelector(".se-components-wrap");var l=[];var e=false;var m=function m(A){I.querySelectorAll("p.se-text-paragraph").forEach(function(A,b){if(l.indexOf(A)==-1&&l.length>0){N()}l.push(A)})};I.addEventListener("DOMSubtreeModified",m);var t=M.contentWindow.document.querySelector("#inputBuffer");t.oninput=function(A){var b=A.target.textContent;if(b==="```"){z()}};t.onkeydown=function(A){var b=A.target.textContent;var i=A.keyCode;if(i===191&&!A.shiftKey||b.endsWith("/")&&!e){var l=1e4;var m=1e4;var c=I.querySelectorAll("p.se-text-paragraph");c.forEach(function(A,b){if(b===0)return;var i=document.querySelectorAll(".se-caret")[1].getClientRects()[0].top+6;if(A.getClientRects().length<1)return;var c=A.getClientRects()[0].top;var I=Math.abs(i-c);if(I<l){l=I;m=b}});if(c[m]){c[m].querySelector("span").textContent="".concat(c[m].queryS
@tinyjin
tinyjin / Dockerfile
Created November 1, 2018 00:49
Dockerfile for nodejs
FROM node:latest
MAINTAINER Jinui You <baram991103@gmail.com>
RUN mkdir -p /app
WORKDIR /app
ADD . /app
@tinyjin
tinyjin / nginx.conf
Last active January 20, 2019 05:56
/etc/nginx/conf.d/default.conf for Docker
server {
listen 80 default_server;
listen [::]:80 default_server;
client_max_body_size 1024M;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html index.php;
@tinyjin
tinyjin / docker-compose-yml
Last active January 21, 2019 03:33
docker-compose file for Nginx, Node JS, MariaDB
version: "2.2"
services:
was:
environment:
- NODE_ENV=development
working_dir: /app
image: node
ports:
- "8888:8888"
@tinyjin
tinyjin / pre-commit
Created October 17, 2018 08:51
pre-commit-trost
# 커밋 인덱스를 기반으로 eslint 검사 대상 파일 배열 생성
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".js$")
# 경우에 따라 커밋 허용/거부 플래그 변수
PASS=true
# 커밋할 파일이 없으면 그냥 종료
if [ "$STAGED_FILES" -eq "" ]; then
exit 0
fi
@tinyjin
tinyjin / webpack.basic.config.js
Created September 4, 2018 00:37
The webpack.config.js example for using HTML/CSS/JS web app.
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
main: './scripts/app.js',
},
output: {
filename: 'bundle.[name].js',
path: path.resolve(__dirname, './')
@tinyjin
tinyjin / webpack-basic-package.json
Last active September 4, 2018 00:32
basic node package.json example for using webpack project.
{
"name": "<Your Project Name>",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "webpack-dev-server --open --progress --port 3000",
"build": "webpack"
},
"keywords": [],
@tinyjin
tinyjin / gist:42ffc25ecc7c248c3863ad5bd260b309
Created August 8, 2018 00:47 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: