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
source ~/.bash_profile |
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 | |
echo "===============================" | |
echo "Installing PHP 7" | |
echo "===============================" | |
sudo yum install php70 | |
echo "===============================" | |
echo "Installing PHP 7 additional commonly used php packages" | |
echo "===============================" |
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
# Login as root & update and upgrade the os: | |
apt update | |
apt upgrade | |
apt install sudo | |
# Give a user access to use sudo | |
usermod -aG suo USERNAM |
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
uname -r | |
or | |
uname -a | |
cat /etc/lsb-release | |
cat /etc/os-release |
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
# Copy one single local file to a remote destination | |
scp /path/to/source-file user@host:/path/to/destination-folder/ | |
# Copy one single file from a remote server to your current local server | |
scp user@host:/path/to/source-file /path/to/destination-folder | |
# Copy one single file from a remote server to another remote server | |
scp user1@server1:/path/to/file user2@server2:/path/to/folder/ | |
# Copy multiple files with one command |
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
php bin/magento admin:user:create --admin-user="<username>" --admin-password="<password>" --admin-email="<email>" --admin-firstname="Admin" --admin-lastname="Admin" |
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
php bin/magento info:adminuri |
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
module.exports = { | |
"parser": 'babel-eslint', | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"parserOptions": { |
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
Show hidden characters
{ | |
"presets": ["latest", "stage-0", "react"] | |
} |
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
{ | |
"name": "twitch", | |
"version": "0.1.0", | |
"private": true, | |
"dependencies": { | |
"react": "^16.2.0", | |
"react-dom": "^16.2.0", | |
"react-scripts": "1.1.0", | |
"node-sass-chokidar": "0.0.3", | |
"npm-run-all": "^4.1.1", |