Skip to content

Instantly share code, notes, and snippets.

@ju1ius
ju1ius / dl-file.php
Created September 1, 2018 08:41 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
@ju1ius
ju1ius / wildcard-etc-hosts-network-manager.md
Last active May 15, 2024 14:01
Wildcard domains in /etc/hosts using NetworkManager
@ju1ius
ju1ius / 2018-https-localhost.md
Created October 17, 2020 07:11 — forked from frank-dspeed/2018-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

Create a own domain (1-10 Domains No Wildcards)

edit /etc/hosts add my.

@ju1ius
ju1ius / docker-reserved-tlds.md
Last active October 28, 2023 20:17
Using reserved TLDs for local development in Docker