Skip to content

Instantly share code, notes, and snippets.

@serenitii
serenitii / install_nodejs_ubuntu.sh
Created Apr 8, 2021
install latest nodejs on ubuntu
View install_nodejs_ubuntu.sh
#! /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
View mysql_cheat_sheet.md

MySQL Cheat Sheet

Reference for SQL commands

Login

mysql -u abc -h 13.209.48.208 -p
@serenitii
serenitii / setup_cli.sh
Created Jun 22, 2020
Setup command line with pratical tools like zsh, fd, fzf, exa,
View setup_cli.sh
#!/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 Apr 18, 2020
Setup command line environment
View Setup_CLI.md

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 Jan 23, 2020
CMake 라이브러리 설정
View LibrarySetupForCMake.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 Jan 28, 2020
C++ 서버 개발 환경 설정
View ServerDevEnvironmentSetup.md

C++ 서버 개발 환경 구성

boost

https://boostorg.github.io/

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

View Setup_MacOS.sh
#!/bin/bash
brew update # Fetch latest version of homebrew and formula.
brew tap caskroom/cask # Tap the Caskroom/Cask repository from Github using HTTPS.
brew search dropbox # Searches all known Casks for a partial or exact match.
brew cask info dropbox # Displays information about the given Cask
brew cask install dropbox # Install the given cask.
@serenitii
serenitii / TCPTestClient.cs
Created Dec 18, 2018 — forked from danielbierwirth/TCPTestClient.cs
TCP Client-Server Connection Example | Unity | C# | Bidirectional communication sample: Client can connect to server; Client can send and receive messages: Server accepts clients; Server reads client messages; Server sends messages to client
View TCPTestClient.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using UnityEngine;
public class TCPTestClient : MonoBehaviour {
#region private members
@serenitii
serenitii / setup_dist.sh
Last active Dec 1, 2018
Setup Dist Environment On Ubuntu 18.04
View setup_dist.sh
# Setup On Ubuntu 18.04
# vagrant init ubuntu/bionic64
# vagrant up
# curl -L <Gist Raw File URL> | bash
cd ~
sudo apt update && sudo apt upgrade
lsb_release -a