Skip to content

Instantly share code, notes, and snippets.

View d1mf's full-sized avatar
🏠
Working from home

Dmytro Babyk d1mf

🏠
Working from home
View GitHub Profile
@cras4202tw
cras4202tw / CentOS 8 LNMP
Last active July 6, 2020 09:21
CentOS 8 LNMP
#!/bin/bash
clear
setenforce 0
sed -i 's/^SELINUX=.*$/SELINUX=disabled/' /etc/selinux/config
sed -i 's@LANG=.*$@LANG="en_US.UTF-8"@g' /etc/locale.conf
cat > /etc/yum.repos.d/nginx.repo << EOF
[nginx]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/8/\$basearch/
gpgcheck=0
@katalystsol
katalystsol / upgrade-maria-db-on-ubuntu
Created August 29, 2019 18:42
Upgrade MariaDB 10.3 to 10.4 on Ubuntu 18
# https://mariadb.com/kb/en/library/upgrading-from-mariadb-103-to-mariadb-104/
# Add MariaDB APT repo
sudo apt-get update
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu bionic main'
sudo apt-get update
# Stop MariaDB
sudo systemctl stop mysql
@luckydev
luckydev / gist:b2a6ebe793aeacf50ff15331fb3b519d
Last active October 22, 2022 14:03
Increate max no of open files limit in Ubuntu 16.04/18.04 for Nginx
# maximum capability of system
user@ubuntu:~$ cat /proc/sys/fs/file-max
708444
# available limit
user@ubuntu:~$ ulimit -n
1024
# To increase the available limit to say 200000
user@ubuntu:~$ sudo vim /etc/sysctl.conf
@gunjanpatel
gunjanpatel / amazon-ec2-ftp.md
Last active October 10, 2023 15:31
amazon ec2 LAMP and FTP installation and setup