From | To | Expression |
---|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is an attempt at constructing an application which complies with the | |
# ideas expressed at http://www.12factor.net/, specifically section 3, "Config" | |
# which states that configuration parameters which vary between environments | |
# should be stored in environment variables. | |
# | |
# `Configuration` is a thin wrapper around Ruby's ENV hash which also allows | |
# traditional custom config parameters to be set. Add an `attr_accessor` line | |
# and define the value in `config/environments/*.rb`. | |
# | |
# For example, `Configuration.api_token` called in the foobar environment will |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Attempts to install the web application vulnerability scanner w3af and it's prerequisites. | |
# For more information about w3af, see: http://w3af.sourceforge.net/ | |
# USAGE: pypi_install package_name version_number md5_checksum | |
# checksum is optional; package and version are required | |
function pypi_install() { | |
name=$1 | |
version=$2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyApp | |
class Application < Rails::Application | |
if Rails.env == 'test' | |
require 'diagnostic' | |
config.middleware.use(MyApp::DiagnosticMiddleware) | |
end | |
end | |
end |
NewerOlder