Skip to content

Instantly share code, notes, and snippets.

View shrayasr's full-sized avatar

Shrayas Rajagopal shrayasr

View GitHub Profile
@shrayasr
shrayasr / PopulateDonePercentOnAudibleListenHistoryPage.js
Last active May 12, 2025 04:58
Populate done % on audible listen history pages
// ==UserScript==
// @name Populate done % on audible listen history pages
// @namespace http://tampermonkey.net/
// @version 2025-05-12
// @description https://shrayas.com/showing-the-done-percent-on-my-audible-listen-history-page
// @author Shrayasr (https://shrayas.com)
// @match https://www.audible.in/account/listen-history*
// @icon https://www.google.com/s2/favicons?sz=64&domain=audible.in
// @grant none
// ==/UserScript==
@shrayasr
shrayasr / keys.ahk
Last active June 22, 2024 17:35
AutoHotKey shortcuts
if not A_IsAdmin
{
Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
ExitApp
}
#SingleInstance Force
#NoEnv
#Warn
@shrayasr
shrayasr / SketchSystems.spec
Last active May 30, 2019 16:00
Order Status Transitions
Order Status Transitions
Checkout
payment done -> StatusPlaced
StatusPlaced
pulled into WINBDS -> StatusProcessing
StatusProcessing
invoice created -> Choose Shipment Address
Choose Shipment Address
@shrayasr
shrayasr / SketchSystems.spec
Last active March 5, 2019 10:27
Logged Out
Logged Out
No Mobile Number
mobile numbered entered -> Is Mobile Valid?
Is Mobile Valid?
valid -> Send OTP
invalid -> No Mobile Number
Send OTP
otp sent -> Accept OTP
Accept OTP
otp entered -> Is OTP Valid?
POS
Unselected Member
select member -> Member Select Popup
select CLP PR paymode -> Member Select Popup
Selected Member
Init
select CLP PR paymode -> CLPPR Popup
CLPPR Popup
details entered -> Redeem Validations
errored -> Selected Member
@shrayasr
shrayasr / recipes-slow-cooked-potatoes.md
Last active December 31, 2018 07:36
Recipes | Slow Cooked Potatoes

Slow cooked Potatoes

Base

  • Potato: Keep the cut even so that they will all cook together. Having differently sized potatos means that they cook at different times. Never recommended. Unless you're cooking them in batches
  • Spice: I used Za'athar. You can use whatever you have. Paprika works. Cayan pepper would work. Plain old chilly powder + Turmeric would also taste godlike
  • Time: This would take about 45 minutes. Patience is the key-est ingredient

Cooking

@shrayasr
shrayasr / fu-garmin-bulk-delete.js
Created March 28, 2018 06:03
Bulk delete activities in Garmin Connect
function foo() {
console.log("foo - start")
$("button.search-button").click()
setTimeout(function() {
var li = $(".list-item")[0]
var delButton = $(li).find("button.js-activity-delete")
var confirmDelButton = $(li).find("button.delete-yes")
console.log(delButton, confirmDelButton)
@shrayasr
shrayasr / danluu.com.css
Last active April 16, 2018 05:18
danluu.com stylesheet
body {
margin: 0 auto;
width: 900px;
font-family: Trebuchet MS;
font-size: 16px;
line-height: 23px;
margin-top: 20px;
background: #fff8ec;
}
@shrayasr
shrayasr / spermissions.md
Created September 15, 2017 04:48
permissions permissions permissions

Background

On the home server (yuksam henceforth), I have deluge running for torrenting and plex running as a media center.

Constraints

When torrenting, my method of consumption will be either plex or not-plex. If it is plex, then I want my downloads to go to X place. If it isn't plex, then they can go to a default location (currently /shares/t which is a samba

@shrayasr
shrayasr / gist:39630169b06fab9a9b141463894a7889
Created March 2, 2017 05:45 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: