Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Laberge DanielLaberge

  • ConstructBuy
  • Canada
View GitHub Profile
View LG-Smart-TV-Blocklist-unbound
0.0.0.0 us.rdx2.lgtvsdp.com
0.0.0.0 us.info.lgsmartad.com
0.0.0.0 us.ibs.lgappstv.com
0.0.0.0 CA.ibs.lgappstv.com
0.0.0.0 us.lgtvsdp.com
0.0.0.0 ad.lgappstv.com
0.0.0.0 smartshare.lgtvsdp.com
0.0.0.0 ibis.lgappstv.com
# added after fork
@DanielLaberge
DanielLaberge / postman-pre-request.js
Last active Aug 13, 2021 — forked from bcnzer/postman-pre-request.js
Postman pre-request script to automatically get an id_token from AWS Cognito using a Refresh Token and save it for reuse
View postman-pre-request.js
/* This Postman pre-request script allows using an id_token from an Amazon Cognito OAuth2 flow instead of the access_token.
It only exists as a workaround because Postman's team has been ignoring requests to let us use an id_token instead of access_token since 2014.
See: https://github.com/postmanlabs/postman-app-support/issues/8231 and https://github.com/postmanlabs/postman-app-support/issues/492
It has been adapted to support AWS Cognito User Pools from https://gist.github.com/bcnzer/073f0fc0b959928b0ca2b173230c0669#file-postman-pre-request-js-L29
It uses a refresh_token (which you must get manually) and exchanges it for an id_token, and refreshes it automatically as needed.
You could use it to talk to most OAuth2 Endpoints with very minimal changes.
How to use:
View Tesla-charger-requirements.md

Thank you for considering the installation of an electric charge point for my vehicule.

Here are the requirements to install a Tesla High Power Wall Connector (HPWC):

  • A 240V circuit is required with a minimum rating of 20A. Ideally 30A, 40A or 50A, to allow faster charging.

  • A wire will need to be installed running from the nearest electrical panel to a wall near the parking spot. The following diagram shows the locations where the charger can be installed in relation to the car/parking spot: InstallLocationDiagram

  • Optionally, a power receptacle (like NEMA 10-30 or NEMA 14-50) can be installed to allow other eventual cars or chargers to be easily plugged in. In this case, I would simply connect my charger to this port, rather than run the wire directly to my charger.