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 / 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
@shripadk
shripadk / README.md
Last active February 16, 2024 09:55
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:
@shripadk
shripadk / gist:552554
Created August 27, 2010 00:59
Setting up Heroku Hostname SSL with GoDaddy SSL Cert
How to setup Heroku Hostname SSL with GoDaddy SSL Certificate and Zerigo DNS
Heroku recently added an exciting new 'Hostname SSL' option. This option offers the broad compatibility of IP-based SSL, but at 1/5 the price ($20 / month at the time of this writing).
The following tutorial explains how to use Heroku's new 'Hostname SSL' option on your Heroku project. Before we begin, let's list what we're using here:
* Heroku Hostname SSL
* GoDaddy Standard SSL Certificate
* Zerigo DNS
@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
/**
MIT License
Copyright 2022 Shripad Krishna <i@shripadk.me>
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 / gist:557379
Created August 30, 2010 13:22
Autotest hooks
Autotest.add_hook(:initialize) {|at|
at.add_exception %r{^\.git} # ignore Version Control System
at.add_exception %r{^./tmp} # ignore temp files, lest autotest will run again, and again...
# at.clear_mappings # take out the default (test/test*rb)
at.add_mapping(%r{^lib/.*\.rb$}) {|f, _|
Dir['spec/**/*.rb']
}
nil
}
@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 / default.yml
Created March 3, 2021 06:27
espanso configuration file
# espanso configuration file
# This is the default configuration file, change it as you like it
# You can refer to the official documentation:
# https://espanso.org/docs/
# Matches are the substitution rules, when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
# Simple text replacement
@shripadk
shripadk / gist:652819
Created October 29, 2010 03:10
Express authentication using Redis for session store and Couchdb for database (in coffeescript!)
###
Module dependencies
###
require.paths.unshift "#{__dirname}/lib/support/express-csrf/"
require.paths.unshift "#{__dirname}/lib/support/node_hash/lib/"
express = require 'express'
app = module.exports = express.createServer()
RedisStore = require 'connect-redis'
@shripadk
shripadk / gist:1381446
Created November 21, 2011 02:36
secret. do not fork it!
/* SockJS client, version 0.1.1, http://sockjs.org, MIT License
Copyright (C) 2011 VMware, Inc.
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: