Skip to content

Instantly share code, notes, and snippets.

View Keshav13142's full-sized avatar
๐Ÿš€

Keshav S Keshav13142

๐Ÿš€
View GitHub Profile
@Keshav13142
Keshav13142 / yt_enhancer.json
Last active February 16, 2025 12:32
YT enhancer config
{
"version": "3.0.5",
"settings": {
"applyvideofilters": false,
"backdropcolor": "#000000",
"backdropopacity": 100,
"blackbars": false,
"blockautoplay": true,
"blockhfrformats": false,
"blockwebmformats": false,
@Keshav13142
Keshav13142 / .obsidian.vimrc
Last active September 13, 2025 16:44
obsidian-vimrc
" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Go to beginning/end of line
nmap gh ^
nmap gl $
" Cycle between tabs
exmap tabprev obcommand workspace:previous-tab
@Keshav13142
Keshav13142 / vimium.json
Last active August 20, 2023 12:30
vimium config
{
"settingsVersion": "1.67.7",
"exclusionRules": [
{
"pattern": "https?://mail.google.com/*",
"passKeys": ""
},
{
"pattern": "https?://www.google.com/*",
"passKeys": "/"
@Keshav13142
Keshav13142 / git-demo.md
Last active April 4, 2024 10:28
Git basics

Git basics

  • Setup Git

    • Install git
    • Configure name, email for commits
       git config --global user.name "Your name"
       git config --global user.email [email protected]
@Keshav13142
Keshav13142 / .ideavimrc
Created June 6, 2024 06:22
Idea Vim config
"source ~/.vimrc
" Find more examples here: https://jb.gg/share-ideavimrc
let mapleader=" "
" Don't use Ex mode, use Q for formatting.
map Q gq
set number relativenumber
set clipboard+=unnamed
@Keshav13142
Keshav13142 / app.py
Last active July 10, 2024 13:10
Gitlab stuff
import os
import sqlite3
import requests
from datasets import DatasetDict, load_dataset
from dotenv import load_dotenv
from flask import Flask, jsonify, redirect, render_template, request
from transformers import (
DataCollatorForLanguageModeling,
GPT2LMHeadModel,
@Keshav13142
Keshav13142 / prompt.md
Last active July 11, 2024 10:05
LLM prompt

Question

I want you to generate a prompt which I will use to query a LLM to generate care plan data in JSON format using certain parameters I will pass in the query such as weight, height, spo2, avg_heartrate, stepCount, calories_burnt, sleep_duration_in_minutes which is the the average a daily data collected over a week. The output json format should be as follows: { "name": "<careplan_name>", "careplanItems": [ { "title": "careplan_item_title1", "description": "careplan_item_description1"

import os
import sqlite3
from datetime import datetime, timedelta
import requests
from datasets import DatasetDict, load_dataset
from dotenv import load_dotenv
from flask import Flask, jsonify, redirect, render_template, request
from transformers import (
DataCollatorForLanguageModeling,

app.py

import os
import pickle
import sqlite3

import google.generativeai as genai
import markdown
import numpy as np
@Keshav13142
Keshav13142 / config.yaml
Created September 16, 2024 11:36
Zebar config
# Yaml is white-space sensitive (use 2 spaces to indent).
###
# Define a new window with an id of 'bar'. This window can then be opened
# via the Zebar cli by running 'zebar open bar --args <ARGS...>'.
#
# Docs regarding window: https://some-future-docs-link.com
window/bar:
providers: ["self"]
# Width of the window in physical pixels.