Skip to content

Instantly share code, notes, and snippets.

@maxnasonov
maxnasonov / jsonapi_oas.yml
Created May 3, 2023 17:01 — forked from naesean/jsonapi_oas.yml
OpenAPI 3.0 schemas that comply with the JSON:API 1.0 specification
JSONAPIObject:
description: Includes the current JSON:API version for this specification as well as optional meta information
type: object
required:
- version
properties:
version:
type: string
default: '1.0'
example: '1.0'
@maxnasonov
maxnasonov / Proxy.ps1
Last active December 13, 2016 22:15 — forked from p0w3rsh3ll/Proxy.ps1
# Define a proxy
Configuration Proxy {
$whitelist = '*.google.com;*.example.com;192.168.*;127.*;localhost'
$prefix_hex = [String]::Format("{0:X}", [Convert]::ToUint32($prefix.tochararray()[0]))
$suffix_hex = [String]::Format("{0:X}", [Convert]::ToUint32($suffix.tochararray()[0]))
$proxy_url = "proxy.example.com:3128"
$proxy_url_length = '{0:X}' -f $proxy_url.length
$proxy_url_hex = StringToHex -string $proxy_url
$whitelist_hex = StringToHex -string $whitelist
$whitelist_length = '{0:X}' -f $whitelist.length