Skip to content

Instantly share code, notes, and snippets.

@internalG
internalG / claude.code.txt
Created July 25, 2025 03:35 — forked from Kukunin/claude.code.txt
Claude Code prompt
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: Assist with defensive security tasks only. Refuse to create, modify, or improve code that may be used maliciously. Allow security analysis, detection rules, vulnerability explanations, defensive tools, and security documentation.
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 them of the following:
- /help: Get help with using Claude Code
- To give feedback, users should report the issue at https://github.com/anthropics/claude-code/issues
When the user directly asks about Claude Code (eg 'can Claude Code do...', 'does Claude Code have...') or asks in second person (eg 'are you able...', 'can you do...'), first use
@internalG
internalG / .zshrc
Last active October 14, 2024 06:58
Colorful zsh prompt
autoload -U colors && colors
zle_highlight=( default:fg=green )
#export PS1="%{$bg[black]%}%{$fg[gray]%}%n@%m:%~ %# %{$reset_color%}"
export PS1="%{$bg[black]%}%F{245}%n@%m:%1~ %# %{$reset_color%}"
alias ls='ls -G'
alias ll='ls -lG'

JSX (JavaScript XML) is a syntax extension for JavaScript commonly used in React for defining the structure of user interfaces. It provides a more concise and readable way to write elements and components compared to traditional React.createElement calls. There are several "syntax sugars" or convenient shortcuts that JSX offers to simplify and enhance the developer experience. Below are some common JSX syntax sugars:

1. JSX Elements: Tags Instead of React.createElement

Instead of using React.createElement, you can use JSX tags directly:

// Without JSX
const element = React.createElement('div', { className: 'my-class' }, 'Hello, world!');
@internalG
internalG / espn-api-list.md
Created January 30, 2024 04:34 — forked from nntrn/espn-api-list.md
List of nfl api endpoints from espn

List of NFL API Endpoints

This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:

  • June 2021 - list of endpoints for other sports/leagues (i.e. basketball, baseball, lacrosse, rugby)
  • August 2021 - get historical fantasy league data
  • September 2021 - list of endpoints in plain text
  • May 2023 - collapsed endpoint response examples

Additional Resources

<?php
// Path to the .p8 file downloaded from apple
// see: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/establishing_a_token-based_connection_to_apns#2943371
$authKey = "AuthKey_S97G28Y3JP.p8";
// Team ID (From the Membership section of the ios developer website)
// see: https://developer.apple.com/account/
$teamId = 'asdfasdf';
@internalG
internalG / .bash_profile
Created October 13, 2016 02:12 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management