Skip to content

Instantly share code, notes, and snippets.

View inceax's full-sized avatar

Jangho Lee inceax

View GitHub Profile
@inceax
inceax / private.xml
Last active December 28, 2017 00:59
Microsoft Sculpt Comfort Mouse Button Binding for OSX (using Karabiner)
<!--
Microsoft Sculpt Comfort Mouse Binding for OSX (using Karabiner)
Window Button => Launchpad
Slide Down, Scroll Left => Backward (Cmd+[)
Slide Up, Scroll Right => Forward (Cmd+])
A modified version from http://www.tslimi.tk/myblog/view.php?name=Touchpad+Support+of+Microsoft+Sculpt+Comfort+Mouse+for+OS+X
-->
<?xml version="1.0"?>
<root>
<devicevendordef>
@inceax
inceax / flickr_upload_all.py
Created April 16, 2015 06:35
flickr_upload all directories
#!/usr/bin/python
import os
import subprocess
# Flickr Uploader using Directory Name as Title
# Based on...
# http://ubuntuforums.org/showthread.php?t=1416977
# http://search.cpan.org/~cpb/Flickr-Upload/flickr_upload
@inceax
inceax / flickr_upload_current_directory.py
Created April 16, 2015 06:36
flickr_upload current directory
#!/usr/bin/python
import os
import subprocess
# Flickr Uploader using Directory Name as Title
# Based on...
# http://ubuntuforums.org/showthread.php?t=1416977
# http://search.cpan.org/~cpb/Flickr-Upload/flickr_upload
@inceax
inceax / osmc-raspberrypi2.md
Last active November 14, 2020 05:19
raspberry pi 2에 osmc 빠른 세팅을 위한 개인 설정 기록

osmc 세팅

  • 빠른 세팅을 위한 개인 설정 기록
  • osmc rc3, raspberry pi 2 기준

한글화

스킨 한글화

  1. 폰트 설치
sudo apt-get install fonts-nanum
sudo cp /usr/share/fonts/truetype/nanum/NanumGothic.ttf /usr/share/kodi/addons/skin.osmc/fonts/
@inceax
inceax / vsftpd-adduser.md
Last active August 29, 2015 14:19
vsftpd 전용 계정 추가

vsftpd 전용 계정 추가

  • Virtual User를 사용하지 않고, 계정 추가를 이용한 vsftpd 전용 계정 설정
  • 특정 디렉토리만 접근 가능, ssh 로그인 차단

Shell 사용하지 않는 media 이름의 계정 추가

adduser -s /bin/nologin media

해당 유저 ssh 로그인 차단. /etc/ssh/sshd_config

@inceax
inceax / vscode-setting.md
Last active August 29, 2015 14:20
Visual Studio Code 세팅

Visual Studio Code 세팅

Mac OSX에서 Unity를 위한 세팅

Homebrew 설치

http://brew.sh

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@inceax
inceax / mpv.config
Last active August 29, 2015 14:23
mpv.config on osx
# ~/.config/mpv/mpv.config
# 폰트
sub-text-font="Apple SD Gothic Neo:style=Bold"
# 한글 출력
sub-codepage="cp949"
# reference
http://mpv.io/manual/master/
@inceax
inceax / client.sublime-project
Created August 20, 2015 04:19
client.sublime-project
{
"folders":
[
{
"follow_symlinks": true,
"path": ".",
"folder_exclude_patterns": ["Temp", "Extensions", "Plugins", "JsonDotNet", "ProjectSettings"],
"file_exclude_patterns": ["*.meta", "*.prefab", "*.mat", "*.asset"]
}
],
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
@inceax
inceax / Singleton.cs
Created November 26, 2015 13:29
Simple Singleton Template for C#
// Singleton
//
// declaration:
// public class A
// {
// public static A Instance { get { return Singleton<A>.Instance; } }
// public void foo(){}
// }
//
// usage: