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).
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).
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse | |
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse |
This gist will no longer be updated as the changelog will be on the official website.
Converted via https://domchristie.github.io/turndown
from multiprocessing.queues import Queue | |
import multiprocessing | |
# The following implementation of custom MyQueue to avoid NotImplementedError | |
# when calling queue.qsize() in MacOS X comes almost entirely from this github | |
# discussion: https://github.com/keras-team/autokeras/issues/368 | |
# Necessary modification is made to make the code compatible with Python3. | |
class SharedCounter(object): |
git fetch --all | |
git reset --hard origin/master | |
git pull origin master |
# Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-36-generic x86_64) | |
# (из коробки) OpenSSL 1.1.0g 2 Nov 2017 | |
# (из коробки) curl 7.58.0 (x86_64-pc-linux-gnu) | |
# PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS ) | |
# Компилим GOST-engine | |
sudo apt install cmake libssl-dev | |
git clone --branch=openssl_1_1_0 https://github.com/gost-engine/engine.git gost-engine/engine | |
cd gost-engine/engine | |
cmake . |
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' |
#!/usr/bin/env bash | |
echo -n -e "\033]0;Homebrew Update...\007" | |
brew -v update | |
echo "Press any key to continue..." | |
read -k1 -s | |
echo "Upgrading..." | |
brew -v upgrade | |
echo "Press any key to continue..." |
<?php | |
/** | |
* Given a URL, normalize that URL. | |
* @param String URL | |
* @return String Normalized URL | |
*/ | |
function normalizeUrl($url) | |
{ | |
$newUrl = ""; | |
$url = parse_url($url); |
-module(netutil). | |
-author('Juan Jose Comellas <juanjo@comellas.org>'). | |
%% API | |
-export([get_local_ip_from_subnet/1, get_ip_from_subnet/2, | |
cidr_network/1, cidr_netmask/1]). | |
%% @type ipv4() = {integer(), integer(), integer(), integer()} | |