Skip to content

Instantly share code, notes, and snippets.

View shrayasr's full-sized avatar

Shrayas Rajagopal shrayasr

View GitHub Profile
@shrayasr
shrayasr / keys.ahk
Last active September 6, 2021 06:13
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:

@shrayasr
shrayasr / reclaimWindows10.ps1
Last active June 11, 2019 06:12 — forked from alirobe/reclaimWindows10.ps1
"Reclaim Windows 10" turns off a bunch of unnecessary Windows 10 telemetery, removes bloatware, and privacy invasions. Review and tweak before running. Scripts for reversing are included and commented. Fork via https://github.com/Disassembler0 (different defaults)
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.7, 2016-08-15
# dasm's script: https://github.com/Disassembler0/Win10-Initial-Setup-Script/
# THIS IS A PERSONALIZED VERSION
# This script leaves more MS defaults on, including MS security features.
# Tweaked based on personal preferences for @alirobe 2016-11-16 - v1.7.1