Skip to content

Instantly share code, notes, and snippets.

View Jakiboy's full-sized avatar
🖥️
Keyboarding from 127.0.0.1

Jakiboy Jakiboy

🖥️
Keyboarding from 127.0.0.1
View GitHub Profile
@Jakiboy
Jakiboy / WordPress.md
Created April 4, 2023 20:59
WordPress (Tweaks)

WordPress (Tweaks)

⚡ Automation

#!/bin/bash
R='\033[0;31m'
G='\033[0;32m'
B='\033[0;96m'

WSL

⚡ Network

Host (Windows)

netsh interface ip add address "vEthernet (WSL)" 192.168.100.1 255.255.255.0
@Jakiboy
Jakiboy / Vagrant.md
Created April 4, 2023 20:51
Vagrant (Virtualbox)

Vagrant (Virtualbox)

⚡ Init

vagrant init debian/bullseye64

@Jakiboy
Jakiboy / VPS.md
Created April 4, 2023 20:48
LAMP (Debian 11)

LAMP (Debian 11)

⚡ Update / Upgrade

Update source:

@ /etc/apt/sources.list

deb http://deb.debian.org/debian/ {dist} main
@Jakiboy
Jakiboy / Vhost.md
Created April 4, 2023 20:47
Vhost (Example)

Vhost (Example)

⚡ Configuration

<VirtualHost *:80>
  ServerAdmin webmaster@{domain}
  ServerName {domain}
  ServerAlias {sub}.{domain}
 DocumentRoot "/var/www/html/{domain}"
@Jakiboy
Jakiboy / PHP.md
Created April 4, 2023 20:46
PHP (Optimisation)

PHP (Optimisation)

⚡ Configuration

@ /etc/php/7.4/apache2/php.ini
@ /etc/php/7.4/fpm/php.ini

Global

@Jakiboy
Jakiboy / Nginx.md
Created April 4, 2023 20:45
Nginx (Load balancing / Reverse Proxy)

Nginx (Load balancing / Reverse Proxy)

Load balancing / Reverse Proxy for Apache & PHP-FPM.

⚡ Installation

apt-get install apache2
apt-get install php7.4-fpm
apt-get install nginx
@Jakiboy
Jakiboy / MySQL.md
Created April 4, 2023 20:44
MySQL (Optimisation)

MySQL (Optimisation)

⚡ Setup

Commands

SHOW VARIABLES LIKE "[name]";
@Jakiboy
Jakiboy / Git.md
Created April 4, 2023 20:44
GIT (Documentation)

GIT (Documentation)

Configuration

git config --global user.name "{username}"
git config --global user.email "{email}"
git config --global core.ignorecase false
git config --global core.editor {subl}
git config --global merge.tool {filemerge}
@Jakiboy
Jakiboy / Apache.md
Created April 4, 2023 20:42
Apache (Optimisation)

Apache (Optimisation)

⚡ Installation

Global

apt-get install apache2-utils