Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
const crypto = require("crypto") | |
// The `generateKeyPairSync` method accepts two arguments: | |
// 1. The type ok keys we want, which in this case is "rsa" | |
// 2. An object with the properties of the key | |
const { publicKey, privateKey } = crypto.generateKeyPairSync("rsa", { | |
// The standard secure default length for RSA keys is 2048 bits | |
modulusLength: 2048, | |
}) |
All Rights Reserved | |
Copyright (c) ${project.inceptionYear} ${owner} | |
Created by Techcable | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
addEventListener('fetch', event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// Following code is a modified version of that found at https://blog.cloudflare.com/dronedeploy-and-cloudflare-workers/ | |
/** | |
* Fetch and log a request | |
* @param {Request} request | |
*/ |
#!/bin/bash | |
SNAPPY_DIR=/usr/local/snappy | |
LEVELDB_DIR=/usr/local/leveldb | |
ROOT_DIR=$(pwd) | |
BUILD_DIR=/tmp/build_leveldb | |
mkdir -p $BUILD_DIR |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
section .text | |
global _start | |
_start: | |
xor eax, eax | |
xor ebx, ebx | |
xor esi, esi | |
jmp _socket | |
_socket_call: |
{ | |
"result_count": 3, | |
"results": [ | |
{ | |
"_href": "/ws.v1/lswitch/3ca2d5ef-6a0f-4392-9ec1-a6645234bc55", | |
"_schema": "/ws.v1/schema/LogicalSwitchConfig", | |
"type": "LogicalSwitchConfig" | |
}, | |
{ | |
"_href": "/ws.v1/lswitch/81f51868-2142-48a8-93ff-ef612249e025", |
Line | Properties | broker1 Values (mosquitto.br_conf) | broker0 Values (mosquitto.conf) | Description | |
---|---|---|---|---|---|
210 | port | 1884 | 1883 | Port to use for the default listener | |
310 | tls_version | tlsv1.2 | tlsv1.2 | the version of the TLS protocol to use for this listener | |
374 | listener | - | 8883 | listener port-number [ip address/host name] | |
450 | cafile | - | C:\...\mosquitto\certs\ca.crt | defines the path to a file containing the CA certificates | |
454 | certfile | - | C:\...\mosquitto\certs\server.crt | Path to the PEM encoded server certificate | |
457 | keyfile | - | C:\...\mosquitto\certs\server.key | Path to the PEM encoded keyfile | |
651 | allow_anonymous | false | false | If `password_file` or `psk_file` is set | |
669 | password_file | C:\...\mosquitto\passwordfile.pwd | C:\...\mosquitto\passwordfile.pwd | If password_file is set the auth_plugin check will be made first | |
728 | acl_file | C:\...\mosquitto\acl.acl | C:\...\mosquitto\acl.acl | If acl_file is set the auth_plugin check will be made first |