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 / install_boost_1_66_0.sh
Last active April 1, 2020 06:38
Boost Intall with options of -fPIC -std=c++1z
#!/bin/sh
wget https://dl.bintray.com/boostorg/release/1.66.0/source/boost_1_66_0.tar.bz2 && \
tar xjf boost_1_66_0.tar.bz2 && \
cd boost_1_66_0 && \
sh bootstrap.sh && \
./b2 --reconfigure stage toolset=gcc cxxflags="-std=c++1z -fPIC -O3 -Werror -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-function" link=static,shared variant=release threading=multi linkflags="-fPIC" \
sudo ./b2 install
@serenitii
serenitii / ServerDevEnvironmentSetup.md
Last active January 28, 2020 06:46
C++ 서버 개발 환경 설정

C++ 서버 개발 환경 구성

boost

https://boostorg.github.io/

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