Skip to content

Instantly share code, notes, and snippets.

Avatar

Shrayas Rajagopal shrayasr

View GitHub Profile
@shrayasr
shrayasr / keys.ahk
Last active Sep 6, 2021
AutoHotKey shortcuts
View keys.ahk
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
Order Status Transitions
View SketchSystems.spec
Order Status Transitions
Checkout
payment done -> StatusPlaced
StatusPlaced
pulled into WINBDS -> StatusProcessing
StatusProcessing
invoice created -> Choose Shipment Address
Choose Shipment Address
View SketchSystems.spec
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?
View SketchSystems.spec
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 Dec 31, 2018
Recipes | Slow Cooked Potatoes
View recipes-slow-cooked-potatoes.md

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 Mar 28, 2018
Bulk delete activities in Garmin Connect
View fu-garmin-bulk-delete.js
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 Apr 16, 2018
danluu.com stylesheet
View danluu.com.css
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 Sep 15, 2017
permissions permissions permissions
View spermissions.md

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 Mar 2, 2017 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations
View gist:39630169b06fab9a9b141463894a7889

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 Jun 11, 2019 — 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)
View reclaimWindows10.ps1
##########
# 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