Short system prompts for transforming dictated text (usually processed by OpenAI Whisper) into specific formats and styles and for various purposes.
Timestampped export on May 30, 2025
#cloud-config | |
# Enable automatic package updates and upgrades during cloud-init execution | |
package_update: true | |
package_upgrade: true | |
packages: | |
# Security and Hardening | |
- ufw | |
- fail2ban |
javascript:(function(){try{navigator.clipboard.readText().then(function(t){if(t){var e=window.open("","_blank","width=800,height=600");e.document.open(),e.document.write(t),e.document.close()}else alert("Clipboard is empty. Please copy some text to the clipboard first.")}).catch(function(t){console.error("Failed to read clipboard contents: ",t),alert("An error occurred while trying to access the clipboard. Please ensure your browser allows clipboard access.")})}catch(t){console.error("An error occurred:",t),alert("An error occurred while trying to open the new window with the clipboard content.")}})();//bookmarklet_title: HTML Preview from Clipboard |
import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth?v=65"; | |
import Anthropic from "npm:@anthropic-ai/[email protected]"; | |
const anthropic = new Anthropic(); | |
async function suggestKeywords(question) { | |
const message = await anthropic.messages.create({ | |
max_tokens: 128, | |
model: "claude-3-5-sonnet-20240620", | |
tools: [{ |
Regular expressions are powerful search tools comprised of a sequence of defining characters. With regex, you can search, validate, replace, and extract strings of text based on these defining characters.
In this tutorial, we will break down a regex used to match an email using the following code snippet:
/^([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+)\.([a-zA-Z]{2,})$/
Going character by character, we will work through this snippet of code to understand how it is defining search parameters. Regular expressions can feel overwhelming at first, but by breaking the code down into different defining groups, we can easily understand how this expression is working.
(function() { | |
const OPENAI_API_KEY = 'sk-...'; | |
let selectedText = window.getSelection().toString().trim(); | |
if (selectedText.length > 0) { | |
let body = JSON.stringify({ | |
model: 'gpt-3.5-turbo', | |
messages: [{role: 'system', content: 'explain this succinctly' },{ role: 'user', content: selectedText }] | |
}); | |
fetch('https://api.openai.com/v1/chat/completions', { | |
method: 'POST', |
// ==UserScript== | |
// @name hn summary (kagi) | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://news.ycombinator.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=ycombinator.com | |
// @grant GM_xmlhttpRequest | |
// @require https://code.jquery.com/jquery-3.4.1.min.js |
/* | |
Autosend Invites to anyone that shares X number of connections with you. | |
Way to use this script: | |
1. Save it as a bookmarklet | |
2. Go to 'People you may know' | |
3. Click on this bookmarklet. | |
4. Enter number of overlapping connections | |
5. Check your console |
const hubspot = require('@hubspot/api-client'); | |
exports.main = async (event, callback) => { | |
const hubspotClient = new hubspot.Client({ | |
accessToken: process.env.custom_code_private_app | |
}); | |
try { |