Skip to content

Instantly share code, notes, and snippets.

View scorchio's full-sized avatar

Zoltán Adamek scorchio

View GitHub Profile
@kkirsche
kkirsche / Install Composer to use MAMP's PHP.md
Last active January 30, 2024 02:30
How to install Composer globally using MAMP's PHP

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

@starenka
starenka / columbo.py
Created August 13, 2012 20:51
Walks through django template directory and generates dot file you can use to generate template inheritance/block usage tree with GraphViz. http://junk.starenka.net/columbosvg.png
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Walks through django template directory and generates dot file
you can use to generate template inheritance/block usage tree
with GraphViz.
application/templates and custom template loaders are not (yet?) supported
"""
import os, sys, re