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
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
# This file should be copy and pastable in bash or zsh. | |
# Homebrew uses this version as of this documentation's writing. | |
export POSTGRESQL_VERSION="2.1.3" | |
# 1. Install PostgreSQL postgis and postgres | |
brew install postgis | |
initdb /usr/local/var/postgres | |
## Start up the database. You can also use the launchctl method. |
TEXT = <<EOF | |
See, the interesting thing about this text | |
is that while it seems like the first line defines an indent | |
it's actually the last line which has the smallest indent | |
there are also some blank lines | |
both with and without extra spaces in them | |
and it just goes on and on |
require './zoltar_module' | |
require './zoltar_helper' | |
include ZoltarSpeaks | |
intro | |
greeting | |
shall_we | |
which_fortune | |
answer = promptd |
##votersim.rb | |
class Person | |
attr_accessor :voters, :politicians | |
def initialize | |
@@voters = [] | |
@@politicians = [] | |
end |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: