Skip to content

Instantly share code, notes, and snippets.

View jasondavis's full-sized avatar

Jason Davis jasondavis

View GitHub Profile
SetTimer HeartBeat, 240000 ; run every 4 minutes
HeartBeat() {
wday := A_WDay
if (wday >= 2 && wday <= 6) {
hour := A_Hour
if ((hour >= 8 && hour < 18)
&& (A_TimeIdle > 180000)) { ; idle for 3+ mins during work hours
MouseMove 0, 0, 0, 'R' ; mouse pointer stays in place but sends a mouse event
}
@jasondavis
jasondavis / SelectionClipboard.ahk
Created November 9, 2026 22:19 — forked from piroor/SelectionClipboard.ahk
AutoHotKey https://www.autohotkey.com/ script to simuate "selection clipboard" behavior of Linux desktop environments
; Simulate "Selection Cipboard" of Linux desktop environments
; Based on:
; https://softwarerecs.stackexchange.com/questions/9791/copy-selection-to-clipboard-automatically
; Usage:
; 1. Install AutoHotKey: https://www.autohotkey.com/
; 2. Save this file as "SelectionClipboard.ahk".
; 3. Put it into the startup folder.
; Note:
; * Ctrl-C will be sent when you do drag and drop with the left button always, including
; window moving and resizing. This means that SIGINT is sent to appls when you try to
@jasondavis
jasondavis / Moy-Twitter-Clipping.css
Last active October 15, 2026 23:24 — forked from Moyf/Moy-推特剪藏.css
Obsidian Clipper template - Twitter(X)
/* ! Twitter Cut and hide the block */
/* * Combined with Callout And Cssclasses So put it together. */
/* Callout */
/* Handle link tags */
.cm-embed-block.cm-callout:has(.callout[data-callout="twitter"]) {
pointer-events: fill;
@jasondavis
jasondavis / ultimate-hybrid-clipper.json
Created October 15, 2026 23:01 — forked from Coldaine/ultimate-hybrid-clipper.json
Obsidian Web Clipper - Ultimate Hybrid Template (v2). Combines best prompt engineering from Omni-Protocol with full Web Clipper ecosystem: polymorphic sections, adversarial critique, analogy generation, optimized context, 15 frontmatter properties, and proper filter chains.
{
"schemaVersion": "0.1.0",
"name": "Ultimate Hybrid Clipper v2",
"behavior": "create",
"noteContentFormat": "text",
"context": "{{selectorHtml:article,main,.post-content,.entry-content,#content,.content|strip_tags:script,style,nav,footer,aside,header,.sidebar,.comments,.advertisement|strip_attr:class,id,style,data-*}}",
"properties": [
{
"name": "url",
"value": "{{url}}"
@jasondavis
jasondavis / CLI tools.md
Created September 25, 2026 10:33 — forked from charlesroper/CLI tools.md
Modern CLI Tools for nix and Windows.md

Modern CLI Tools for *nix and Windows

A collection of CLI tools I use (or have used). Most can be installed using your *nix distro’s package manager, or with Scoop on Windows. If you’re not already using Scoop, it's definitely worth trying.

✨ Other lists you might find interesting
# Import requests library
import requests
import time
import constants
# Define the collection ID and the access token
# collection_id = 33417911
collection_id = None
live_run = False
access_token = constants.RAINDROP_TOKEN
@jasondavis
jasondavis / reddit_full_capture.py
Created August 24, 2026 01:14 — forked from chapterthreee/reddit_full_capture.py
Read-only Reddit thread capture utility
import json
import os
import sys
import getpass
from datetime import datetime, timezone
import praw
from praw.models import MoreComments
#!/bin/bash
# 1: Define backup filenames with timestamps.
db_backup_name="wp-db-backup-$(date +%d-%m-%Y-%H.%M).sql.gz"
wpfiles_backup_name="wp-content-backup-$(date +%d-%m-%Y-%H.%M).tar.gz"
# 2: Database connection info.
db_name="wordpress"
db_username="wordpress"
db_password="wordpress123"

Shell scripting with Markdown documents

alias ~~~=":<<'~~~sh'";:<<'~~~sh'

@jasondavis
jasondavis / List of JavaScript GUI libraries.md
Created May 8, 2026 23:39 — forked from SMUsamaShah/List of JavaScript GUI libraries.md
dat.gui alternatives to create GUI from JavaScript object

JavaScript GUI libraries

These libraries can be used to quickly create a GUI for configureable parameters using sliders, checkboxes, colors pickers etc

  1. Tweakpane https://github.com/cocopon/tweakpane Demo: https://cocopon.github.io/tweakpane/
  2. control-panel https://github.com/freeman-lab/control-panel
  3. ControlKit https://github.com/automat/controlkit.js
  4. guify https://github.com/colejd/guify Main site is down, here is the demo https://jons.website/projects/guify/index
  5. oui https://github.com/wearekuva/oui
  6. Palette.js https://github.com/lehni/palette.js