This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| # Hello, and welcome to makefile basics. | |
| # | |
| # You will learn why `make` is so great, and why, despite its "weird" syntax, | |
| # it is actually a highly expressive, efficient, and powerful way to build | |
| # programs. | |
| # | |
| # Once you're done here, go to | |
| # http://www.gnu.org/software/make/manual/make.html | |
| # to learn SOOOO much more. |
| #!/bin/bash | |
| # | |
| # Requires ftxdumperfuser from http://developer.apple.com/textfonts/download/ | |
| # | |
| # Usage: fixconsolas [files ...] | |
| # When called with no arguments, it attempts to operate on every TrueType | |
| # file in the current directory. | |
| # | |
| # References: | |
| # http://bandes-storch.net/blog/2008/12/21/consolas-controlled/#comment-2042 |
| <?php | |
| // add this to your php.ini | |
| // auto_prepend_file = /path/to/virtual.prepend.php | |
| $http_host = explode('.',$_SERVER['HTTP_HOST']); | |
| $__mod_vhost_alias_fix_doc_root = $_SERVER['DOCUMENT_ROOT'] . | |
| DIRECTORY_SEPARATOR . $http_host[0] . | |
| DIRECTORY_SEPARATOR . 'public'; | |
| if (is_dir($__mod_vhost_alias_fix_doc_root)) { |
| server { | |
| index index.php; | |
| set $basepath "/var/www"; | |
| set $domain $host; | |
| # check one name domain for simple application | |
| if ($domain ~ "^(.[^.]*)\.dev$") { | |
| set $domain $1; | |
| set $rootpath "${domain}"; |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer