Have tested these steps successfully with Ubuntu guest of:
22.04LTS
18.04LTS
16.04LTS
using VirtualBox editions of 6.1
, 6.0
, 5.2
and 5.1
as host.
Tip
By default npm publish
will publish all files within a working directory - excluding .gitignore
/ .npmignore
/ package-lock.json
.
This is typically fine, but often I find myself leaving un-staged files (e.g. TODO.txt
files) in a repository root and these of course get accidently taken along for the publish ride.
Helper script npm-publish-wrap.sh
will catch calls to npm publish
and:
.git
directory) found.Microsoft active directory servers will default to offer LDAP connections over unencrypted connections (boo!).
The steps below will create a new self signed certificate appropriate for use with and thus enabling LDAPS for an AD server. Of course the "self-signed" portion of this guide can be swapped out with a real vendor purchased certificate if required.
Steps have been tested successfully with Windows Server 2012R2, but should work with Windows Server 2008 without modification. Requires a working OpenSSL install (ideally Linux/OSX) and (obviously) a Windows Active Directory server.
<?php | |
// https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
class DumpHTTPRequestToFile { | |
public function execute($targetFile) { | |
$data = sprintf( | |
"%s %s %s\n\nHTTP headers:\n", | |
$_SERVER['REQUEST_METHOD'], | |
$_SERVER['REQUEST_URI'], | |
$_SERVER['SERVER_PROTOCOL'] |
> [!NOTE]
> Note.
Small Bash script, calling curl
with the --aws-sigv4
option to AWS V4 sign a given request for use with an IAM authorized API Gateway endpoint.
./aws-api-gateway-iam.sh \
--request GET \
"https://api-gateway.mydomain.com/this/route/aws-iam-authz"
Random query recipes of JMESPath for the AWS CLI tools that I might have written or stumbled upon.
The IFS
internal variable is used to determine what characters Bash defines as word/item boundaries when processing character strings. By default set to whitespace characters of space, tab, and newline.
Running the example ifs.sh
, comparing the difference between the default and setting only newline as a boundary we get the following output:
/path/to/first
file
/path/to/second
Template that will create the following:
REGIONAL
endpoint.POST
requests only, with Lambda proxy integration to a target function.