Jon Hemstreet Blog

Fetching new Authorization tokens from AWS Congito through Postman

Fetching new Authorization tokens from AWS Congito through Postman

Create a lambada to fetch the token from Cognito, Return as { “id”: “idToken” }. We can go into postman and create a “Test” method and use the following:

Renaming API gateway instances

Renaming API gateway instances

Sometimes things happen ( serverless node in my case ) where a generated api gateway name is not the desired one that you want in the end. Renaming them is relatively straightforward ( yet...

Multiple Angular Builds for Blue-Green Deployments using .htaccess and AWS Elasticbeanstalk

Multiple Angular Builds for Blue-Green Deployments using .htaccess and AWS Elasticbeanstalk

Bugs happen all the time, Many times bugs are presented in a production environment where the same code seemed to work flawlessly in a test or staging environment. Over the years of writing code...

Mac OS Sierra Kernel task over 100%

Mac OS Sierra Kernel task over 100%

Disable Mac SIP Boot into recovery mode, After the noise boot into recovery mode ( restart and press Command-R-S ). This will boot in terminal recovery mode.

Ubuntu running .desktop application on boot

Ubuntu running .desktop application on boot

Occasionally you will need to run an application on boot. This could be a script or a full blown application. Root access or not, it does not matter.

Ubuntu stop sudo password prompt

Ubuntu stop sudo password prompt

If you are working on a script that needs to be run as sudo we need to add out permissions to our current user ( or whoever will be running the script )

Ubuntu desktop icon to launch scripts

Ubuntu desktop icon to launch scripts

If you would like to launch a script, or a collection of scripts from a desktop icon on ubuntu. from ~/Desktop create a file with the extension of .desktop in my case I made start.desktop

Creating a bootable USB drive from ISO on mac

Get a list of the current drives that are mounted. It will be something like “/dev/disk2″. Notice the number at the end, this is the most important part. The current format of the usb...

Kill zombie processes that opened a port

If you are having issues with running a script because a process already has the port open, in this error example, it’s port 3000 Error: listen EADDRINUSE :::3000 We can create a bash script...