As configured in my dotfiles.
start new:
tmux
start new with session name:
| $ git config --global core.excludesfile ~/.gitignore | |
| $ echo .DS_Store >> ~/.gitignore |
| <?php | |
| /* | |
| Plugin Name: Videos | |
| Plugin URI: | |
| Author: Dave Rupert | |
| Author URI: http://www.daverupert.com | |
| Description: A custom post type that adds videos and custom taxonomies. | |
| Version: 1.0 | |
| */ |
| SUMMARY | |
| I like to use kcachegrind for doing profiling on my ruby code. Most of my development | |
| is done on OSX, and while you can install kcachegrind via macports, it takes forever | |
| because it has to build KDE, as well. Much to my surprise, the fine folks who | |
| wrote kcachegrind also made a QT version, qcachegrind. I was able to build this on | |
| OSX without too much effort, only having to install QT and GraphViz. Yippie! | |
| I'm running OSX 10.6.7, with Xcode 4. My default gcc/g++ version is 4.2. I'm sure | |
| it will build just fine on earlier versions of Xcode, but I haven't tested it. |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| import Queue | |
| import threading | |
| import sys | |
| __author__ = 'psobot' | |
| class ExceptionThread(threading.Thread): | |
| def __init__(self, *args, **kwargs): | |
| threading.Thread.__init__(self, *args, **kwargs) | |
| self.__status_queue = Queue.Queue() |
| from Queue import Queue | |
| import subprocess | |
| import threading | |
| import traceback | |
| import logging | |
| import time | |
| log = logging.getLogger(__name__) | |
| """ |
| <!doctype html> | |
| <title>Site Maintenance</title> | |
| <style> | |
| body { text-align: center; padding: 150px; } | |
| h1 { font-size: 50px; } | |
| body { font: 20px Helvetica, sans-serif; color: #333; } | |
| article { display: block; text-align: left; width: 650px; margin: 0 auto; } | |
| a { color: #dc8100; text-decoration: none; } | |
| a:hover { color: #333; text-decoration: none; } | |
| </style> |
| """ | |
| liveyamlfile.py | |
| Live Pythonic attribute access to properties in a yaml file. | |
| by Peter Sobot ([email protected]), August 8, 2012 | |
| """ | |
| import os | |
| import time | |
| import yaml | |
| import logging |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.