Skip to content

Instantly share code, notes, and snippets.

View CheeseStick's full-sized avatar
๐Ÿง€
Cheese

Jun Jung CheeseStick

๐Ÿง€
Cheese
View GitHub Profile
@CheeseStick
CheeseStick / nginx.conf
Created December 19, 2022 20:40 — forked from dctrwatson/nginx.conf
Caching NPM proxy using Nginx
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@CheeseStick
CheeseStick / run.py
Last active August 2, 2023 10:17
Launch LoL client with different locale on Mac OS X (Default: Korean, Oceania Server)
#!/usr/bin/env python
import yaml
import subprocess
from os import path, system
##
# Settings
@CheeseStick
CheeseStick / how-to.md
Last active July 31, 2018 08:42
Mac OS X์—์„œ OpenCV ์„ค์น˜ ๋ฐ Xcode Project ์„ค์ •๋ฐฉ๋ฒ•

Mac OS X์—์„œ Open CV ์„ค์น˜ ๋ฐ Xcode์—์„œ ์‚ฌ์šฉํ•˜๊ธฐ

1. Homebrew๋ฅผ ํ†ตํ•ด openCV ์„ค์น˜

(ํ™ˆ๋ธŒ๋ฃจ๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š๋‹ค๋ฉด https://brew.sh/index_ko.html ์ฐธ๊ณ )

brew update
brew install opencv
@CheeseStick
CheeseStick / nginxproxy.md
Created April 24, 2017 01:36 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers

1234567890

1234567890

aaaabbccdd

Xcode 8 ๋ฐ Sierra์—์„œ ํ”„๋กœ์ ํŠธ ๋นŒ๋“œ์‹œ Code Sign ์˜ค๋ฅ˜๊ฐ€ ๋‚  ๊ฒฝ์šฐ

1. ์ฆ์ƒ

Xcode 8์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋นŒ๋“œ ํ•  ๋•Œ /usr/bin/codesign failed with exit code 1 ์˜ค๋ฅ˜๊ฐ€ ๋‚˜๋ฉฐ, resource fork finder information or similar detritus not allowed ์™€ ๊ฐ™์€ ๋ฉ”์‹œ์ง€๊ฐ€ ๋œจ๋ฉฐ ๋นŒ๋“œ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋˜์ง€ ์•Š๋Š”๋‹ค.

2. ์›์ธ

๊ทธ๋ฆผ ํŒŒ์ผ๋“ค์ด ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ์†์„ฑ์— ๊ฐœ๋ฐœ์ž ๋ฐ ๊ธฐํƒ€ ์ƒ์„ฑ์ž์˜ ๊ฐœ์ธ์ •๋ณด๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์–ด์„œ ๋นŒ๋“œ๊ฐ€ ์ •์ƒ์ ์œผ๋กœ ๋˜์ง€ ์•Š๋Š”๋‹ค.

3. ํ•ด๊ฒฐ๋ฐฉ๋ฒ•

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;