Skip to content

Instantly share code, notes, and snippets.

View mingrammer's full-sized avatar
๐Ÿง—
learn, code, and grow

MinJae Kwon (Miti) mingrammer

๐Ÿง—
learn, code, and grow
View GitHub Profile
@sickhye
sickhye / go_conference_2019_spring_tokyo.md
Created May 19, 2019 13:05
Go Conference 2019 Spring(Tokyo) Session Slide

Go Conference 2019 Spring(Tokyo)

Session1 (Short)

11:10 - 11: 30

H1 (S): Hacking Go Compiler Internals 2

Since the previous talk at Go Con 2014 Autumn, lots of things in the internals have changed. In this talk, I will try to give an overview of Go compiler internals and update the information as much as possible, along with my new hacks.

@tombigel
tombigel / README.md
Last active March 18, 2025 18:49 — forked from a2ikm/limit.maxfiles.plist
How to Change Open Files Limit on OS X and macOS Sierra (10.8 - 10.12)

How to Change Open Files Limit on OS X and macOS

This text is the section about OS X Yosemite (which also works for macOS Sierra) from https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/#mac-os-x

The last time i visited this link it was dead (403), so I cloned it here from the latest snapshot in Archive.org's Wayback Machine https://web.archive.org/web/20170523131633/https://docs.basho.com/riak/kv/2.1.4/using/performance/open-files-limit/

Mac OS X

To check the current limits on your Mac OS X system, run:

@marz619
marz619 / README.md
Last active March 26, 2020 17:41
Go build LDFlags

Using the -ldflags parameter can help set variable values at compile time.

Using the example provided here:

  1. Running make build will create a build executable. Running it will result in:
$> ./build
no version (Mon YYYY)
$>
@smijar
smijar / install-pip-on-centos7.snippets
Last active July 24, 2022 13:24
install python-pip on Centos 7 minimal
# install epel-release on centos
yum -y install epel-release
yum -y update
# install python-pip from epel
yum -y install python-pip
# Verify using:
pip -V
@lifthrasiir
lifthrasiir / inquiry.md
Last active July 30, 2019 13:15
"๊ตฌ๊ธ€, 'https' ์ฑ„ํƒ ์•ˆํ•œ ๋ˆ„๋ฆฌ์ง‘์— ์•ˆ์ „ํ•˜์ง€ ์•Š์€ ๊ณณ '๋‚™์ธ'" ๊ธฐ์‚ฌ์— ๋Œ€ํ•œ ์˜๊ฒฌ

์•„๋ž˜ ๋ฉ”์ผ์€ 2017-02-12 21:43(์ดํ•˜ ํ•œ๊ตญ ํ‘œ์ค€์‹œ)์— ํ•œ๊ฒจ๋ ˆ ๊ธฐ์‚ฌ์— ๋Œ€ํ•œ ์˜๊ฒฌ์œผ๋กœ์„œ ๊ธฐ์‚ฌ์— ์ œ์‹œ๋œ ๊น€์žฌ์„ญ ๊ธฐ์ž์˜ ๋ฉ”์ผ๋กœ ๋ณด๋‚ธ ๋‚ด์šฉ์ด๋‹ค. ๋ฉ”์ผ์—์„œ ์‚ฌ์‹ค ๊ด€๊ณ„ ๋“ฑ์˜ ์˜ค๋ฅ˜๊ฐ€ ์žˆ๋‹ค๋ฉด ๋ชจ๋‘ ๋‚˜์˜ ์‹ค์ˆ˜์ด๋‹ค.

2017-02-13 14:53์— ๋ง๋ถ™์ž„: ๋” ์ด์ƒ gist๋ฅผ ๋น„๊ณต๊ฐœ๋กœ ํ•  ์ด์œ ๊ฐ€ ์—†์–ด์กŒ์œผ๋ฏ€๋กœ ๊ณต๊ฐœ๋กœ ์ „ํ™˜. ์ด ๋ฉ”์ผ์— ๋Œ€ํ•œ ๋‹ต๋ณ€์€ ๋ฐ›์•˜์œผ๋‚˜ ๊ณต๊ฐœํ•  ๋งŒํผ ์ค‘์š”ํ•œ ๋ฐ˜๋ก ์ด ๋“ค์–ด ์žˆ์ง„ ์•Š์œผ๋ฉฐ ๊ณต๊ฐœ ์—ฌ๋ถ€๋„ ๋ฌป์ง€ ์•Š์•˜์œผ๋ฏ€๋กœ ๊ณต๊ฐœํ•˜์ง€ ์•Š๋Š”๋‹ค. ์•„๋ž˜ ๊ธ€ ์ž์ฒด์—๋„ ๋‹ค์–‘ํ•œ ๋น„๋ฌธ๊ณผ ์˜ค์ž๊ฐ€ ์žˆ์œผ๋‚˜ ๋ณธ๋ž˜ ๋ณด๋‚ธ ๋‚ด์šฉ์„ ์‚ด๋ฆฌ๊ธฐ ์œ„ํ•ด ์ „ํ˜€ ์ˆ˜์ •์„ ํ•˜์ง€ ์•Š๊ธฐ๋กœ ํ–ˆ์Œ์„ ์–‘ํ•ด ๋ฐ”๋žŒ.

