Skip to content

Instantly share code, notes, and snippets.

View tot0rokr's full-sized avatar
🐳
On Happy!

TOT0Ro tot0rokr

🐳
On Happy!
View GitHub Profile
@tot0rokr
tot0rokr / .vimrc
Last active January 4, 2023 07:25
gVim for Windows | Configuration of _vimrc
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin('~/.vim/bundle')
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
#073642 08
#268BD2 09
#859900 10
#2AA198 11
#DC322F 12
#D33682 13
#B58900 14
#FDF6E3 15
#002B36 00
#839496 01
@tot0rokr
tot0rokr / tmux command basic.md
Created October 9, 2018 18:31 — forked from LeoHeo/tmux command basic.md
기본적인 tmux 사용법

Tmux Command

mac 기준으로 Tmux 설치부터 기본적인 명령어를 알아가고자 한다.
Tutorial용으로 참고할만한 블로그는 아래와같다.
Tmux-Part1 Tmux-Part2

Install

@tot0rokr
tot0rokr / .tmux.conf
Last active December 22, 2022 06:58 — forked from junho85/.tmux.conf
tmux.conf for v2.6
# set -g mouse on
# mouse scroll
set -g terminal-overrides 'xterm*:smcup@:rmcup@'
# 256 color
set -g default-terminal "screen-256color"
setw -g mode-keys vi
@tot0rokr
tot0rokr / logical_operation_trick.c
Created October 26, 2018 07:27
logical operation trick
#include <stdio.h>
void file_open(FILE** fp)
{
char str[1024];
*fp || (((*fp = fopen("test.txt", "w"), fprintf(*fp, "hello!\n")), fclose(*fp)), *fp = fopen("test.txt", "r"));
fscanf(*fp, "%s", str);
printf("%s", str);
}
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',
#!/bin/bash
# Tmux 설정
if ! [ -e "~/.tmux.conf" ]; then
curl "https://gist.githubusercontent.com/TOT0RoKR/f1bfaaaa88716fd5e491f17f3038998f/raw/78b00228e0df94bb8ff02c17325d46b62883b94a/.tmux.conf" > ~/.tmux.conf
fi
# fzf 설치
if ! [ -e "~/.fzf/" ]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
@tot0rokr
tot0rokr / xterm-color256.md
Created April 20, 2019 14:10
xterm-color256

U5AJI

#!/bin/bash
# apt update
apt-get update
# basic files
apt-get install -y openssh-server vim python python3 tmux
# fzf
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
umask 0022