Each call returns a random 32 character hexidecimal string. Based on the work done https://gist.github.com/jed/982883
Usage:
<script src="https://gist.github.com/kevinbull/f1cbc5440aa713bd5c9e.js"></script>
var unid = generateUnid();| The regex patterns in this gist are intended to match any URLs, | |
| including "mailto:foo@example.com", "x-whatever://foo", etc. For a | |
| pattern that attempts only to match web URLs (http, https), see: | |
| https://gist.github.com/gruber/8891611 | |
| # Single-line version of pattern: | |
| (?i)\b((?:[a-z][\w-]+:(?:/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])) |
| 'use strict'; | |
| /** | |
| * The default alphabet is 25 numbers and lowercase letters. | |
| * Any numbers that look like letters and vice versa are removed: | |
| * 1 l, 0 o. | |
| * Also the following letters are not present, to prevent any | |
| * expletives: cfhistu | |
| */ | |
| var ALPHABET = |
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: elasticsearch | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start daemon at boot time | |
| # Description: Enable service provided by daemon. | |
| ### END INIT INFO |
| <picture> | |
| <source media="(min-width: [browser_width]px)" srcset="/home/google-play-badge-lg.png"> | |
| <source media="(min-width: [browser_width]px)" srcset="/home/google-play-badge-md.png"> | |
| <img class="playstore-link" src="/home/google-play-badge-xs.png"> | |
| </picture> |
Each call returns a random 32 character hexidecimal string. Based on the work done https://gist.github.com/jed/982883
Usage:
<script src="https://gist.github.com/kevinbull/f1cbc5440aa713bd5c9e.js"></script>
var unid = generateUnid();| import psutil | |
| import socket | |
| interfaces = psutil.net_if_addrs() | |
| for iface in interfaces.keys(): | |
| try: | |
| s = socket.socket(interfaces[iface][0].family, socket.SOCK_DGRAM) | |
| s.connect(('8.8.8.8', 53)) | |
| print(f"{iface} successful") |
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).
| #!/bin/bash | |
| POSTGRES_HOST="" | |
| POSTGRES_PORT="" | |
| POSTGRES_USER="" | |
| POSTGRES_PASSWORD="" | |
| POSTGRES_DATABASE="" | |
| WARN="\033[0;33m" | |
| ERROR="\033[0;31m" |