Skip to content

Instantly share code, notes, and snippets.

View locmai0808's full-sized avatar
🎄
Meowixmas

Loc Mai locmai0808

🎄
Meowixmas
View GitHub Profile
@locmai0808
locmai0808 / MakeNvidiaGreatAgain.js
Last active October 25, 2020 18:08
Add 3000 card to cart - US only
// Steps:
// 0. Open Chrome browser and go to https://www.nvidia.com/en-us/geforce/
// 1. Open developer tools by pressing F12 or Ctrl + Shift + I
// 2. Navigate to Console tab.
// 3. Copy and paste this whole thing.
// 4. Replace [3090] with [3080] in the localStorage.nvidiaCart = JSON.stringify(rtxCards[3090]); to add 3080 card.
// 5. Press Enter then refresh the page and you should see your desired card in the cart!
let rtxCards = {
3080: {

Keybase proof

I hereby claim:

  • I am locmai0808 on github.
  • I am locmai (https://keybase.io/locmai) on keybase.
  • I have a public key ASA4GgOQn2YuHNsIaLuLdq8GWrZJrrytDlF1r6viM7ArAQo

To claim this, I am signing this object:

@locmai0808
locmai0808 / convertAgeBirthdateYearMonths.js
Last active August 6, 2019 01:03
Code to convert birthdate in months/years to age in months/years and vice versa
/* Converts between age in years/months and birthdate years/months. */
// You will be blown at how this piece of art works!
const CURRENT_YEAR = new Date().getFullYear(); // rightnow: 2019
const CURRENT_MONTH = new Date().getMonth() + 1; // rightnow: 8 (august)
const convertAgeBirthdateYearMonths = (month = null, year = null) => {
const deltaAmount = (CURRENT_YEAR - year) * 12 + CURRENT_MONTH - month;
const convertedMonth = deltaAmount % 12;