Skip to content

Instantly share code, notes, and snippets.

@dkmin
dkmin / cursor-agent-system-prompt.txt
Created March 27, 2025 23:15 — forked from sshh12/cursor-agent-system-prompt.txt
Cursor Agent System Prompt (March 2025)
You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.
Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag.
<communication>
1. Be conversational but professional.
@dkmin
dkmin / vscode-settings.md
Created January 25, 2023 13:35 — forked from mohokh67/vscode-settings.md
Install italic and customizable font for vscode

Link to Youtube video: https://youtu.be/QxcRmsGHcWY

Manual steps:

  • Download and install Victor Mono font
  • Update VSCode setting as bellow:
    • font size, line height and font weight are optional and you can update them as you prefer
{
  "editor.fontSize": 13,
  "editor.lineHeight": 24,
@dkmin
dkmin / index.js
Created July 12, 2021 03:37 — forked from JaySunSyn/index.js
Firebase functions Dynamic OG-Tags
exports.host = functions.https.onRequest((req, res) => {
const userAgent = req.headers['user-agent'].toLowerCase();
let indexHTML = fs.readFileSync('./hosting/index.html').toString();
const path = req.path ? req.path.split('/') : req.path;
const ogPlaceholder = '<meta name="functions-insert-dynamic-og">';
const metaPlaceholder = '<meta name="functions-insert-dynamic-meta">';
const isBot = userAgent.includes('googlebot') ||
userAgent.includes('yahoou') ||
userAgent.includes('bingbot') ||
set -g default-command "reattach-to-user-namespace -l zsh"
# tmux display things in 256 colors
set -g default-terminal "screen-256color"
# automatically renumber tmux windows
set -g renumber-windows on
# unbind default prefix and set it to Ctrl+a
unbind C-b
set -g prefix C-a
@dkmin
dkmin / AccountsUIWrapper.jsx
Last active October 17, 2016 09:18
imports/ui/AccountsUIWrapper.jsx
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Template } from 'meteor/templating';
import { Blaze } from 'meteor/blaze';
export default class AccountsUIWrapper extends Component {
componentDidMount() {
// Use Meteor Blaze to render login buttons
this.view = Blaze.render(Template.loginButtons,
ReactDOM.findDOMNode(this.refs.container));
$ heroku --version
heroku-toolbelt/3.43.12 (x86_64-darwin10.8.0) ruby/1.9.3
heroku-cli/5.4.2-a9a5017 (darwin-amd64) go1.7.1
You have no installed plugins.
import { ViewEncapsulation, Component } from 'angular2/core';
import { RangleBar } from './rangle-bar';
import { RangleButton } from './rangle-button';
import { RangleTextField } from './rangle-text-field';
@Component({
selector: 'app',
directives: [ RangleBar, RangleTextField, RangleButton ],
template: `
<rangle-bar name="Search the site">
@dkmin
dkmin / node-mysql-bluebird-controller.js
Created April 6, 2016 11:12 — forked from CatsMiaow/node-mysql-bluebird-controller.js
Node.js - MySQL에서 Bluebird 사용하기
'use strict';
var db = require('./db');
var testModel = require('./model');
var testControllers = {
// 모델에서 db.single() 함수를 사용한 예제입니다.
// 쿼리를 실행하고 커넥션을 반환합니다.
test1: function (req, res) {
testModel.getTest('test1').then(function (rows) {
@dkmin
dkmin / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console