Skip to content

Instantly share code, notes, and snippets.

@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@yangezheng
yangezheng / Tampermonkey_LinkedIn_Job_Filter_Pro
Last active July 22, 2025 18:33
some filter buttons for linkedin
// ==UserScript==
// @name LinkedIn Job Filter Pro
// @namespace http://tampermonkey.net/
// @version 3.5
// @description Advanced filters to toggle promoted, normal, and viewed job listings on LinkedIn job search pages.
// @author yange.xyz
// @match https://www.linkedin.com/jobs/*
// @grant none
// @license MIT
// @downloadURL https://update.greasyfork.org/scripts/531022/LinkedIn%20Job%20Filter%20Pro.user.js
@mdbraber
mdbraber / save-safari-pdf.swift
Last active August 8, 2025 13:08
Save Safari website as PDF (with syncing cookies)
#!/usr/bin/swift
@preconcurrency import WebKit
@preconcurrency import Foundation
@preconcurrency import Darwin
// Disable everything written to stderr
freopen("/dev/null", "w", stderr)
struct Cookie {
#!/bin/zsh
# Define color codes
RED="\033[31m"
GREEN="\033[32m"
YELLOW="\033[33m"
BLUE="\033[34m"
RESET="\033[0m"
# Define arrays to track installed and failed apps
@dannguyen
dannguyen / README.openai-structured-output-demo.md
Last active February 25, 2026 11:22
A basic test of OpenAI's Structured Output feature against financial disclosure reports and a newspaper's police blotter. Code examples use the Python SDK and pydantic for the schema definition.

Extracting financial disclosure reports and police blotter narratives using OpenAI's Structured Output

tl;dr this demo shows how to call OpenAI's gpt-4o-mini model, provide it with URL of a screenshot of a document, and extract data that follows a schema you define. The results are pretty solid even with little effort in defining the data — and no effort doing data prep. OpenAI's API could be a cost-efficient tool for large scale data gathering projects involving public documents.

OpenAI announced Structured Outputs for its API, a feature that allows users to specify the fields and schema of extracted data, and guarantees that the JSON output will follow that specification.

For example, given a Congressional financial disclosure report, with assets defined in a table like this:

@ukeskin
ukeskin / console.js
Last active July 22, 2025 18:31
If you are looking for a particular role or keyword in job descriptions, you can use the "Find" feature to quickly highlight relevant positions, making it easier to analyze and shortlist potential opportunities. Searching Through the Data: After the data is displayed on the screen, you can use your browser's "Find" feature (press Ctrl + F on Win…
// ==UserScript==
// @name LinkedIn Job Scraper UI you can easily find word in desc
// @namespace http://tampermonkey.net/
// @version 1.6
// @description Collects job postings and descriptions from LinkedIn with a progress bar displayed on top of the screen.
// @author @ukeskin
// @match https://www.linkedin.com/jobs/*
// @grant none
// ==/UserScript==
@davidshumway
davidshumway / LinkedInCompanySearch.user.js
Created July 7, 2024 15:52
LinkedIn company page, redirect to US-based company job search
// ==UserScript==
// @name LinkedIn Company
// @version 1
// @grant none
// @include https://www.linkedin.com/company/*
// ==/UserScript==
// ex.
// https://www.linkedin.com/company/haas-automation/life/haas/
// https://www.linkedin.com/company/applied-intuition-inc/life/1d1d8313-131e-46f4-ac88-f8cdf5dbd49d/
@davidshumway
davidshumway / LinkedInJobSearch.user.js
Created July 7, 2024 15:51
LinkedIn job search GreaseMonkey script
// ==UserScript==
// @name LinkedIn
// @version 1
// @grant GM_setValue
// @grant GM_getValue
// @include https://www.linkedin.com/jobs/search/*
// @include https://www.linkedin.com/jobs/collections/*
// ==/UserScript==
function remove() {
var x = document.getElementsByClassName('jobs-search-results__list-item');
@thomaswitt
thomaswitt / pdf-invoice-textract-and-rename
Created May 20, 2024 14:38
Take Invoice Scans from a Canon RS40 into a Hazel-Watched Folder, send them to AWS Textract and rename them into Date and Company
# Load Homebrew environment
eval "$(/opt/homebrew/bin/brew shellenv)"
# Variables
dir_path=$(dirname "$1")
base_filename=$(basename "$1")
log_file="${dir_path}/${base_filename}-error.log"
# Base64 encode the PDF file
base64_string=$(qpdf "$1" --pages . 1 -- - | base64)
@pirate
pirate / music_in_screenshots.py
Created January 12, 2024 14:43
Automatically detect song/video title/artist/album/metadata captured in screenshots using GPT-4-vision via the OpenAI API.
#!/usr/bin/env python3
# Script to extract song/video title, artist, album, etc. metadata from screenshots w/ GPT-4.
### Example Usage: ###############################################################################
#
# ➜ ~/Desktop # python3 music_in_screnshots.py --prompt=prompt.txt --attach=spotify_screenshot.PNG
# {
# "found_prominent_media": true,
# "all_strings": [