Skip to content

Instantly share code, notes, and snippets.

/*
The code below provides the following examples:
- Create S3 Signed URL
- Create CloudFront Signed URL with Canned Policy
- Create CloudFront Signed URL with a Custom Policy
- Create CloudFront Signed Cookie with Canned Policy
- Create CloudFront Signed Cookie with Custom Policy
By using the 'aws-sdk' library we don't need to use crypto libraries or need to remove whitespace or do base64.
The 'aws-sdk' does all this for us.
@BarDev
BarDev / OneNote - mac.md
Last active July 1, 2019 16:24
Keyboard Shortcuts
@BarDev
BarDev / iTerm2.md
Last active February 18, 2019 15:44
iTerm2

Recent Directories
<opt> + <cmd> + /
⌥ + ⌘ + /

@BarDev
BarDev / Web Logging Proxy.md
Last active January 25, 2019 19:45
Web Logging Proxy for Debugging, Testing, and Development

Web Logging Proxy for Debugging, Testing, and Development

Why

Almost every application these days communicates over HTTP: websites, RESTful services, and even SOAP APIs all make use of Hypertext Transfer Protocol. For the most part, we don’t worry too much about what is happening at the network level when we’re building these applications. However, from time to time a problem will show up that needs us to drop to the level of the network to figure out what is going on.

HTTP proxy, also known as HTTP monitor or Reverse Proxy, that allows the tester to view all of the HTTP and SSL/HTTPS traffic between their machines and traffic from the intranet/Internet. This includes requests, responses, and HTTP headers. These types of tools allow the tester to quickly find the source of the problem, efficiently sort through the different types of errors that come up, and duplicate various test scenarios.


What

@BarDev
BarDev / HombrewCheatsheet.md
Last active August 24, 2024 20:02
Homebrew
@BarDev
BarDev / git-commands.md
Last active December 30, 2020 21:09
Git Commands

git Commands

Undo Work

Undo Last Commit

git reset --soft HEAD^
@BarDev
BarDev / Bash-Setup.md
Last active August 21, 2020 03:17
Bash Setup

Bash Setup

Get Histoery that Matches input

FROM Microsoft WSL Ubuntu

in file ~/.inputrc or /etc/inputrc

# /etc/inputrc - global inputrc for libreadline
@BarDev
BarDev / kubernetes-commands.md
Last active October 2, 2018 20:59
Kubernetes Commands

Kubernetes Commands

View Container Logs

kubectl logs prometheus-prometheus-0 -c prometheus -n infrastructure

Minikube Commands

@BarDev
BarDev / aws-cli-commands.md
Last active September 14, 2018 17:03
AWS CLI Commands
@BarDev
BarDev / 01 - create-kubernetes-cluster-gossip-aws.md
Last active September 15, 2018 23:48
Create Kubernetes Cluster Gossip on AWS