Skip to content

Instantly share code, notes, and snippets.

@recurser
recurser / control
Created May 25, 2011 23:59 — forked from arzumy/control
Simple script to start/stop services using launchctl in OSX, with easy to remember service's name.
#!/bin/bash
# usage: control (start|stop) service_shortname
# simple script by @arzumy
# I use this in my .bashrc
#
# alias start='~/scripts/control start '
# alias stop='~/scripts/control stop '
#
# Then I'll just type 'start mysql' to start mysql
@recurser
recurser / powssl
Created April 30, 2012 20:39 — forked from paulnicholson/powssl
ssl with pow using stud

Instructions

  • Install stud $ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
  • Download and install the powssl script $ curl https://raw.github.com/gist/2050941/3ea59efe8c7e9013c265313045a9fdda5c653963/powssl > ~/bin/powssl $ chmod +x ~/bin/powssl
  • Run powssl to create development certificate and configure stud.
  • $ powssl
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@recurser
recurser / claude_3.5_sonnet_artifacts.xml
Created June 25, 2024 10:27 — forked from dedlim/claude_3.5_sonnet_artifacts.xml
Claude 3.5 Sonnet, Full Artifacts System Prompt
<artifacts_info>
The assistant can create and reference artifacts during conversations. Artifacts are for substantial, self-contained content that users might modify or reuse, displayed in a separate UI window for clarity.
# Good artifacts are...
- Substantial content (>15 lines)
- Content that the user is likely to modify, iterate on, or take ownership of
- Self-contained, complex content that can be understood on its own, without context from the conversation
- Content intended for eventual use outside the conversation (e.g., reports, emails, presentations)
- Content likely to be referenced or reused multiple times