Skip to content

Instantly share code, notes, and snippets.

View shripadk's full-sized avatar
🎯
Working

Shripad Krishna shripadk

🎯
Working
View GitHub Profile
@shripadk
shripadk / override-cybertron.css
Last active March 9, 2021 04:25
Obsidian Cybertron Theme Overrides
/**
* Checkbox modifications:
* -----------------------
* Have added !important only because I am overriding Cybertron.
* You can remove it if you are directly modifying .task-list-item-checkbox.
*/
.markdown-preview-view .task-list-item-checkbox {
top: 2.6px !important;
left: -6.6px !important;
border: 2px solid #fcf601;
@shripadk
shripadk / README.md
Last active November 4, 2024 19:12
Karabiner Complex Modification: Change F4 to Command + Space for Alfred

Karabiner — Change F4 to Command + Space for Alfred

This is useful for changing the default F4 key that is bound to Spotlight to launch Alfred in macOS Big Sur.

Setup:

  1. Make sure you have Karabiner installed.
  2. Open ~/.config/karabiner/karabiner.json.
  3. Copy the rules object from below snippet and add it within profiles.complex_modifications. The basic structure of your karabiner.json file should look something like this:
/**
MIT License
Copyright 2022 Shripad Krishna <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions
@shripadk
shripadk / default_config.yaml
Last active November 12, 2023 22:18
accelerate default_config
compute_environment: LOCAL_MACHINE
debug: false
distributed_type: 'NO'
downcast_bf16: 'no'
dynamo_config:
dynamo_backend: TENSORRT
dynamo_mode: max-autotune
dynamo_use_dynamic: false
dynamo_use_fullgraph: false
gpu_ids: all
@shripadk
shripadk / README.md
Last active March 28, 2024 04:27
Installing DigitalOcean Metrics Agent for Oracle Linux

Just run the following command in your Terminal to install the Agent:

curl -sSL https://gist.githubusercontent.com/shripadk/9d8db539e3d030579b81763549bb1a20/raw/d12a8ac8bd2941f8d02bc28a6ed5a90c22ef1433/install.sh | sudo bash
let host = window.location.hostname;
// --- Exponential Backoff Configuration ---
const baseRetryDelay = 1000; // Initial delay: 1 second
const maxRetryDelay = 30000; // Maximum delay: 30 seconds
let currentRetryDelay = baseRetryDelay;
let reconnectTimerId = null; // To hold the setTimeout ID
function connect() {
// Clear any pending reconnect timer if connect is called manually or rapidly