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 / 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 / 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 / README.md
Created November 6, 2023 21:42
Easily Digestible Commits
@garyhtou
garyhtou / README.md
Last active February 19, 2024 00:41
Activate all Credit Cards Offers

Activate all Credit Cards Offers

Run these scripts in the console to auto-activate all available offers

body {
transform: rotate(180deg);
}
@garyhtou
garyhtou / README.md
Last active April 1, 2022 18:00
Raycast script for opening Heroku Rails Console

Raycast script for opening Heroku Rail Console

optimized for Hack Club Bank

Screen.Recording.2022-01-14.at.6.19.15.PM.mov

Installation

  1. Install Raycast if you don't already have it
  2. Download the bash script below
  3. Follow Raycast's Script Command install (instructions)
@garyhtou
garyhtou / README.md
Last active February 27, 2024 02:57
Creating Hack Club Bank gource

Creating Hack Club Bank gource

  1. Install gource and ffmpeg
    brew install gource
    brew install ffmpeg
  2. Place bank-bg-dark.png in the root of your local copy of the Bank repo
  3. cd /your/bank/repo/location
@garyhtou
garyhtou / README.md
Last active September 29, 2020 13:07
Gary's Notion Fruition Script
@garyhtou
garyhtou / README.md
Last active September 8, 2020 19:18
Dropbox: Only show videos

Dropbox: Only show videos

  1. You must be in grid view
  2. Open up the Browser Console/Devtools
  3. Run the following:
    var cells = document.querySelectorAll(".sl-grid-cell");
    for (cell of cells) {
     if (

cell

@garyhtou
garyhtou / README.md
Created September 8, 2020 18:04
Initialize Google service accounts without the .json file, instead only use env GOOGLE_APPLICATION_CREDENTIALS

Initialize Google service accounts without the .json file, instead only use env

Getting a secret .json file through your workflow, piplines, and onto your servers is a pretty complicated task. To simpilify the process, you can store the contents of the secret.json in env instead.

Written in the content of firebase-admin for Node.

  1. Make the contents of your GOOGLE_APPLICATION_CREDENTIALS file one line and add it to env as GOOGLE_APPLICATION_CREDENTIALS.

{"type": "service_account",