Skip to content

Instantly share code, notes, and snippets.

❤️
Happy

tinyjin tinyjin

❤️
Happy
Block or report user

Report or block tinyjin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tinyjin
tinyjin / nginx.conf
Created Apr 18, 2019
범용 Nginx SSL 설정 파일 > /etc/nginx/conf.d 에 nginx.conf 로 저장 > <도메인> 부분을 현재 쓰는 실제 도메인으로 변경
View nginx.conf
server {
listen 80;
server_name <도메인>;
return 301 https://$host$request_uri;
}
server {
listen 443;
server_name <도메인>;
View genius-editor-extension
"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 Nov 1, 2018
Dockerfile for nodejs
View Dockerfile
FROM node:latest
MAINTAINER Jinui You <baram991103@gmail.com>
RUN mkdir -p /app
WORKDIR /app
ADD . /app
@tinyjin
tinyjin / nginx.conf
Last active Jan 20, 2019
/etc/nginx/conf.d/default.conf for Docker
View nginx.conf
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 Jan 21, 2019
docker-compose file for Nginx, Node JS, MariaDB
View docker-compose-yml
version: "2.2"
services:
was:
environment:
- NODE_ENV=development
working_dir: /app
image: node
ports:
- "8888:8888"
@tinyjin
tinyjin / pre-commit
Created Oct 17, 2018
pre-commit-trost
View pre-commit
# 커밋 인덱스를 기반으로 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 Sep 4, 2018
The webpack.config.js example for using HTML/CSS/JS web app.
View webpack.basic.config.js
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 Sep 4, 2018
basic node package.json example for using webpack project.
View webpack-basic-package.json
{
"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 Aug 8, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:42ffc25ecc7c248c3863ad5bd260b309

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:
You can’t perform that action at this time.