Skip to content

Instantly share code, notes, and snippets.

View Kaneda-1's full-sized avatar

Kaneda Kaneda-1

  • 22:57 (UTC +01:00)
View GitHub Profile
// Add this into your .htaccess file at the root of your WordPress installation. By Robin Scott of Silicon Dales.
// See full details here: https://silicondales.com/tutorials/wordpress/lock-out-all-traffic-except-your-ip-from-login-admin/
<Files wp-login.php>
Order Deny,Allow
Deny from all
Allow from X.X.X.X
</Files>
@Kaneda-1
Kaneda-1 / wsl2-ubuntu-lamp.md
Created July 10, 2024 14:21 — forked from abobija/wsl2-ubuntu-lamp.md
LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

LAMP stack on WSL2 (Ubuntu 20.04) - Apache, MySQL, PHP, PhpMyAdmin

Apache

sudo apt-get update && sudo apt-get upgrade 
sudo apt-get install -y apache2

PHP

@Kaneda-1
Kaneda-1 / makecert.bat
Created June 27, 2024 11:39 — forked from Tynael/makecert.bat
makecert.bat used in XAMPP to create a self-signed SSL certificate
@echo off
set OPENSSL_CONF=./conf/openssl.cnf
if not exist .\conf\ssl.crt mkdir .\conf\ssl.crt
if not exist .\conf\ssl.key mkdir .\conf\ssl.key
bin\openssl req -new -out server.csr
bin\openssl rsa -in privkey.pem -out server.key
bin\openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 1825 -extfile v3.ext