This sample code shows how to create an OpenSSL server application.
Prerequisites:
$ sudo apt-get install gcc pkg-config libssl-dev openssl
import multiprocessing as mp | |
from multiprocessing.pool import Pool | |
# GOAL IN CONTEXT: | |
# Simulate using a multiprocessing pool to download a list of files synchronously | |
# from a set of servers where each worker in the pool targets a specific | |
# download server. | |
# Our Worker subclasses Process so the target server can be added as an attribute. | |
# A CustPool subclasses Pool so our Worker subclass is used instead of Process. |
# ---------------------------------------------------------------------------------------------------------- | |
# PURPOSE: Creates a byte array for use with DHCP Option 119 | |
# | |
# VERSION DATE USER DETAILS | |
# 1 07/03/2016 Craig Tolley First version | |
# 1.1 08/03/2016 Craig Tolley Fixed issue where if the whole domain matched the pointer was incorrect | |
# 1.2 08/03/2017 Craig Tolley Fixed further issues where the whole domain was matched the pointers are incorrect | |
# Modified outputs and tidied some formatting | |
# Convert-StringToOpt119Hex option fixed to not return values for null/empty strings | |
# |
#!/usr/bin/env python | |
# | |
# find-entropy.py | |
# | |
# A simple Utility to measure entropy of strings. | |
# Usage should be something like this: | |
# | |
# $ strings file.txt | python find-entropy.py | |
# |
See also:
Service | Type | Storage | Limitations |
---|---|---|---|
Amazon DynamoDB | 25 GB | ||
Amazon RDS | |||
Azure SQL Database | MS SQL Server | ||
👉 Clever Cloud | PostgreSQL, MySQL, MongoDB, Redis | 256 MB (PostgreSQL) | Max 5 connections (PostgreSQL) |
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:meta/meta.dart'; | |
import 'package:mime/mime.dart'; | |
import 'package:path/path.dart'; | |
import 'package:http/http.dart' as http; | |
abstract class ApiClient { |
# FindZIP.cmake - Pack and unpack ZIP files as custom targets | |
# ------------------------------------------------------------------------------ | |
# Provides: | |
# | |
# ZIP_PACK_TARGET TARGET WORKING_DIRECTORY ARCHIVE FILES... | |
# TARGET - The name of the custom target | |
# WORKING_DIRECTORY - The working directory for the zip command | |
# ARCHIVE - The full archive path | |
# FILES... - The files and directories to include in the archive | |
# (relative to WORKING_DIRECTORY) |