Skip to content

Instantly share code, notes, and snippets.

View surajsharma's full-sized avatar
🌜
do not fold, spindle, or mutilate

スレージ シャーマ surajsharma

🌜
do not fold, spindle, or mutilate
View GitHub Profile
@surajsharma
surajsharma / hotkeys.ahk
Created August 18, 2024 04:30
hotkeys ahk2 win11
#Requires AutoHotkey v2.0
#SingleInstance force
ScriptStartModTime := FileGetTime(A_ScriptFullPath)
SetTimer(CheckScriptUpdate, 100, -1) ; 100 ms, highest priority
; Hotkeys for different window types
^Space::ToggleSpecificWindow("terminal")
^!Space::ToggleSpecificWindow("browser")
+Space::ToggleSpecificWindow("notepad++")
@surajsharma
surajsharma / CHEATSHEET.md
Created June 5, 2024 07:16 — forked from oschannel/CHEATSHEET.md
Running PostgreSQL server on Android Phone without rooting

This cheatsheet is for the following video that shows how to Install and Run the PostgreSQL Database server on your Andriod Phone. Watch this video for a complete Demo/Solution: https://youtu.be/7edutr-ALdc

Install Termux:

Once termux is installed open it and use the shell for below commands

  • Install PostgreSQL:

@surajsharma
surajsharma / IndexedDB101.js
Created May 19, 2024 18:56 — forked from JamesMessinger/IndexedDB101.js
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
@surajsharma
surajsharma / index.html
Created February 7, 2024 12:17
custom-window-with-hotkey
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Tray</title>
</head>
<body>
<div>
<h1>Tray</h1>
<h3>
@surajsharma
surajsharma / index.html
Created January 24, 2024 08:58
Electron Fiddle Gist
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<!-- You can also require other files to run in this process -->
<!DOCTYPE html>
<html>
<head>
<title>Sheets API Quickstart</title>
<meta charset="utf-8" />
</head>
<body>
<p>Sheets API Quickstart</p>
<!--Add buttons to initiate auth sequence and sign out-->
@surajsharma
surajsharma / data.json
Created March 20, 2022 05:36
dating_data
{
"matches": [
{
"_id": "6084b4672fc8dd01001ac782",
"badges": "[{'type': 'selfie_verified'}]",
"bio": "6’1”, entrepreneur, private pilot, and have a horse farm nearby. If you ride horses, or Harleys 😍\n\nI’m serious only when required and a father of 3 beautiful daughters and am happily divorced, My choice. no drama. I love dogs, nature and happy people who wanna have a good time.\n\nIf you agree vibrant conversation enhances the relationship and keeps it alive, vigorous, and interesting then I would love to take u out.",
"birth_date": "1933-11-23T03:27:13.521Z",
"closed": "FALSE",
"common_friend_count": 0,
"common_like_count": 0,