Skip to content

Instantly share code, notes, and snippets.

View obie's full-sized avatar
🎧
digital nomad making music

Obie Fernandez obie

🎧
digital nomad making music
View GitHub Profile

You are Claude Code, Anthropic's official CLI for Claude. You are an interactive agent that helps users with software engineering tasks. Use the instructions below and the tools available to you to assist the user.

IMPORTANT: Assist with authorized security testing, defensive security, CTF challenges, and educational contexts. Refuse requests for destructive techniques, DoS attacks, mass targeting, supply chain compromise, or detection evasion for malicious purposes. Dual-use security tools (C2 frameworks, credential testing, exploit development) require clear authorization context: pentesting engagements, CTF competitions, security research, or defensive use cases. 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.

System

  • All text you output outside of tool use is displayed to the user. Output text to communicate with the user. You can use
@obie
obie / settings.json
Created August 1, 2025 22:45
Run Rubocop with autocorrect everytime Claude Code does an update or write, and play a sound so you know it did it
{
"$schema": "https://json.schemastore.org/claude-code-settings.json",
"model": "opus",
"hooks": {
"PostToolUse": [
{
"matcher": "Update|Write",
"hooks": [
{
"type": "command",
@obie
obie / _search.haml
Created November 5, 2020 01:24
Search Implementation using stimulus, shoelace, and mark.js
.spreadsheet--search.grid.grid-flow-col.grid-cols-auto.gap-0.auto-cols-fr.pl-1.pr-8.hidden{ data: { controller: "spreadsheet--search", action: "toggle-search@window->spreadsheet--search#toggleSearch" }}
.input.col-span-9.p-2
%sl-input.w-full(placeholder="Search" size="small" clearable pill){ data: { target: "spreadsheet--search.input"}}
%sl-icon(name="search" slot="prefix")
%sl-dropdown(slot="suffix" placement="bottom-end" hoist){ data: { target: "spreadsheet--search.dropdown"}}
%sl-button(slot="trigger" caret type="text" size="small"){ data: { target: "spreadsheet--search.trigger"}} Highlight
%sl-menu
%sl-menu-item{ data: { target: "spreadsheet--search.higlight"}, checked: true} Highlight
%sl-menu-item{ data: { target: "spreadsheet--search.filter"}} Filter
@obie
obie / _alert.haml
Created October 15, 2020 03:29
Alerts in Reactive Rails style (with Shoelace web components)
%sl-alert.popup-toast{id: id, type: type, open: false, duration: duration, closable: true}
%sl-icon{slot: "icon", name: icon}
- if title.present?
%strong= title
%br
= text
@obie
obie / application_controller.rb
Created October 5, 2020 05:15
Workaround solution for having to restart Rails server to pickup changes to ViewComponent templates (Rails 6.1)
class ApplicationController < ActionController::Base
after_action :clear_view_component_cache, if: -> { Rails.env.development? }
def clear_view_component_cache
ViewComponent::CompileCache.cache = Set.new
end
end
@obie
obie / quizizz.css
Created November 1, 2016 15:11
Print Quizizz Stylesheet
div {
font-family: Georgia;
font-size: 10pt;
}
h1 {
font-family: Helvetica;
}
img {
padding: 2em;
}
<div class="question">
<div class="q-no">42.&nbsp;&nbsp;</div>
<div class="q-text">When the charge is reversed in a neuron during an action potential it is called</div>
<div class="answers">
<div class="answer">
<span class="answer-hole"></span>
<div class="opt">a)</div>
<div class="option">Polarization</div>
</div>
<div class="answer">
<div class="question">
<div class="q-no">42.&nbsp;&nbsp;</div>
<div class="q-text">When the charge is reversed in a neuron during an action potential it is called</div>
<div class="answers">
<div class="answer">
<span class="answer-hole"></span>
<div class="opt">a)</div>
<div class="option">Polarization</div>
</div>
<div class="answer">
console.log('Loading function');
var doc = require('dynamodb-doc');
var dynamo = new doc.DynamoDB();
/**
* Provide an event that contains the following keys:
*
* - operation: one of the operations in the switch statement below
* - tableName: required for operations that interact with DynamoDB
@obie
obie / designer.html
Created September 6, 2014 00:09
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>