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
| gatsby-plugin-page-creator@"*" | |
| npm install gatsby-plugin-page-creator@"*" | |
| yarn add gatsby-plugin-page-creator@"*" | |
| yarn add react@"*" | |
| npm add react@"*" | |
| yarn add react-dom@"*" | |
| npm install react-dom@"*" |
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
| apt update -y && apt-get upgrade -y | |
| apt update -y | |
| apt install build-essential checkinstall | |
| apt install ubuntu-restricted-extras | |
| apt install software-properties-common | |
| apt install apt-show-versions | |
| apt upgrade -o APT::Get::Show-Upgraded=true | |
| apt-show-versions | grep upgradeable | |
| add-apt-repository ppa:git-core/ppa | |
| apt update -y && apt upgrade -y |
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
| nano Gemfile | |
| gem 'bundler-auto-update' | |
| gem install bundler-auto-update | |
| bundle-auto-update -c rake test:all | |
| https://github.com/UbuntuEvangelist/bundler-auto-update |
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
| swapoff /swapfile | |
| dd if=/dev/zero of=/swapfile bs=5M count=2048 oflag=append conv=notrunc | |
| mkswap /swapfile | |
| swapon /swapfile | |
| reboot |
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 -i | |
| apt install gcc autoconf curl g++ gnupg automake bison libc6-dev libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev pkg-config sqlite3 zlib1g-dev libtool libyaml-dev make libgmp-dev libreadline-dev libssl-dev | |
| gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
| \curl -sSL https://get.rvm.io | bash -s stable --rails | |
| source /etc/profile.d/rvm.sh | |
| usermod -a -G rvm $USER | |
| rvm user gemsets | |
| rvm install 2.6.5 | |
| rvm use 2.6.5 --default | |
| ruby -v |
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
| 2 shutdown -r 0 | |
| 3 ping 8.8.8.8 -t | |
| 4 ping 8.8.8.8 | |
| 5 shutdown -r 0 | |
| 6 free | |
| 7 shutdown -r 0 | |
| 8 shutdown 0 | |
| 9 fail2ban | |
| 10 fail2ban-client | |
| 11 fail2ban-client status |
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 -i | |
| apt install software-properties-common | |
| apt-add-repository -y ppa:rael-gc/rvm | |
| apt update -y && apt upgrade -y | |
| apt install rvm | |
| source /etc/profile.d/rvm.sh | |
| usermod -a -G rvm $USER | |
| rvm user gemsets | |
| rvm install ruby | |
| OR |
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
| apt install apt-transport-https curl | |
| curl -fsSLo /usr/share/keyrings/brave-browser-archive-keyring.gpg https://brave-browser-apt-release.s3.brave.com/brave-browser-archive-keyring.gpg | |
| echo "deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main"|sudo tee /etc/apt/sources.list.d/brave-browser-release.list | |
| apt update | |
| apt install brave-browser |
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
| apt update -y && apt-get upgrade -y | |
| apt list --upgradable | |
| apt upgrade -y && apt update -y | |
| apt install build-essential checkinstall | |
| apt install ubuntu-restricted-extras | |
| apt install software-properties-common | |
| apt install apt-show-versions | |
| apt upgrade -o APT::Get::Show-Upgraded=true | |
| apt-show-versions | grep upgradeable |
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-get update | |
| sudo apt-get install denyhosts | |
| sudo apt-get install fail2ban | |
| sudo service denyhosts restart | |
| sudo service fail2ban restart | |
| sudo service fail2ban status | |
| sudo iptables -A INPUT -p tcp --dport 80 -m state --state NEW -m limit --limit 50/minute --limit-burst 200 -j ACCEPT | |
| sudo iptables -A INPUT -m state --state RELATED,ESTABLISHED -m limit --limit 50/second --limit-burst 50 -j ACCEPT | |
| sudo iptables -A INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE -j DROP | |
| sudo iptables -A INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN FIN,SYN -j DROP |