brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| #!/usr/bin/env python | |
| def application(environ, start_response): | |
| start_response("200 OK", [("Content-Type", "text/html; charset=utf-8")]) | |
| return ["Hello, World!"] | |
| if __name__ == "__main__": | |
| from gevent.wsgi import WSGIServer | |
| address = "localhost", 8080 |
| /* | |
| File: Reachability.h | |
| Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
| Version: 2.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
| ("Apple") in consideration of your agreement to the following terms, and your | |
| use, installation, modification or redistribution of this Apple software |
| /* | |
| File: Reachability.h | |
| Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs. | |
| Version: 2.2 - ARCified | |
| Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. | |
| ("Apple") in consideration of your agreement to the following terms, and your | |
| use, installation, modification or redistribution of this Apple software |
| # Copyright 2011 10gen | |
| # | |
| # Modified by Antonin Amand <[email protected]> to work with gevent. | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Simple async crawler/callback queue based on gevent.""" | |
| import traceback | |
| import logging | |
| import httplib2 | |
| import gevent |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # David Lutz's Multi VM Vagrantfile | |
| # inspired from Mark Barger's https://gist.github.com/2404910 | |
| boxes = [ | |
| { :name => :web, :role => 'web_dev', :ip => '192.168.33.1', :ssh_port => 2201, :http_fwd => 9980, :cpus =>4, :shares => true }, | |
| { :name => :data, :role => 'data_dev', :ip => '192.168.33.2', :ssh_port => 2202, :mysql_fwd => 9936, :cpus =>4 }, | |
| { :name => :railsapp, :role => 'railsapp_dev', :ip => '192.168.33.3', :ssh_port => 2203, :http_fwd => 9990, :cpus =>1} | |
| ] |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
| input { | |
| syslog { | |
| type => "haproxy-access" | |
| port => 514 | |
| } | |
| } | |
| filter { | |
| grok { | |
| type => "haproxy-access" |
| # Firewall configuration written by system-config-firewall | |
| # Manual customization of this file is not recommended. | |
| *filter | |
| :INPUT ACCEPT [0:0] | |
| :FORWARD ACCEPT [0:0] | |
| :OUTPUT ACCEPT [0:0] | |
| -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT | |
| -A INPUT -p icmp -j ACCEPT | |
| -A INPUT -i lo -j ACCEPT | |
| -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000