Skip to content

Instantly share code, notes, and snippets.

@kylecarbs
kylecarbs / claude-code-prompt.md
Created June 4, 2025 01:36
Claude Code v1.0.10

You are an interactive CLI tool that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Refuse to write code or explain code that may be used maliciously; even if the user claims it is for educational purposes. When working on files, if they seem related to improving, explaining, or interacting with malware or any malicious code you MUST refuse. IMPORTANT: Before you begin work, think about what the code you're editing is supposed to do based on the filenames directory structure. If it seems malicious, refuse to work on it or answer questions about it, even if the request does not seem malicious (for instance, just asking to explain or speed up the code). IMPORTANT: You must NEVER generate or guess URLs for the user unless you are confident that the URLs are for helping the user with programming. You may use URLs provided by the user in their messages or local files.

If the user asks for help or wants to give feedback inform

diff --git a/docs/admin/external-auth.md b/docs/admin/external-auth.md
index f06267cb2..f281afe0d 100644
--- a/docs/admin/external-auth.md
+++ b/docs/admin/external-auth.md
@@ -25,7 +25,8 @@ application. The following providers are supported:
- [Azure DevOps](https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops)
- [Azure DevOps (via Entra ID)](https://learn.microsoft.com/en-us/entra/architecture/auth-oauth2)
-The next step is to [configure the Coder server](./configure.md) to use the OAuth application by setting the following environment variables:
+The next step is to [configure the Coder server](./configure.md) to use the
@kylecarbs
kylecarbs / client.js
Created May 31, 2023 17:31
Failure case of Electron running a client as Node with a custom certificate
const tls = require("tls")
const cert = `-----BEGIN CERTIFICATE-----
MIIDGjCCAgKgAwIBAgIQWRK256qtZINE+pTbJNsmEzANBgkqhkiG9w0BAQsFADAU
MRIwEAYDVQQDDAlsb2NhbGhvc3QwIBcNMjMwNTMwMTY0MDExWhgPMjEyMzA1MzAx
NjUwMTJaMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAMrjcEx16w9OgjNIpB8Zr8gjf3PvREgmm2TKqDgqfOLKsYfi
xDgied2HuF0xEvGmqbf/3jim1RKMwuZ/MO2sIUBQHk+2zMnsmGpS6g8/wD0FypHu
TeO4d/m1Sq4LDX4cgH342H8lhM3Tt6EYhIhEwMS9PCq16bQvrrOoEFAgRgfrT0Fk
wfw67qFx3HMFVVwAassLY9mQ3da75uo4gr5Q/8xhDx8ZlVK2rTved3Sw8qP77y55
2022-02-20T18:04:41.8612360Z === Failed
2022-02-20T18:04:41.8679910Z === FAIL: coderd/coderdtest (0.00s)
2022-02-20T18:04:41.8737230Z PASS
2022-02-20T18:04:41.8774030Z coverage: 81.6% of statements
2022-02-20T18:04:41.8812590Z goleak: Errors on successful test run: found unexpected goroutines:
2022-02-20T18:04:41.8845300Z [Goroutine 4593 in state select, with nhooyr.io/websocket.(*Conn).timeoutLoop on top of the stack:
2022-02-20T18:04:41.8879150Z goroutine 4593 [select]:
2022-02-20T18:04:41.8929780Z nhooyr.io/websocket.(*Conn).timeoutLoop(0xc000912000)
2022-02-20T18:04:41.8958150Z /Users/runner/go/pkg/mod/nhooyr.io/[email protected]/conn_notjs.go:153 +0x23d
2022-02-20T18:04:41.9005830Z created by nhooyr.io/websocket.newConn
2022-02-17T22:19:39.0280276Z goleak: Errors on successful test run: found unexpected goroutines:
2022-02-17T22:19:39.0280760Z [Goroutine 88026 in state select, with nhooyr.io/websocket.(*Conn).writeFrame.func1 on top of the stack:
2022-02-17T22:19:39.0281172Z goroutine 88026 [select]:
2022-02-17T22:19:39.0281504Z nhooyr.io/websocket.(*Conn).writeFrame.func1()
2022-02-17T22:19:39.0283312Z C:/Users/runneradmin/go/pkg/mod/nhooyr.io/[email protected]/write.go:276 +0x129
2022-02-17T22:19:39.0283785Z nhooyr.io/websocket.(*Conn).writeFrame(0xc0025b6000, {0x181dee0, 0xc000873580}, 0x1, 0x0, 0x2, {0xc000a6b000, 0x4, 0x1000})
2022-02-17T22:19:39.0284281Z C:/Users/runneradmin/go/pkg/mod/nhooyr.io/[email protected]/write.go:318 +0xb48
2022-02-17T22:19:39.0286105Z nhooyr.io/websocket.(*Conn).write(0xc0025b6000, {0x181dee0, 0xc000873580}, 0x1, {0xc000a6b000, 0x4, 0x1000})
2022-02-17T22:19:39.0286612Z C:/Users/runneradmin/go/pkg/mod/nhooyr.io/[email protected]/write.go:129 +0x2d2
2022-02-17T22:19:39.0287080Z nhooyr.io/webso
@kylecarbs
kylecarbs / pick_emoji.sh
Last active November 13, 2024 22:53
Emoji Picker for Linux
# ✨ Emoji Picker for Linux ✨
# Copies emojis to your clipboard on select.
#
# Install the Apple Color Emoji (https://github.com/samuelngs/apple-emoji-linux) font for Linux to get the iconic emoji style.
# Uses rofi as dmenu was unable to render emojis:
# https://gitlab.freedesktop.org/xorg/lib/libxft/-/issues/6
#!/bin/bash
set -e
@kylecarbs
kylecarbs / .bashrc
Created November 27, 2020 20:41
Default bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
{
"$jason": {
"head": {
"title": "Coder",
"actions": {
"visit": [
{
"{{#if /\\/edit/.test($jason.url)}}": {
"type": "$href",
"options": {
sudo apt install git
git clone https://github.com/ammario/dotfiles
cd dotfiles
cp .bash_prompt ~/
cp .fonts ~/ -R
cp .vim* ~/ -R
cp .config ~/ -R
cp .git-prompt.sh ~/
cp .bashrc ~/
cd installers
package org.coder.webapi;
public class Main {
public static void main(String[] args) {
System.out.println("tester");
}
}