Skip to content

Instantly share code, notes, and snippets.

@oiotoxt
oiotoxt / keybindings.json
Last active September 22, 2021 12:36
vscode key bindings
[
{
"key": "ctrl+2",
"command": "editor.action.previousSelectionMatchFindAction",
"when": "editorFocus"
},
{
"key": "ctrl+3",
"command": "editor.action.nextSelectionMatchFindAction",
"when": "editorFocus"
@oiotoxt
oiotoxt / gcm_core.sh
Created August 20, 2021 13:12
GitHub Personal Access Token + Git Credential Manager Core
# GitHub Personal Access Token + Git Credential Manager Core (2021-08-20)
# <Git Credential Manager Core>
# install (Ubuntu 18.04)
# https://github.com/microsoft/Git-Credential-Manager-Core
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo apt-add-repository https://packages.microsoft.com/ubuntu/18.04/prod
sudo apt-get update
sudo apt-get install gcmcore
@oiotoxt
oiotoxt / config
Created May 11, 2021 03:11 — forked from isutare412/config
SSH config using proxy / jumbox / bastion
Host your-jumpbox
HostName xxx.xxx.xxx.xxx
User user1
IdentityFile ~/.ssh/private_key_for_jumpbox
Host endpoint1
HostName xxx.xxx.xxx.xxx
User user2
ProxyCommand ssh -q -W %h:%p your-jumpbox
@oiotoxt
oiotoxt / DpInputState.h
Created April 21, 2021 10:01
C++ Lecture
// DpInputState.h
////////////////////////////////////////////////////////////////////////////////
#ifndef DPINPUTSTATE_H
#define DPINPUTSTATE_H
#include "DpBase.h"
_DP_BGN
//******************************************************************************

긱키 ⓒⓢⓐ ㉨ ㉭

키캡, 악세사리, 스위치 판매, 해외 사이트

http://www.geekkeys.com/

긱핵, Geekhack ⓚⓒⓢ ㉠㉥ ㉭㉪

커뮤니티. 개인거래, 공구 및 공제, 해외 사이트

@oiotoxt
oiotoxt / dictutil.py
Created July 17, 2019 01:47
Recursive dict merge.
from __future__ import absolute_import
if __name__ != "__main__": print(__name__, "imported.")
else: print(__file__, "is being executed directly.")
import collections
from copy import deepcopy
import json5 as json # pip install json5 ( >= v0.8.0 )
@oiotoxt
oiotoxt / change-ubuntu-mirror.sh
Created March 15, 2019 10:06 — forked from lesstif/change-ubuntu-mirror.sh
우분투의 apt 기본 미러를 다음 카카오로 변경
#!/bin/sh
SL=/etc/apt/sources.list
PARAM="r:hm:dna"
KAKAO=mirror.kakao.com
NEOWIZ=ftp.neowiz.com
HARU=ftp.harukasan.org
@oiotoxt
oiotoxt / docker_cheat.md
Created March 13, 2019 11:59 — forked from nacyot/docker_cheat.md
도커(Docker) 치트 시트

Docker 치트 시트

한국어 번역(초벌) : nacyot

왜 Docker를 사용해야하는가?

Why Should I Care (For Developers)

"나에게 Docker의 매력은 간단히 격리된 환경을 만들 수 있다는 것과, 그러한 환경을 재사용할 수 있다는 점이다."런타임 환경을 한 번 만들어 패키지로 만들면, 이 패키지를 다른 어떤 머신에서도 다시 사용할 수 있다. 또한 여기서 실행되는 모든 것은 마치 가상머신과 같이 호스트로부터 격리되어있다. 무엇보다도 이런 모든 일들이 빠르고 간단히 가능하다.

@oiotoxt
oiotoxt / docker
Created March 13, 2019 11:30 — forked from yjcrocks/docker
다음 카카오 미러 사용하기 | Using daum kakao mirror for Ubuntu / Docker / PyPI
RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list \
&& apt-get update && apt-get install -y \
...packages-you-want-to-install... \
&& rm -rf /var/lib/apt/lists/*
@oiotoxt
oiotoxt / loadnpy.js
Created November 2, 2018 14:55 — forked from nvictus/loadnpy.js
NumPy binary file parser for javascript
// Client-side parser for .npy files
// See the specification: http://docs.scipy.org/doc/numpy-dev/neps/npy-format.html
var NumpyLoader = (function () {
function asciiDecode(buf) {
return String.fromCharCode.apply(null, new Uint8Array(buf));
}
function readUint16LE(buffer) {
var view = new DataView(buffer);
var val = view.getUint8(0);