Skip to content

Instantly share code, notes, and snippets.

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

Dennis Y. Parygin dyp2000

🏠
Working from home
  • RUSSIA, Yekaterinburg
View GitHub Profile
@dyp2000
dyp2000 / 2019-https-localhost.md
Created September 26, 2022 11:10 — forked from cecilemuller/2019-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).

@dyp2000
dyp2000 / uniqid.js
Created June 19, 2018 06:51 — forked from ain/uniqid.js
JavaScript alternative of PHP uniqid()
function uniqid (prefix, more_entropy) {
// + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
// + revised by: Kankrelune (http://www.webfaktory.info/)
// % note 1: Uses an internal counter (in php_js global) to avoid collision
// * example 1: uniqid();
// * returns 1: 'a30285b160c14'
// * example 2: uniqid('foo');
// * returns 2: 'fooa30285b1cd361'
// * example 3: uniqid('bar', true);
// * returns 3: 'bara20285b23dfd1.31879087'