Get it from the App Store.
In XCode's Preferences > Downloads you can install command line tools.
// | |
// CWCustomAccessoryView.h | |
// CustomAccessory | |
// | |
// Created by Cory Wiles on 10/8/10. | |
// Copyright (c) 2010 __MyCompanyName__. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
# Mac OS X Finder and whatnot | |
.DS_Store | |
# Sparkle distribution Private Key (Don't check me in!) | |
dsa_priv.pem | |
# XCode (and ancestors) per-user config (very noisy, and not relevant) | |
*.mode1 | |
*.mode1v3 | |
*.mode2v3 |
// | |
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#if TARGET_OS_SIMULATOR | |
static const char *fakeCarrier; | |
static const char *fakeTime; |
# 1. Install NetInstall from ISO | |
# 2. Add non-root user (let's call it "nequi") | |
adduser | |
# 3. Initialize pacman-key (hit random characters on keyboard until done) | |
pacman-key --init | |
# 4. Populate signatures | |
pacman-key --populate archlinux | |
# 5. Install awesome | |
pacman -Sy awesome | |
# 6. Install X and Xterm |
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:
######################### | |
# .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 gist is pretty old; I've written up my current approach to the Pyramid integration on this blog post, but that blog post doesn't go into the transactional management, so you may still find this useful.)
I've created a Pyramid scaffold which integrates Alembic, a migration tool, with the standard SQLAlchemy scaffold. (It also configures the Mako template system, because I prefer Mako.)
I am also using PostgreSQL for my database. PostgreSQL supports nested transactions. This means I can setup the tables at the beginning of the test session, then start a transaction before each test happens and roll it back after the test; in turn, this means my tests operate in the same environment I expect to use in production, but they are also fast.
I based my approach on [sontek's blog post](http://sontek.net/blog/
s3cmd ls --recursive s3://BUCKET_NAME | ruby -rdate -ne 'date, time, size, uri = $_.split; puts uri if size == "0"' | xargs s3cmd del |