This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NC='\033[0m' # No Color | |
YELLOW='\033[1;33m' | |
cephfs_ip="10.0.2.15" # ceph mon dump | |
clusterID="e952c52a-f18f-11ec-bb41-08002716126b" # ceph mon dump | |
cephfs_user_key="AQAfDrJibQtyARAAp3DxKWUP2LBCPbJUe9BUDg==" # ceph auth get-or-create client.cephfs mon 'allow r' osd 'allow rwx pool=kubernetes' | |
cephfs_admin_key="AQDzDbJiuBawARAA2NBP5/wgoaadOYGWIrUFFA==" # ceph auth get client.admin | |
sudo dnf update -y &&\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NC='\033[0m' # No Color | |
YELLOW='\033[1;33m' | |
sudo dnf update -y &&\ | |
sudo dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel | |
printf "${YELLOW}Installing Docker${NC}\n" | |
sudo yum install -y yum-utils telnet &&\ | |
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dnf update -y &&\ | |
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel | |
echo "Installing Docker" | |
yum install -y yum-utils telnet &&\ | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\ | |
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\ | |
systemctl enable docker.service &&\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dnf update -y &&\ | |
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel | |
echo "Installing Docker" | |
yum install -y yum-utils telnet &&\ | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\ | |
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\ | |
systemctl enable docker.service &&\ | |
systemctl start docker.service | |
echo "Docker install complete" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dnf update -y &&\ | |
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel | |
echo "Installing Docker" | |
yum install -y yum-utils telnet &&\ | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\ | |
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\ | |
systemctl start docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dnf update -y &&\ | |
dnf install -y kernel-devel kernel-header* make gcc elfutils-libelf-devel | |
echo "Installing Docker" | |
yum install -y yum-utils telnet &&\ | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo &&\ | |
yum install -y --allowerasing docker-ce docker-ce-cli containerd.io docker-compose-plugin &&\ | |
systemctl start docker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In Ubuntu 20.04 LTS | |
// g++ -g [cpp file name] -o [output file name] -O2 -lcrypto | |
#include <iostream> | |
#include <iomanip> | |
#include <sstream> | |
#include <openssl/sha.h> | |
std::string sha256(const std::string str) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example Dockerfile | |
FROM ubuntu:20.04 | |
RUN cd /etc/apt && \ | |
sed -i 's/archive.ubuntu.com/ftp.kaist.ac.kr/g' sources.list | |
RUN apt-get update && apt upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
# Python 3.8 | |
# need Libraries: beautifulsoup4, requests | |
""" | |
This python file is for getting problem number and making .cpp files automatically in one page | |
This Programs Returns | |
─ FolderName | |
├─ 1234.cpp | |
├─ 2345.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This tasks.json is for C++. | |
// In *.cpp, Just Press "Ctrl + Shift + B" for Compile, Run, Delete Compiled Binary File AT ONCE. | |
{ | |
"version": "2.0.0", | |
"type": "shell", | |
"tasks": [ | |
{ | |
"label": "save and compile for C++", | |
"command": "g++", | |
"args": [ |