Skip to content

Instantly share code, notes, and snippets.

{
"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": [
{
@Chubby-Chocobo
Chubby-Chocobo / genesis.json
Created October 11, 2019 17:53
Test Cosmos genenis
{
"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
@Chubby-Chocobo
Chubby-Chocobo / Ubuntu.md
Last active August 17, 2019 02:33
Adjust swapfile
@Chubby-Chocobo
Chubby-Chocobo / CentOS_NodeJS_Installation.sh
Last active June 14, 2019 17:13
Quick install NodeJS on Centos RHEL 7.5
# 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
@Chubby-Chocobo
Chubby-Chocobo / python_install.sh
Created April 22, 2018 05:06
Install python 3.6 on Centos 7
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
@Chubby-Chocobo
Chubby-Chocobo / Misc stuffs.md
Last active September 19, 2018 05:43
Don't want to google anytime I need them

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