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: |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import urllib2 | |
gh_url = 'https://api.github.com' | |
req = urllib2.Request(gh_url) | |
password_manager = urllib2.HTTPPasswordMgrWithDefaultRealm() |
#!/bin/bash | |
SNAPPY_DIR=/usr/local/snappy | |
LEVELDB_DIR=/usr/local/leveldb | |
ROOT_DIR=$(pwd) | |
BUILD_DIR=/tmp/build_leveldb | |
mkdir -p $BUILD_DIR |
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 | |
*/ |
Value | Description | Reference | |
---|---|---|---|
1×× | Informational | ||
100 | Continue | [RFC-ietf-httpbis-semantics, Section 15.2.1] | |
101 | Switching Protocols | [RFC-ietf-httpbis-semantics, Section 15.2.2] | |
102 | Processing | [RFC2518] | |
103 | Early Hints | [RFC8297] | |
104-199 | Unassigned | ||
2×× | Success | ||
200 | OK | [RFC-ietf-httpbis-semantics, Section 15.3.1] | |
201 | Created | [RFC-ietf-httpbis-semantics, Section 15.3.2] |
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 |
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, | |
}) |