Skip to content

Instantly share code, notes, and snippets.

View tayfun's full-sized avatar
👹
everything is awesome

Tayfun Sen tayfun

👹
everything is awesome
View GitHub Profile
@Tim-Machine
Tim-Machine / Cursor-usage.md
Last active February 19, 2025 04:33
Here are some key things that I've found working with Cursor that have really helped take it to the next level.

Lessons learned with Cursor

Here are some key things that I've found working with Cursor that have really helped take it to the next level.

  • Ensure that you have a well written .cursorrules file. Cursor Directory has some great starting points.
  • The @Docs is crazy powerful. Cursor may not have indexed the version of the dependencies required. Using @SomePackageDocs vastly improve the accuarcy of code generation related to a depenency.
  • @web is also a very strong tool, but doesn't get added by default when using Cursor's composer. While you may not always need @web, its very useful for more obscure implementations.

Prompting

The most important thing by far is cearly articulating what you want to do. The more well defined your requirements the less deviation from the request will happen. I've added a prompt example.

Think o

@bruce-shi
bruce-shi / disable_signals.py
Created September 18, 2016 02:44 — forked from RobertKolner/disable_signals.py
Temporarily disable all signals in django.
from collections import defaultdict
from django.db.models.signals import *
class DisableSignals(object):
def __init__(self, disabled_signals=None):
self.stashed_signals = defaultdict(list)
self.disabled_signals = disabled_signals or [
pre_init, post_init,
pre_save, post_save,
@jbenet
jbenet / simple-git-branching-model.md
Last active May 3, 2025 18:07
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@evildmp
evildmp / gist:3094281
Last active June 30, 2023 10:55
Set up Django, nginx and uwsgi

This document has now been incorporated into the uWSGI documentation:

http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html

Set up Django, nginx and uwsgi

Steps with explanations to set up a server using:

anonymous
anonymous / gist:1406238
Created November 29, 2011 20:09
Originally:
https://gist.github.com/7565976a89d5da1511ce
Hi Donald (and Martin),
Thanks for pinging me; it's nice to know Typesafe is keeping tabs on this, and I
appreciate the tone. This is a Yegge-long response, but given that you and
Martin are the two people best-situated to do anything about this, I'd rather
err on the side of giving you too much to think about. I realize I'm being very
critical of something in which you've invested a great deal (both financially