Skip to content

Instantly share code, notes, and snippets.

View garyhtou's full-sized avatar
🪄
merge wand™️

Gary Tou garyhtou

🪄
merge wand™️
View GitHub Profile
@garyhtou
garyhtou / README.md
Last active October 16, 2024 02:02
Venmo: Automatically switch privacy level to Private

So, here's a problem that likely no one has (except myself 😄).

First, some context: I use Venmo on both my phone and laptop. When on my phone, I generally want my Venmo transactions to have the Friends privacy level. However, when on my laptop, I usually use Private.

Now you may be wondering why? ~tangent~

My roommates & I usually do large grocery/Costco runs. I make Venmo requests from my laptop; each containing a "receipt" of items bought — all generated using a very elaborate Google Sheet. I'll save that story for another time. Since my roommates likely don't want their list of items out there for everyone to see, I'll use Private for these types of transactions. Other than that, I'll generally use Friends.

Anyways, the goal is to have Venmo default to Private on laptop, and Friends on mobile. Venmo does offer a default privacy setting. But that's account-wide, obviously.

@garyhtou
garyhtou / Apryse_pdftron_webviewer_downloader.js
Last active December 7, 2024 11:18
Download pages as PNG from Apryse's pdftron WebViewer
/*
1. Click "Digital Textbook"
2. Open in new tab
3. Select "Page by page"
5. Select "Single page"
6. Select "Fit to page"
7. Go to page 1
8. Open Devtools
9. Use Devtools' Select tool to click on the page.
10. Switch to Devtool's console tab and run the script
@garyhtou
garyhtou / download_backups.sh
Last active March 27, 2025 16:59
Bash script to download all Postgres backups from Heroku
#!/bin/bash
# 1. Make sure you're signed into Heroku:
# heroku login
# 2. You can estimate the number of backups that will be downloaded by running:
# heroku pg:backups --app "your app name here" --verbose | grep -E 'b[0-9]+' | wc -l
# 3. Download this script and run:
# chmod +x download_backups.sh
# ./download_backups.sh