Skip to content

Instantly share code, notes, and snippets.

@GSByeon
GSByeon / Sublime Text License Key.md
Created October 26, 2015 09:09
Sublime Text 2 License Key, Sublime Text 3 License Key, Sublime Text Full Version.

Sublime Text 2 & 3 License Key, Sublime Text Full Version

Sublime Text License Key

How to activate license key

  1. Go to menu Help > Enter License.
  2. Copy the license key below and paste it into the textbox > Click the Use License button.
  3. Enjoy! ๐Ÿ‘
@GSByeon
GSByeon / korail.py
Created January 31, 2017 12:25 — forked from devxoul/korail.py
[Deprecated] ์ฝ”๋ ˆ์ผ ์Šน์ฐจ๊ถŒ ๊ฒ€์ƒ‰ ๋ฐ ์˜ˆ๋งค ํ”„๋กœ๊ทธ๋žจ. https://github.com/devxoul/korail
# -*- coding: utf-8 -*-
"""
This code won't be updated anymore.
Project has moved to repository: https://github.com/devxoul/korail
"""
import requests
from bs4 import BeautifulSoup
from datetime import datetime
@GSByeon
GSByeon / Graph.java
Created August 29, 2017 08:09 — forked from rpless/Graph.java
Simple Graph Search Example
import java.util.*;
class Graph {
public static void main(String... args) {
Graph graph = new Graph();
graph.addNodes('A', 'B', 'C', 'D' ,'E');
graph.addEdge('A', 'B');
graph.addEdge('A', 'C');
graph.addEdge('B', 'D');
@GSByeon
GSByeon / gist:f90c8e134447d60c54e932e89afb9244
Created May 24, 2018 13:49 — forked from ihoneymon/how-to-write-by-markdown.md
๋งˆํฌ๋‹ค์šด ์‚ฌ์šฉ๋ฒ•

[๊ณตํ†ต] ๋งˆํฌ๋‹ค์šด markdown ์ž‘์„ฑ๋ฒ•

1. ๋งˆํฌ๋‹ค์šด์— ๊ด€ํ•˜์—ฌ

1.1. ๋งˆํฌ๋‹ค์šด์ด๋ž€?

Markdown์€ ํ…์ŠคํŠธ ๊ธฐ๋ฐ˜์˜ ๋งˆํฌ์—…์–ธ์–ด๋กœ 2004๋…„ ์กด๊ทธ๋ฃจ๋ฒ„์— ์˜ํ•ด ๋งŒ๋“ค์–ด์กŒ์œผ๋ฉฐ ์‰ฝ๊ฒŒ ์“ฐ๊ณ  ์ฝ์„ ์ˆ˜ ์žˆ์œผ๋ฉฐ HTML๋กœ ๋ณ€ํ™˜์ด ๊ฐ€๋Šฅํ•˜๋‹ค. ํŠน์ˆ˜๊ธฐํ˜ธ์™€ ๋ฌธ์ž๋ฅผ ์ด์šฉํ•œ ๋งค์šฐ ๊ฐ„๋‹จํ•œ ๊ตฌ์กฐ์˜ ๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•˜์—ฌ ์›น์—์„œ๋„ ๋ณด๋‹ค ๋น ๋ฅด๊ฒŒ ์ปจํ…์ธ ๋ฅผ ์ž‘์„ฑํ•˜๊ณ  ๋ณด๋‹ค ์ง๊ด€์ ์œผ๋กœ ์ธ์‹ํ•  ์ˆ˜ ์žˆ๋‹ค. ๋งˆํฌ๋‹ค์šด์ด ์ตœ๊ทผ ๊ฐ๊ด‘๋ฐ›๊ธฐ ์‹œ์ž‘ํ•œ ์ด์œ ๋Š” ๊นƒํ—™(https://github.com) ๋•๋ถ„์ด๋‹ค. ๊นƒํ—™์˜ ์ €์žฅ์†ŒRepository์— ๊ด€ํ•œ ์ •๋ณด๋ฅผ ๊ธฐ๋กํ•˜๋Š” README.md๋Š” ๊นƒํ—™์„ ์‚ฌ์šฉํ•˜๋Š” ์‚ฌ๋žŒ์ด๋ผ๋ฉด ๋ˆ„๊ตฌ๋‚˜ ๊ฐ€์žฅ ๋จผ์ € ์ ‘ํ•˜๊ฒŒ ๋˜๋Š” ๋งˆํฌ๋‹ค์šด ๋ฌธ์„œ์˜€๋‹ค. ๋งˆํฌ๋‹ค์šด์„ ํ†ตํ•ด์„œ ์„ค์น˜๋ฐฉ๋ฒ•, ์†Œ์Šค์ฝ”๋“œ ์„ค๋ช…, ์ด์Šˆ ๋“ฑ์„ ๊ฐ„๋‹จํ•˜๊ฒŒ ๊ธฐ๋กํ•˜๊ณ  ๊ฐ€๋…์„ฑ์„ ๋†’์ผ ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฐ•์ ์ด ๋ถ€๊ฐ๋˜๋ฉด์„œ ์ ์  ์—ฌ๋Ÿฌ ๊ณณ์œผ๋กœ ํผ์ ธ๊ฐ€๊ฒŒ ๋œ๋‹ค.

1.2. ๋งˆํฌ๋‹ค์šด์˜ ์žฅ-๋‹จ์ 

1.2.1. ์žฅ์ 

@GSByeon
GSByeon / docker-compose.yml
Created December 5, 2018 08:40 — forked from ajeetraina/docker-compose.yml
Docker Compose File for MacVLAN Network Driver ( Single Node)
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
networks:
- myvlan
@GSByeon
GSByeon / docker_cheat.md
Created December 19, 2018 04:14 — forked from nacyot/docker_cheat.md
๋„์ปค(Docker) ์น˜ํŠธ ์‹œํŠธ

Docker ์น˜ํŠธ ์‹œํŠธ

ํ•œ๊ตญ์–ด ๋ฒˆ์—ญ(์ดˆ๋ฒŒ) : nacyot

์™œ Docker๋ฅผ ์‚ฌ์šฉํ•ด์•ผํ•˜๋Š”๊ฐ€?

Why Should I Care (For Developers)

"๋‚˜์—๊ฒŒ Docker์˜ ๋งค๋ ฅ์€ ๊ฐ„๋‹จํžˆ ๊ฒฉ๋ฆฌ๋œ ํ™˜๊ฒฝ์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค๋Š” ๊ฒƒ๊ณผ, ๊ทธ๋Ÿฌํ•œ ํ™˜๊ฒฝ์„ ์žฌ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค๋Š” ์ ์ด๋‹ค."๋Ÿฐํƒ€์ž„ ํ™˜๊ฒฝ์„ ํ•œ ๋ฒˆ ๋งŒ๋“ค์–ด ํŒจํ‚ค์ง€๋กœ ๋งŒ๋“ค๋ฉด, ์ด ํŒจํ‚ค์ง€๋ฅผ ๋‹ค๋ฅธ ์–ด๋–ค ๋จธ์‹ ์—์„œ๋„ ๋‹ค์‹œ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋‹ค. ๋˜ํ•œ ์—ฌ๊ธฐ์„œ ์‹คํ–‰๋˜๋Š” ๋ชจ๋“  ๊ฒƒ์€ ๋งˆ์น˜ ๊ฐ€์ƒ๋จธ์‹ ๊ณผ ๊ฐ™์ด ํ˜ธ์ŠคํŠธ๋กœ๋ถ€ํ„ฐ ๊ฒฉ๋ฆฌ๋˜์–ด์žˆ๋‹ค. ๋ฌด์—‡๋ณด๋‹ค๋„ ์ด๋Ÿฐ ๋ชจ๋“  ์ผ๋“ค์ด ๋น ๋ฅด๊ณ  ๊ฐ„๋‹จํžˆ ๊ฐ€๋Šฅํ•˜๋‹ค.

@GSByeon
GSByeon / nginx.conf
Created April 4, 2019 04:09 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048

Searching statically-linked vulnerable library functions in executable code

๋ฒˆ์—ญ Project Zero: Searching statically-linked vulnerable library functions in executable code

Summary

์ทจ์•ฝํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ static link (์ •์  ๋งํฌ)๋œ ์œ ์‚ฌํ•œ ํŒŒ์ผ๋“ค์„ binary ๋ ˆ๋ฒจ์—์„œ ํƒ์ง€ํ•˜๊ธฐ๊ฐ€ ์–ด๋ ต๋‹ค

์ด ๊ธ€์—์„  ๋ฐ”์ด๋„ˆ๋ฆฌ ํŒŒ์ผ์„ ์ •์ ์œผ๋กœ ๋ถ„์„ํ•˜์—ฌ ์ทจ์•ฝํ•œ ์˜คํ”ˆ ์†Œ์Šค ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋ฅผ ํƒ์ง€ํ•˜๋Š” ๊ฒฐ๊ณผ๋ฅผ ๋‚˜ํƒ€๋‚ด๊ณ  ์žˆ๋‹ค.

Adventures in Python Core Dumping

After watching Bryan Cantrill's presentation on [Running Aground: Debugging Docker in Production][aground] I got all excited (and strangely nostalgic) about the possibility of core-dumping server-side Python apps whenever they go awry. This would theoretically allow me to fully inspect the state of the program at the point it exploded, rather than relying solely on the information of a stack trace.

@GSByeon
GSByeon / proc_net_tcp_decode
Created January 8, 2020 06:37 — forked from jkstill/proc_net_tcp_decode
decode entries in /proc/net/tcp
Decoding the data in /proc/net/tcp:
Linux 5.x /proc/net/tcp
Linux 6.x /proc/PID/net/tcp
Given a socket:
$ ls -l /proc/24784/fd/11
lrwx------ 1 jkstill dba 64 Dec 4 16:22 /proc/24784/fd/11 -> socket:[15907701]