2017-02-13 19:00์— ๋ง๋ถ™์ž„: ์ด ๊ธฐ์‚ฌ์˜ ํ›„์†์œผ๋กœ ๊ตฌ๊ธ€์ฝ”๋ฆฌ์•„ ์ธก์˜ ๊ธฐ์ž๊ฐ„๋‹ดํšŒ๊ฐ€ ์˜ฌ๋ผ๊ฐ”๋‹ค. ์ƒˆ ๊ธฐ์‚ฌ์— ๋Œ€ํ•ด์„œ๋Š” ํŠน์ดํ•œ ๊ฒŒ ์—†์œผ๋ฏ€๋กœ ๋…ธ์ฝ”๋ฉ˜ํŠธ. ๋˜ํ•œ ์œ„์˜ ๊ธฐ์‚ฌ ๋งํฌ๋ฅผ ๋ฏธ๋””์–ด๋‹ค์Œ์—์„œ ํ•œ๊ฒจ๋ ˆ ์›น์‚ฌ์ดํŠธ๋กœ ๊ฐ€๋„๋ก ์ˆ˜์ •.

์›๋ฌธ

์•ˆ๋…•ํ•˜์‹ญ๋‹ˆ๊นŒ, ๊ท€ํ•˜๊ป˜์„œ ์ž‘์„ฑํ•˜์‹  (๋ฌผ๋ก  ์ €๋Š” ๊ทธ ์ง„์œ„๋ฅผ ์•Œ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค๋งŒ, ์ ์–ด๋„ ๊ทธ๋ ‡๊ฒŒ ๋‚˜์™€ ์žˆ๋Š”) ๊ธฐ์‚ฌ์— ๋Œ€ํ•œ ์˜๊ฒฌ์„ ์ œ๊ธฐํ•˜๊ณ ์ž ๋ฉ”์ผ์„ ์”๋‹ˆ๋‹ค. ์ด ๋ฉ”์ผ์€ ์ €์˜ ๊ฐœ์ธ ์˜๊ฒฌ์ด๋ฉฐ ์ €๋ฅผ ๊ณ ์šฉํ•˜๊ณ  ์žˆ๋Š” ํšŒ์‚ฌ๋‚˜ ๋‹จ์ฒด ๋“ฑ์˜ ์˜๊ฒฌ์„ ์ „ํ˜€ ๋Œ€๋ณ€ํ•˜์ง€ ์•Š์Œ์„ ํ˜น์‹œ๋‚˜ ์‹ถ์ง€๋งŒ ๋ฏธ๋ฆฌ ๋ฐํ˜€ ๋‘ก๋‹ˆ๋‹ค.

@evalphobia
evalphobia / README.md
Last active April 22, 2025 12:37
Golang Benchmark: gob vs json

tl;dr

  • JSON is faster for small size data
    • map (key size < 50 and Unmarshalling intensive workload)
    • single struct
  • gob is faster for big size data
    • map (key size > 50 or Marshalling intensive workload)
    • slice

(old) about

@bluekvirus
bluekvirus / flask-uWSGI-nginx.md
Last active July 19, 2022 20:26
How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04+

How To Serve Flask Applications with uWSGI and Nginx on Ubuntu 14.04

@credit Yan Zhu (https://github.com/nina-zhu)

Introduction

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions, it can help you get your Python application or website off the ground. Flask includes a simplified development server for testing your code locally, but for anything even slightly production related, a more secure and powerful web server is required.

In this guide, we will demonstrate how to install and configure some components on Ubuntu 14.04 to support and serve Flask applications. We will configure the uWSGI application container server to interface with our applications. We will then set up Nginx to reverse proxy to uWSGI, giving us access to its security and performance features to serve our apps.

Prerequisites and Goals

@onjin
onjin / docker-compose.yml
Created September 5, 2016 09:17
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
from django.test import TestCase
import re
class MyTestCase(TestCase):
@staticmethod
def remove_csfr(html_code):
csrf_regex = r'<input[^>]+csrfmiddlewaretoken[^>]+>'
return re.sub(csrf_regex, '', html_code)
@perhapsspy
perhapsspy / django-test-easy-and-fast.md
Last active May 20, 2022 05:06
Django์—์„œ Test ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ

Django์—์„œ Test ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•˜๊ธฐ

django ๊ธฐ๋ณธ ํ…Œ์ŠคํŠธ๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋งˆ์ด๊ทธ๋ ˆ์ด์…˜ ๋•์— ๋А๋ฆฌ๊ณ  ๋ฒˆ๊ฑฐ๋กญ๊ธฐ ๋•Œ๋ฌธ์— py.test์™€ model_mommy๋ฅผ ์‚ฌ์šฉํ•ด์„œ ๋น ๋ฅด๊ฒŒ ํ…Œ์ŠคํŠธ๋ฅผ ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์†Œ๊ฐœํ•จ.

ํ…Œ์ŠคํŠธ ํŒŒ์ผ ๋ ˆ์ด์•„์›ƒ