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/sh | |
| # Install | |
| curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
| echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
| sudo apt update | |
| sudo npm install -g yarn | |
| yarn --version | |
| # Uninstall |
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
| # pragma solidity ^0.4.9; | |
| pragma solidity >=0.4.21 <0.6.0; | |
| contract SafeMath { | |
| function safeMul(uint a, uint b) internal returns (uint) { | |
| uint c = a * b; | |
| assert(a == 0 || c / a == b); | |
| return c; | |
| } |
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 | |
| COMPOSE_VERSION="1.25.0" | |
| COMPOSE_URL="https://github.com/docker/compose/releases/download/$COMPOSE_VERSION/docker-compose-$(uname -s)-$(uname -m)" | |
| # Microkube bootstrap script | |
| install_core() { | |
| sudo bash <<EOS | |
| apt-get update | |
| apt-get upgrade -y -q |
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 | |
| # Ubuntu (GNOME) 18.04 Enable VNC with no encryption | |
| sudo apt install gconf2 -y | |
| sudo ufw allow from any to any port 5900 proto tcp | |
| gconftool-2 --set --type=bool /desktop/gnome/remote_access/enabled true | |
| gsettings set org.gnome.Vino prompt-enabled false | |
| gsettings set org.gnome.Vino require-encryption false | |
| echo $'\n'$"*** Encryption Disabled ***" | |
| echo $'\n'$"*** Launching Settings ***" |
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
| FIRST INSTALL THESE USEFUL / REQUIRED PACKAGES | |
| sudo apt-get install wget unzip software-properties-common dpkg-dev git make gcc automake build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgd-dev libgeoip-dev libgoogle-perftools-dev libperl-dev pkg-config autotools-dev gpac ffmpeg mediainfo mencoder lame libvorbisenc2 libvorbisfile3 libx264-dev libvo-aacenc-dev libmp3lame-dev libopus-dev unzip | |
| ADD THE NGINX REPOSITORY AND UPDATE | |
| sudo add-apt-repository ppa:nginx/stable | |
| apt update | |
| INSTALL NGINX |
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-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 | |
| echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list | |
| sudo apt update | |
| sudo apt install mongodb-org | |
| sudo systemctl enable mongod | |
| sudo systemctl start mongod | |
| sudo systemctl daemon-reload | |
| sudo systemctl restart mongod | |
| sudo systemctl status mongod | |
| mongod --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
| sudo apt update && sudo apt install vsftpd | |
| sudo service vsftpd status | |
| sudo ufw allow OpenSSH | |
| sudo ufw allow 20/tcp | |
| sudo ufw allow 21/tcp | |
| sudo ufw allow 40000:50000/tcp | |
| sudo ufw allow 990/tcp | |
| sudo ufw allow ssh | |
| sudo adduser ftpuser |
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 | |
| # This script will do Ruby Uninstall Linux and reboot Linux | |
| sudo apt-get purge ruby | |
| sudo rm -rf /usr/local/lib/ruby | |
| sudo rm -rf /usr/lib/ruby | |
| sudo rm -f /usr/local/bin/ruby | |
| sudo rm -f /usr/bin/ruby | |
| sudo rm -f /usr/local/bin/irb |
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
| HIRE Me For Your Project Support :) | |
| Telegram: https://t.me/LinuxGun | |
| #!/bin/bash | |
| # Completely Remove Apache Ubuntu | |
| service apache2 stop | |
| apt purge apache2 | |
| apt remove apache2.* | |
| apt autoremove | |
| whereis apache2 |
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-get install apt-transport-https | |
| udo apt-get upgrade | |
| sudo apt install virtualbox virtualbox-ext-pack | |
| wget https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
| chmod +x minikube-linux-amd64 | |
| sudo mv minikube-linux-amd64 /usr/local/bin/minikube | |
| minikube version | |
| curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - | |
| sudo apt install curl |