Skip to content

Instantly share code, notes, and snippets.

View hackerbin's full-sized avatar
👨‍💻
Learning everyday

Nurul Huda Robin hackerbin

👨‍💻
Learning everyday
View GitHub Profile
LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient
#!/bin/bash
echo 'Nginx install script ubuntu'
if hash nginx 2>/dev/null; then
echo 'has nginx'
else
sudo apt update -y &&
sudo apt install curl gnupg2 ca-certificates lsb-release -y &&
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list &&
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - &&
#!/bin/bash
echo 'Nginx install script ubuntu'
if hash nginx 2>/dev/null; then
echo 'has nginx'
else
sudo apt update -y &&
sudo apt install curl gnupg2 ca-certificates lsb-release -y &&
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list &&
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add - &&