Skip to content

Instantly share code, notes, and snippets.

@moe93
moe93 / unUpvoteReddit.js
Created March 30, 2023 04:54
Remove reddit upvotes in bulk
// A script to remove reddit upvotes in bulk
//
// _______ INSTRUCTIONS _______
// ____________________________
// Go to old reddit and navigate to "upvoted" tab then run this script in the command panel.
// Once the page refreshes, re-run script.
//
// If you feel like automating this script, have at it, I am too lazy to do it.
//
// AUTHOR : Mohammad Odeh
@jfoo1984
jfoo1984 / click_all_amex_offers.js
Last active February 22, 2023 07:02
Browser inspector JS snippet to click all Amex offers
// Works as of 08/2021
// Paste this code into the console of the Inspector / Developer tools of your browser
// Adapted from code snippet at: https://dannydealguru.com/quickly-add-all-amex-offers/
//
// USAGE NOTES:
// 1. As a rule of thumb, do not blindly copy / paste code from the Internet into your bank / cc account pages.
// That is a good way to allow a bad actor to gain unauthorized access to your accounts or otherwise do harm.
// This script finds all of the `Add to Card` buttons on the page, then find the merchants associated with those buttons,
// then logs each merchant name and clicks a button every 2 seconds.
@daxav
daxav / $My Anki Wanikani Ultimate 2 Changes
Created February 27, 2021 16:33
My Anki Wanikani Ultimate 2 Changes
Changes for the scripts of the Anki Wanikani Ultimate 2 deck, feel free to use them how you like.
Features:
- Automatic Romaji to Kana conversion in reading input using WanaKana.
- Multiple input support (separated by a space for readings and by a comma for meanings,
eg: "axe, loaf bread counter" or "あめ あま").
- Shows each right and wrong answer from your input.
- Automatic resizing of characters for small screens.
- Reordered the Back template of the cards to be more similar to the Wanikani site (reading related things come first in reading cards,
same for meaning).
@marccarre
marccarre / list_kindle_releases.py
Created October 24, 2020 08:46
List all available versions of Kindle for Mac and Kindle for PC.
#!/usr/bin/env python
'''
List all available versions of Kindle for Mac and Kindle for PC.
Dependencies:
- asyncio==3.4.3
- aiohttp==3.6.3
'''
import os
import sys
/* General */
div.notion-topbar > div > div:nth-child(1n).toggle-mode {
display: none !important;
}
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode {
display: none !important;
}
div.notion-topbar-mobile > div:nth-child(5) {
display: none !important;
}
import React, { useState } from "react"
import PropTypes from 'prop-types'
import "./input.css"
import TypingIndicator from "./TypingIndicator"
const input = (props) => {
const styles = ["plank", "staggered", "split"]
const [stateIsFocused, setStateIsFocused] = useState(false)
const MY_DOMAIN = 'rezaarkan.com';
const SLUG_TO_PAGE = {
'': '882cd6dd6e1e482d823b464f326213e5',
'now': '25b7df64071d420d8f609bf76d9f4114',
'portfolio': '6000547bed0d441793bfba1498c063e2',
'resume': '0934b80d2d1544f99dedadb00be9d146',
'recommendations': '29115129efa44f1a870f390dd2c0a6c0',
'photos': 'e78c0492a5ec486aa51f4cdb2c6f4603',
'blog': '29bb193c1a104ba2b832788b57d58cd6',
@sarimarton
sarimarton / crossover-howtocompile.md
Last active May 2, 2024 08:16 — forked from Alex4386/crossover-howtocompile.md
CodeWeavers CrossOver - How to compile from source! for macOS

UPDATE 2023-01-22 21:34:33

This guide was last tested on an Intel MacBook 2017. Since then it's unmaintained and won't be updated (I quit the game and bought a life-time crossover licence).


This has been forked from https://gist.github.com/Alex4386/4cce275760367e9f5e90e2553d655309

For the latest discussion, see the comments there.

@bryant988
bryant988 / zillow.js
Last active June 8, 2024 21:31
Zillow Image Downloader
/**
* NOTE: this specifically works if the house is for sale since it renders differently.
* This will download the highest resolution available per image.
*/
/**
* STEP 1: Make sure to *SCROLL* through all images so they appear on DOM.
* No need to click any images.
@Alex4386
Alex4386 / crossover-howtocompile.md
Last active April 9, 2024 09:09
CodeWeavers CrossOver - How to compile from source! for macOS

[STOP] This gist is deprecated.

TL;DR

WAY MORE UP-TO-DATE GIST (and includes some setup stuff that I forgot to document): https://gist.github.com/sarimarton/471e9ff8046cc746f6ecb8340f942647
Current Development for Building Libre-version of CrossOver: https://github.com/GabLeRoux/macos-crossover-cloud-build.
For Latest Discussions: https://github.com/GabLeRoux/macos-crossover-cloud-build/issues.

Long Description

This version of gist is outdated since it was written while I was compiling CrossOver v19. and seems to be there are some breaking changes in v19.1+ and 20. Also, I think I missed some required libraries/stub files that was required in build (that I previously installed beforehand). Oops.