start new:
tmux
start new with session name:
tmux new -s myname
| #include "resource.h" | |
| using std::string; | |
| Resource::Resource(string n) : name(n) | |
| { | |
| // std::cout << "constructing " << name << '\n'; | |
| } | |
| Resource::Resource(const Resource& r) : name(r.name) |
| # This example requires the requests library be installed. You can learn more | |
| # about the Requests library here: http://docs.python-requests.org/en/latest/ | |
| from requests import get | |
| ip = get('https://api.ipify.org').text | |
| print('My public IP address is: {}'.format(ip)) |
| import os | |
| import pathlib | |
| import timeit | |
| import glob | |
| def a(): | |
| path = pathlib.Path().cwd() | |
| list_log_files = [str(f) for f in path.glob("*.log")] | |
| def b(): |
| # git | |
| app_name="git" | |
| echo "===> Checking if $app_name is installed .." | |
| # if yum list installed "$app_name" > /dev/null 2>&1; then | |
| # echo "===> $app_name was already installed. Nothing was done" | |
| # else | |
| # echo "$app_name is not installed, installing now..." | |
| # sudo yum install git -y | |
| # sudo yum install git -y |
| sudo yum clean all | |
| sudo yum update -y | |
| ip addr show | |
| ### Now Prepare machine to have UI & access for RDP reception. | |
| sudo yum install -y epel-release | |
| sudo yum groupinstall -y "Server with GUI" | |
| sudo yum install -y tigervnc-server xrdp | |
| # sudo yum install -y tigervnc-server |
| #------------------------------------------------------------- | |
| ## PART 6B -- AWS SDK building on centos | |
| #------------------------------------------------------------- | |
| sudo yum install libcurl-devel openssl-devel libuuid-devel pulseaudio-libs-devel ## imp for sdk to build on centos | |
| mkdir ~/code/aws && cd ~/code/aws | |
| git clone https://github.com/awslabs/aws-lc.git | |
| # cmake -S aws-lc -B aws-lc/build -DCMAKE_INSTALL_PREFIX=<install-path> | |
| cmake -S aws-lc -B aws-lc/build |