- Never amend existing commits — always create new ones
- Never force-push or reset --hard without explicit approval
- Stage specific files, not
git add -A(avoids committing .env, credentials, node_modules) - Write commit messages via heredoc to avoid shell escaping issues
- Run tests before committing
- Don't skip hooks (--no-verify)
I hereby claim:
- I am drinks on github.
- I am drinks (https://keybase.io/drinks) on keybase.
- I have a public key whose fingerprint is 68C0 FD9E 9BC3 FD19 5EFA 74DC 78F4 888A 3AC6 14DD
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Migration(SchemaMigration): | |
| def forwards(self, orm): | |
| # OMFG Get ready, we're going to change the primary key! | |
| # Doing bad things, disabling triggers | |
| db.execute("ALTER TABLE brainstorm_idea DISABLE TRIGGER ALL;") | |
| # Dropping foreign key constraint | |
| db.delete_foreign_key('brainstorm_idea', 'subsite_id') | |
| db.execute('DROP INDEX brainstorm_idea_subsite_id_like') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ya i am totally agree that But here's the aim: the vast majority of the 41 | |
| bills in the CRS estimation were not actually polemic. It takes only one | |
| senator to entity to point debate of a greenback and intensiveness the Senate | |
| to stomach a end vote. So oftentimes a one senator give personnel a cloture | |
| ballot on the event to locomote to a programme that is actually real fashionable | |
| and nonpartizan. For instance, the most recent vote the Senate took on a | |
| movement to cite cloture on a move to happen to debate was on an unemployment | |
| benefits string note that finally ended up passing to play a order suffrage | |
| on the happening to speak was the Snap Act, which ended up transient on an | |
| overwhelming bipartizan franchise of 79-19. Before that it was the Omnibus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cmd": ["sass", "$file", "--stop-on-error", "--no-cache"], | |
| "selector": "source.sass, source.scss", | |
| "line_regex": "Line ([0-9]+):", | |
| "osx": | |
| { | |
| "path": "/usr/local/bin:$PATH" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Foo | |
| @_cattr = | |
| "a": "apple" | |
| "b": "banana" | |
| "c": "cherry" | |
| "d": "dragonfruit" | |
| @classCattrGet: -> | |
| @_cattr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:%24('#wp_Signin').remove()%3B%24('#exposeMask').remove()%3B%24(document).off("touchmove mousewheel mousemove scroll")%3B |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==ClosureCompiler== | |
| // @output_file_name default.js | |
| // @compilation_level SIMPLE_OPTIMIZATIONS | |
| // ==/ClosureCompiler== | |
| /* | |
| **Notes** | |
| In some cases, forms will still get submitted when you click the submit button. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.db.models import get_apps, get_models | |
| from django.contrib.auth.management import create_permissions | |
| Permission.objects.all().delete() | |
| [create_permissions(app, get_models(app), 2) for app in get_apps()] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## | |
| # appname/management/commands/exportenv.py | |
| # | |
| import re | |
| import json | |
| import sys | |
| import StringIO | |
| from importlib import import_module | |
| from optparse import make_option |
NewerOlder