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;