Sort contents of a directory includes hidden files
du -sch .[!.]* * | sort -h
{ | |
"openapi": "3.0.0", | |
"info": { | |
"title": "Wallets API", | |
"description": "Swagger specification for API Wallets | [swagger.json](/docs/wallets-json)", | |
"version": "1.0.0", | |
"contact": {} | |
}, | |
"tags": [ | |
{ |
{ | |
"genesis_time": "2019-10-11T17:17:29.869395064Z", | |
"chain_id": "testing", | |
"consensus_params": { | |
"block": { | |
"max_bytes": "22020096", | |
"max_gas": "-1", | |
"time_iota_ms": "1000" | |
}, | |
"evidence": { |
Sort contents of a directory includes hidden files
du -sch .[!.]* * | sort -h
Reference: https://askubuntu.com/questions/1075505/how-do-i-increase-swapfile-in-ubuntu-18-04
sudo swapon --show
# Common | |
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
# Redis | |
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum -y install epel-release yum-utils | |
sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
sudo yum-config-manager --enable remi |
#!/bin/sh | |
cd /home/ec2-user/neo-cli | |
screen -S neocli -X quit | |
chmod +x neo-cli | |
screen -S neocli -dm ./neo-cli --nopeers /rpc |
#!/bin/sh | |
screen -S neo-python -X quit | |
cd neo-python | |
mkdir -p .log | |
# git checkout master | |
# git pull | |
python3.6 -m venv venv | |
source venv/bin/activate |
#!/bin/sh | |
sudo yum -y update | |
sudo yum -y groupinstall "Development Tools" | |
sudo yum -y install gcc gcc-c++ texinfo | |
sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum -y install epel-release | |
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm | |
sudo yum -y update |
sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm | |
sudo yum update | |
sudo yum install -y python36u python36u-libs python36u-devel python36u-pip |
Download file from Gooogle Drive by wget command
$ wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=INPUT_FILE_ID_HERE' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=INPUT_FILE_ID_HERE" -O chain.acc && rm -rf /tmp/cookies.txt
Laravel update permission for cache/storage folders when selinux is on
# sudo chmod -R +w storage
# sudo chmod -R +w bootstrap/cache
# sudo chcon -t httpd_sys_rw_content_t -R storage