Russo.NYC
  • Home
  • Author
  • Website
  • OpenAxis
  • OpenAxis Platform
Subscribe

Patrick Russo

http://patrickrusso.net

https://public.tableau.com/app/profile/patrick8595 https://twitter.com/_PRusso

Deep Learning on a spot instance - save money and run only when needed on AWS!

Disclaimer: At some point (perhaps mid-2021), AWS seems to have disabled Spot as an option for P-class instances. It may be possible to request a limit increase [https://us-east-2.console.aws.amazon.com/ec2/v2/home?region=us-east-2#Limits:] to run a P spot instance. See notes on instance types

Patrick Russo Jun 11, 2022 • 4 min read
vpn

EC2 - Scraping behind VPN (but allow VPC access)

I had a website scraping project that scraped tens of thousands of websites every day. I was running this on an EC2 instance, but didn't want the EC2 instance's IP to be blocked by any of these websites. One solution for scraping with (near) infinite IP's that I've come across

Patrick Russo Jun 11, 2022 • 1 min read

Government social benefits to persons, a drag into 2022?

There was a recent Axios article about how government benefits will be a drag going into 2022 [https://www.axios.com/stimulus-government-spending-covid-pandemic-0b79bdb4-e812-4085-ae2b-404cd7b9a1f4.html] . However, this ignores the fact that the largest increase in government transfers, the economic impact payments took place in Q1/Q2, and expanded unemployment benefits ran out

Patrick Russo Jan 31, 2022 • 1 min read

Government social benefits to persons, drag into 2022?

There was a recent Axios article about how government benefits will be a drag going into 2022 [https://www.axios.com/stimulus-government-spending-covid-pandemic-0b79bdb4-e812-4085-ae2b-404cd7b9a1f4.html] . However, this ignores the fact that the largest increase in government transfers, the economic impact payments took place in Q1/Q2, and expanded unemployment benefits ran out

Patrick Russo Jan 31, 2022 • 1 min read

How bad is inflation?

For the indices below, we compare to December 2019, just before the pandemic. Source: U.S. Bureau of Economic Analysis | Explore the data on OpenAxis [https://app.openaxis.com/visualizations/2191]Durable goods cost 12.0% more in December 2021 than they did in December 2019, while non-durable goods and

Patrick Russo Jan 31, 2022 • 2 min read
AWS Lambda "distribution was not found and is required" [Python]
aws

AWS Lambda "distribution was not found and is required" [Python]

All of a sudden my most recent deploy hit the darnedest error and none of my endpoints were working... [ERROR] DistributionNotFound: The 'google-api-python-client' distribution was not found and is required by the application Traceback (most recent call last): File "/var/lang/lib/python3.7/imp.py", line 234, in load_

Patrick Russo May 26, 2021 • 2 min read

Tracking despite an Ad Blocker: Mixpanel through proxy

I debated with myself on whether or not to share this. As a user I don't like tracking and block it when I can. But a new startup needs to understand what their users are doing and big companies surely have workarounds in place already...  So here goes. First -

Patrick Russo Dec 13, 2020 • 1 min read

Nginx behind Cloudfront

Self-hosting services on EC2 instances can come with unexpected behavior. If the service is hosted using Nginx, it typically expects a "Host" header. If you have Cloudfront between the EC2 instance and the internet (e.g., for caching, delivery, etc.), Cloudfront won't forward the "Host" header by default. In Cloudfront

Patrick Russo Dec 6, 2020 • 1 min read

AWS GPU Instance for Batch Process - Save on Deep learning

While EC2 Instances are great for running services, the price can add up - especially if you need access to a GPU (e.g., for deep learning). I have a batch process I run daily that takes over an hour on a P2 instance (updating https://8020news.com/today). This

Patrick Russo Dec 5, 2020 • 2 min read
ghost

Reset Ghost Password

This happens to everyone so I wanted to make sure I could recover it if forgotten. Great guide here - but basically just reset it in the user table with a bcrypt hash  ( $2b$10$6I.HRc.0Nw19DrS3AYIv0.UPFwhtQ/veZmjCf9ralp0bUJjLoUOzq is an example bcrypt has of password). Either pick something

Patrick Russo Nov 8, 2020 • 1 min read
Macbook USB-C Replacement
hardware

Macbook USB-C Replacement

All of a sudden my Macbook (12", 2017) stopped being able to read flash drives (through a dongle since it only has USB-C). So I followed various directions on how to restart and reset the port, reset nvram, etc. None of that worked and after one restart it wouldn’t

Patrick Russo Nov 8, 2020 • 1 min read
Applying the Pareto Principle to the News
ai

Applying the Pareto Principle to the News

I’ll make a larger announcement once it’s out, but wanted to start small pre-launch. I just started building 8020news.com [http://8020news.com], where you can get 80% of the news content in 20% of the time. Prototype is fully automated and is live in beta at https:

Patrick Russo Nov 8, 2020 • 1 min read
DD-WRT on Linksys EA8500
dd-wrt

DD-WRT on Linksys EA8500

I have a Linksys EA8500 but found the UI pretty limiting, so I decided to try out DD-WRT. Unfortunately, Linksys doesn’t make this easy and you’ll need to use the Serial port on the router’s circuit board to connect and then transfer via ethernet. mrjcd has an

Patrick Russo Nov 8, 2020 • 1 min read

Ghost on AWS

The Bitnami AMI worked great!But, If you want to use Cloudfront, make sure to forward the headers Origin and Referrer as described here [https://github.com/TryGhost/Ghost/issues/9972]. Without it, you'll get an error like "Request made from incorrect origin. Expected 'https://blog.russo.nyc [http://russo.

Patrick Russo Nov 8, 2020 • 1 min read
Russo.NYC © 2022
Powered by Ghost