Side Project Tech Stack

I want to start this post by saying this is my preference on the frameworks and technologies that I use for most of my apps. Depending on your experience and goals you should experiment to see what works for you. For example, here’s a tweet from Pieter Levels that his site is running on a single PHP file and is making over $2,000 a day. He makes a good point that if your goal is to make money, the frameworks and libraries can get in the way of you making progress. It’s impressive what he is able to accomplish by keeping things simple.

Read More

Copy SSH key to Clipboard

Copying my ssh key to my clipboard is always something I have to google. It’s different depending on operating system and depends on what you have installed. This is a short guide on how to copy your ssh key to the clipboard.

Mac

  • Type: pbcopy < ~/.ssh/id_rsa.pub

Linux (Ubuntu)

  • Type and copy output: cat ~/.ssh/id_rsa.pub

Windows (Git Bash)

  • Type: clip < ~/.ssh/id_rsa.pub

Please leave a comment below if you have a better way or would like me to add an additional operating system.

Wireless Temperature Sensor

My goal of this project was to track the temperature in different rooms in my house using multiple temperature sensors to send the data back to a raspberry pi and have the data stored historically so I could display it in charts and send alerts. As a follow up to my wireless power outlet project, I wanted to use the 433mhz receiver. I came across some wireless temperature sensors that work over 433mhz. These temperature sensors are great because they are cheap, well built, battery powered and outdoor resistant. I was surprised at how difficult it is to decode the signal coming from the temperature sensors. Read More

Headless Chrome on Heroku

I’ve been experimenting with headless chrome for a Link Unshortener tool I’ve built to take screenshots of websites. I’ve been using BrowserShot which is great. It’s a php wrapper around Puppeteer which makes it simple to use in Laravel. To experiment more with Puppeteer, I wanted to get a node app running on Heroku. Overall it’s pretty straight forward but there are a few gotchas.

Here is a sample project that should get you started. Clone this and take a look at the source. You’ll notice I specified the node.js version in the package.json file. This is required for Heroku to know what version of node to use. Another issue I ran into is to run Puppeteer on Heroku you have to specify –no-sandbox. They last hurdle was adding the puppeteer Heroku buildpack. Follow the steps below and you should have a working screenshot app running locally and on Heroku. These instructions assume you are familiar with node and Heroku. Read More