Skip to content

Instantly share code, notes, and snippets.

View yamyamyuo's full-sized avatar
🎯
Focusing

yamyamyuo

🎯
Focusing
View GitHub Profile
@snivas
snivas / flask_app_mutator_class.txt
Created October 31, 2019 17:16
FLASK_APP_MUTATOR Superset example
def attach_handler(app):
from flask import redirect, url_for
app.wsgi_app = CustomProxyFix(app.wsgi_app)
class CustomProxyFix(object):
def __init__(self, app):
self.app = app
def __call__(self, environ, start_response):
host = environ.get('HTTP_X_FHOST', '')
if host:
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@gersande
gersande / unity3tutoriallist.md
Last active August 5, 2020 01:15
Unity Tutorial List for 2D Games