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
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",

@garyhtou
garyhtou / README.md
Created May 6, 2020 03:37
Auto deploy repo through github webhook

Test-Auto-Deploy

Auto deploy repo through github webhook

Open Git Bash.

Create a fresh, bare clone of your repository:

git clone --bare https://github.com/user/repo.git
cd repo.git

Then, see which authors have committed to your repo

git shortlog -e -s -n