Skip to content

Instantly share code, notes, and snippets.

View kkumtree's full-sized avatar
🔧
magic(physics) tool

kkumtree kkumtree

🔧
magic(physics) tool
View GitHub Profile
@kkumtree
kkumtree / .vimrc
Created February 26, 2021 14:45
.vimrc
call plug#begin('~/.vim/plugged')
"Plug 'Github ID/repo'"
Plug 'scrooloose/nerdtree'
Plug 'pbondoer/vim-42header'
call plug#end()
map <F3> <ESC>:NERDTreeToggle<CR>
imap <F3> <ESC>:NERDTreeToggle<CR>
@kkumtree
kkumtree / .zshrc
Last active February 27, 2021 15:16
.zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@kkumtree
kkumtree / .alacritty.yml
Created February 26, 2021 14:48
.alacritty.yml
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# These configuration files will be loaded in order, replacing values in files
# loaded earlier with those loaded later in the chain. The file itself will
# always be loaded last.
#import:
# - /path/to/alacritty.yml
@kkumtree
kkumtree / launch.json
Last active February 27, 2021 15:21
vscode_ubuntu_sol
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 활성 파일 빌드 및 디버그",
"type": "cppdbg",
"request": "launch",
@kkumtree
kkumtree / launch.json
Created February 27, 2021 15:20
vscode_mac_sol
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - 활성 파일 빌드 및 디버그",
"type": "cppdbg",
"request": "launch",
@kkumtree
kkumtree / _Vagrantfile_vbox_focal_basic
Last active June 19, 2023 04:16
vagrant_vbox_focal_basic
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.hostname = "kkumtree-server"
ubuntu.vm.provider "virtualbox" do |vb|
vb.name = "ubuntu-server"
@kkumtree
kkumtree / _Vagrantfle_docker_ubuntu_basic
Created June 19, 2023 04:19
Vagrantfle_docker_ubuntu_basic
Vagrant.configure("2") do |config|
config.vm.define "ubuntu" do |ubuntu|
ubuntu.vm.provider "docker" do |d|
d.build_dir = "."
end
# ubuntu.vm.provision "shell", inline: <<-SCRIPT
# sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
# sudo useradd kkumtree -m -s /bin/bash
# sudo usermod -a -G sudo kkumtree
@kkumtree
kkumtree / _Dockerfile_ubuntu_basic
Last active June 19, 2023 04:38
Dockerfile_ubuntu_basic
FROM ubuntu:20.04
RUN apt-get update -y
RUN apt-get install -y --no-install-recommends ssh sudo
RUN useradd --create-home -s /bin/bash vagrant
RUN echo -n 'vagrant:vagrant' | chpasswd
RUN echo 'vagrant ALL = NOPASSWD: ALL' > /etc/sudoers.d/vagrant
RUN chmod 440 /etc/sudoers.d/vagrant
@kkumtree
kkumtree / export-import-gpg-keys.md
Created June 9, 2024 18:06 — forked from lysender/export-import-gpg-keys.md
Export and import GPG Keys

Export public key

gpg --export your_address@example.net > my_key.pub 

The file can then be shared to other people.

Export public key in armor ascii format