Skip to content

Instantly share code, notes, and snippets.

@7x7
7x7 / install-php-on-ubuntu.md
Created July 11, 2019 10:03
Install PHP on Ubuntu. e.g., Ubuntu18.04 x64, PHP7.3.7

PHP

Installation

Add the PHP repository

ondrej/php: the main PPA for supported PHP versions with many PECL ext.

$ sudo add-apt-repository ppa:ondrej/php
@7x7
7x7 / install-nodejs-on-ubuntu.md
Last active July 11, 2019 10:09
Install MySQL on Ubuntu. e.g., Ubuntu18.04 x64, Node.js v12.x, Node.js v11.x, Node.js v10.x, Node.js v8.x

Node.js

Installation

Select version

Node.js v12.x:

$ curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
@7x7
7x7 / install-go-on-ubuntu.md
Last active July 11, 2019 10:08
Install Go on Ubuntu. e.g., Ubuntu18.04 x64, Go1.12.7

Go

Installation

Download archive file

Download the archive file appropriate for your installation. For example:

$ Wget -c https://dl.google.com/go/go$VERSION.$OS-$ARCH.tar.gz
@7x7
7x7 / install-mysql-on-ubuntu.md
Created July 11, 2019 09:53
Install MySQL on Ubuntu. e.g., Ubuntu18.04 x64, MySQL8.0.16

MySQL

Installation

Adding the MySQL APT Repository

First, add the MySQL APT repository to your system's software repository list. Follow these steps:

  1. Go to the download page for the MySQL APT repository at https://dev.mysql.com/downloads/repo/apt/.
@7x7
7x7 / install-nginx-on-ubuntu.md
Last active July 11, 2019 10:07
Install Nginx on Ubuntu. e.g., Ubuntu18.04 x64, Nginx1.17.1

Nginx

Installation

Install the prerequisites:

$ sudo apt install curl gnupg2 ca-certificates lsb-release
@7x7
7x7 / GitConfigHttpProxy.md
Last active March 7, 2019 04:54 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like: