Skip to content

Instantly share code, notes, and snippets.

@loredonrj
loredonrj / settings.py
Created May 19, 2023 05:34 — forked from tuchanemo/settings.py
mysql django setting
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'firstsql_db',
'USER': 'root',
'PASSWORD': '',
'HOST':'127.0.0.1',
'PORT':'3306',
'OPTIONS': {
'autocommit': True,

Managing Gists Locally

by Danny Quah, May 2020

Through the Embed instruction or plugin, Gist snippets on GitHub can conveniently provide posts on Medium, WordPress, and elsewhere supplementary information (lines of code, images, Markdown-created tables, and so on). But while Gist snippets on GitHub can be managed directly via browser or through something like [Gisto][], a user might also wish to manipulate them offline. This last is for many of the same reasons that a user seeks to clone a git repo to their local filesystem, modify it locally, and then only subsequently push changes back up to GitHub.

Here's how to do this:

Create the gist on GitHub and then clone it to your local filesystem: