Skip to content

Instantly share code, notes, and snippets.

View rurumimic's full-sized avatar
♟️
턴제코딩

rurumimic

♟️
턴제코딩
View GitHub Profile
@rurumimic
rurumimic / spacevim.md
Created December 24, 2022 11:50
SpaceVim configuration

~/.SpaceVim.d/init.toml

# All SpaceVim option below [option] section
[options]
    autocomplete_method = "coc"
    # set spacevim theme. by default colorscheme layer is not loaded,
    # if you want to use more colorscheme, please load the colorscheme
    # layer
    colorscheme = "dracula"
@rurumimic
rurumimic / git-prompt.sh
Created November 25, 2022 00:12
windows / git bash / git-prompt.sh
# open git bash
# copy this path
git --exec-path
.../mingw64/libexec/git-core
# edit
vi /etc/profile.d/git-prompt.sh
# line 30: paste path
@rurumimic
rurumimic / permission.md
Created November 14, 2022 11:31
Linux Permission

Directory

  • r: list files
  • w: create, rename, delete files
  • x: enter the directory, access files
  • t: stiky bit

exists

  • 상위 디렉터리들 모두 x 권한 필요
@rurumimic
rurumimic / select.sh
Created November 4, 2022 04:20
macports select
ports select --list llvm
Available versions for llvm:
mp-llvm-11
mp-llvm-12
mp-llvm-14
mp-llvm-15
none (active)
sudo ports select --select llvm mp-llvm-15
@rurumimic
rurumimic / brew.sh
Created November 4, 2022 02:16
Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH="/usr/local/Homebrew/bin:$PATH" >> ~/.zshrc
# Output:
==> Checking for `sudo` access (which may request your password)...
Password:
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
@rurumimic
rurumimic / popen.py
Last active October 25, 2022 06:36
realtime subprocess output in python 2 & 3
import logging
import subprocess
logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())
def main(cmd):
try:
proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
@rurumimic
rurumimic / .zshrc
Created October 17, 2022 07:38
alias ll
alias ll='ls --color=auto -alF'
@rurumimic
rurumimic / .gitconfig
Created September 13, 2022 01:10
.gitconfig
[user]
name =
email =
[core]
editor = vi
pager = delta
[interactive]
diffFilter = delta --color-only
[add.interactive]
@rurumimic
rurumimic / git.sh
Last active June 16, 2022 05:26
git
# github cli
brew install gh
gh auth login
# fork
gh repo fork <user>/<repo>
# remote
cd <repo>
git remote -v
@rurumimic
rurumimic / touchbar.sh
Last active June 9, 2022 03:54
Restart MacBook TouchBar
# 1. Restart TouchBarServer
sudo pkill TouchBarServer
# 2. Restart Process
killall ControlStrip