Skip to content

Instantly share code, notes, and snippets.

@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active April 11, 2024 23:56
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@480
480 / gist:4681b67d2a906db8c6c1321cc678f05f
Last active February 24, 2024 05:24
github 리모트 리포지토리 변경하기

깃 리모트 변경 하기

기존 리포지토리 깔끔하게 pull / push

git pull
git add .
git commit -m "clean push"
git push

VSCode

  1. Open Command Palette ⇧⌘P or F1
  2. Select Preferences: Open Keyboard Shortcuts (JSON)
  3. keybindings.json will opened
  4. Add below
    {
        "key": "ctrl+alt+c",
 "command": "workbench.action.terminal.sendSequence",
@480
480 / 00_nginx.config
Created October 17, 2017 03:18
자주 쓰는 ebextensions 설정
# 장시간 http 연결로 인한 끊어짐을 방지키 위해 long idle time out 허용 하기
# nginx proxy 에 셋팅 + ELB 의 idle timeout 수정
#
# https://medium.com/tomincode/extending-gateway-timeouts-with-node-js-elastic-beanstalk-applications-5cb256f08f4b
# https://cloudavail.com/2015/10/18/allowing-long-idle-timeouts-when-using-aws-elasticbeanstalk-and-docker/
# https://github.com/metabase/metabase/tree/b9533d43881090a72d97562fb112a6133cd94127/bin/aws-eb-docker
files:
"/etc/nginx/conf.d/proxy.conf":
mode: "000644"
@480
480 / README.md
Created September 10, 2022 15:08 — forked from triangletodd/README.md
k3s in LXC on Proxmox

On the host

Ensure these modules are loaded

cat /proc/sys/net/bridge/bridge-nf-call-iptables

Disable swap

sysctl vm.swappiness=0
swapoff -a
@480
480 / kr_won_to_backquote.sh
Created December 27, 2018 13:46 — forked from redism/kr_won_to_backquote.sh
macOS Sierra에서 원화(₩) 대신 백 쿼트(`) 입력하기
#!/bin/bash
if [ -f ~/Library/KeyBindings/DefaultkeyBinding.dict ]; then
echo "~/Library/KeyBindings/DefaultkeyBinding.dict already exists"
exit -1
fi
mkdir -p ~/Library/KeyBindings
cat << EOF > ~/Library/KeyBindings/DefaultkeyBinding.dict
{
"₩" = ("insertText:", "\`");
@480
480 / api4.yml
Last active November 3, 2017 13:51
swagger: "2.0"
info:
description: "여러 마켓을 하나의 API로 통합 연동 할 수 있습니다. `RESTful API`로 제공되며, `snake_case`를 사용 합니다."
version: 4.0.0
title: PLAYAPI ENGINES API V4
termsOfService: "http://www.playauto.co.kr/"
contact:
email: "beat@playauto.co.kr"
license:
name: PLAYAUTO INC (ISC)
@480
480 / yml
Last active September 20, 2017 14:23
test_swagger
swagger: "2.0"
info:
description: "PLAYAPI Engines API"
version: 4.0.1
title: PLAYAPI ENGINES
termsOfService: "http://www.playauto.co.kr/"
contact:
email: "beat@playauto.co.kr"
license:
name: PLAYAUTO INC (ISC)