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
sudo apt update | |
sudo apt install vsftpd | |
sudo cp -v /etc/vsftpd.conf /etc/vsftpd.conf.bk | |
sudo nano /etc/vsftpd.conf | |
Uncomment below lines. | |
write_enable=YES | |
local_umask=022 | |
chroot_local_user=YES |
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
mysql -u root -p | |
CREATE DATABASE wordpressdb DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; | |
EXIT: | |
sudo nano /etc/apache2/sites-available/wordpress.conf | |
<Directory /var/www/wordpress/> | |
AllowOverride All |
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
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
sudo add-apt-repository "deb https://download.sublimetext.com/ apt/stable/" | |
sudo apt update | |
sudo apt install sublime-text |
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
#video tutorial | |
https://youtu.be/0plDaZ3aJ2M | |
echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list | |
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install rabbitmq-server | |
sudo systemctl enable rabbitmq-server | |
sudo systemctl start rabbitmq-server |
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
sudo apt update && sudo apt upgrade -y | |
sudo apt-get install redis-server -y | |
sudo vi /etc/redis/redis.conf | |
:setnu | |
make line | |
559 maxmemory 256 | |
and | |
590 maxmemory-policy allkeys-lru | |
:wq |
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
COMMAND MODE | |
i = Enter insert mode | |
o = Insert after current line (enter insert mode) | |
O = Insert before current line (enter insert mode) | |
a = Append after current character (enter insert mode) | |
A = Append at end of line (enter inset mode) | |
u = undo |
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
sudo apt update && sudo apt upgrade -y | |
cd ~/Downloads/ | |
sudo wget https://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.zip | |
sudo apt-get install unzip -y && | |
sudo unzip ruby-2.5.3.zip -d ~/Downloads/ | |
cd ruby-2.5.3 && sudo ./configure && sudo make && sudo make install | |
ruby --version |
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
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt-get update | |
sudo apt-get install sublime-text |
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
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add - | |
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list | |
sudo apt-get update | |
sudo apt-get install sublime-text |
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
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" > /etc/apt/sources.list.d/PostgreSQL.list' | |
sudo apt update | |
sudo apt-get install postgresql-10 | |
sudo systemctl stop postgresql.service | |
sudo systemctl start postgresql.service | |
sudo systemctl enable postgresql.service | |
sudo systemctl status postgresql.service |