Skip to content

Instantly share code, notes, and snippets.

@serenitii
serenitii / setup_ec2_22_12.sh
Last active December 8, 2022 07:59
Setup ec2 ubuntu(22.04) 2022_12
# Set user to root before execute this script
# sudo su
echo "whoami"
whoami
sleep 2s
cd /root
# Korean time
date
sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
@serenitii
serenitii / setup_server_mariadb_on_docker.sh
Last active August 22, 2022 09:13
MariaDb Setup with Docker On Ubuntu 22.04
#!/bin/bash
sudo docker container run -d --name mariadb mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD="<YOUR_PASSWORD>"
sudo docker ps -a
@serenitii
serenitii / ubuntu_20.04_mariadb_docker.sh
Last active April 27, 2022 05:11
ubuntu_20.04_mariadb_docker.sh
#!/bin/bash
# Ubuntu Server 2020.04
# 서버 시간 한국으로 설정
date
sudo ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
date
# First add the required dependencies and the security key:
@serenitii
serenitii / install_nodejs_ubuntu.sh
Created April 8, 2021 05:46
install latest nodejs on ubuntu
#! /bin/bash
curl -sL https://deb.nodesource.com/setup_15.x -o nodesource_setup.sh
sudo sh nodesource_setup.sh
sudo apt install nodejs
node -v
@serenitii
serenitii / deploy_cheat_sheet.md
Last active October 27, 2020 04:41
Deploy Cheat Sheet

Deploy Cheat Sheet

@serenitii
serenitii / mysql_cheat_sheet.md
Last active October 27, 2020 03:50
MySQL Cheat Sheet

MySQL Cheat Sheet

Reference for SQL commands

Login

mysql -u abc -h 13.209.48.208 -p
@serenitii
serenitii / setup_cli.sh
Created June 22, 2020 13:04
Setup command line with pratical tools like zsh, fd, fzf, exa,
#!/bin/bash
date
sudo apt install git curl zsh fonts-powerline cowsay lolcat figlet toilet -y
figlet hello | lolcat -a -d 20
echo "-"
@serenitii
serenitii / Setup_CLI.md
Created April 18, 2020 05:17
Setup command line environment

Install zsh env

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install powerlevel10 theme

sudo apt install fonts-powerline
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
@serenitii
serenitii / LibrarySetupForCMake.cmake
Last active January 23, 2020 06:04
CMake 라이브러리 설정
# Boost, Flatbuffers, MySQL, ZooKeeper
# https://cliutils.gitlab.io/modern-cmake/
# https://pleiades.io/help/clion/installation-guide.html
# https://cmake.org/cmake/help/latest/module/FindBoost.html
# [Boost]
# set(Boost_USE_STATIC_RUNTIME ON)
set(Boost_USE_STATIC_LIBS ON) # only find static libs
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_DEBUG_LIBS OFF) # ignore debug libs and
@serenitii
serenitii / ServerDevEnvironmentSetup.md
Last active January 28, 2020 06:46
C++ 서버 개발 환경 설정

C++ 서버 개발 환경 구성

boost

https://boostorg.github.io/

MacOS
최신 버전이면 brew를 통해서 하면 되지만, 특정 버전은 b2로 설치한다