- Create configuration file with SAN attributes san.cnf:
[req]
distinguished_name = req_distinguished_name
x509_extensions = req_ext
prompt = no
[req_distinguished_name]
countryName = UA
stateOrProvinceName = AA
localityName = Kyiv
| require 'base64' | |
| require 'openssl' | |
| # 3 parameters needed | |
| if ARGV.length == 3 | |
| API_KEY = ARGV[0] | |
| API_SECRET_KEY = ARGV[1] | |
| OAUTH_CALLBACK = ARGV[2] | |
| else | |
| puts "USAGE: ruby twitter_request_token.rb API_KEY API_SECRET_KEY OAUTH_CALLBACK" |
[req]
distinguished_name = req_distinguished_name
x509_extensions = req_ext
prompt = no
[req_distinguished_name]
countryName = UA
stateOrProvinceName = AA
localityName = Kyiv
Granted, this is little more than an obfuscated way of having a publicly writable S3 bucket, but if you don’t have a server which can pre-sign URLs for you, this might be an acceptable solution.
For this to work, you take the following steps:
| ## REQUEST MAPPING | |
| { | |
| "version" : "2017-02-28", | |
| "operation" : "Query", | |
| "index": "shopID-vendorID-index", | |
| "query" : { | |
| "expression": "shopID = :shopID AND vendorID = :vendorID", | |
| "expressionValues" : { | |
| ":shopID" : $util.dynamodb.toDynamoDBJson($ctx.args.shopID), | |
| ":vendorID" : $util.dynamodb.toDynamoDBJson($ctx.args.vendorID) |
| { | |
| "configurations": [ | |
| { | |
| "name": "ESP-IDF", | |
| "includePath": [ | |
| "${workspaceFolder}/**" | |
| ], | |
| "defines": [], | |
| "compilerPath": "${env.HOME}/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++", | |
| "cStandard": "c99", |
| #include <stddef.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdarg.h> | |
| // some parsing definition struct | |
| // .offsets - offsets of structure members | |
| typedef struct ParsingDef_t { | |
| const char* scanfPattern; |