Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
| #!/bin/sh | |
| fix_branch_output () { | |
| # Strips first columns from the output, to remove whitespace and "current | |
| # branch" marker from git-branch's output | |
| cut -c 3- | |
| } | |
| local_branches () { | |
| git branch | fix_branch_output |
| Moved to https://github.com/nvie/pip-tools/blob/future/tests/pip-compile-specifics.t |
| job = Job.fetch(job_id) | |
| job.my_attr = ['one', 'two'] | |
| job.save() | |
| # re-fetch job | |
| job = Job.fetch(job_id) | |
| print type(job.my_attr) | |
| <type 'str'> | |
| print job.my_attr | |
| "['one', 'two']" # should be unpickled to a list, not a str |
| from gevent import monkey | |
| monkey.patch_all() | |
| import gevent.pool | |
| import os | |
| import random | |
| import time | |
| import datetime | |
| from multiprocessing import Semaphore, Array |
| from multiprocessing import Pool | |
| def fib(n): | |
| if n <= 1: | |
| return n | |
| else: | |
| return fib(n - 1) + fib(n - 2) |
| $ rq-dashboard -h | |
| Usage: rq-dashboard [options] | |
| Options: | |
| -h, --help show this help message and exit | |
| -b ADDR, --bind=ADDR IP addr or hostname to bind to | |
| -p PORT, --port=PORT port to bind to | |
| -H ADDR, --redis-host=ADDR | |
| IP addr or hostname of Redis server | |
| -P PORT, --redis-port=PORT |
| $ rqworker -h ~/Projects/rq | |
| usage: rqworker [-h] [--host HOST] [--port PORT] [--db DB] [--burst] | |
| [--name NAME] [--path PATH] [--verbose] | |
| [queues [queues ...]] | |
| Starts an RQ worker. | |
| positional arguments: | |
| queues The queues to listen on (default: 'default') |
Get it from http://developer.apple.com. You will not be able to submit apps to any stores using this XCode version, so turn away if that is something you might want to do.
In XCode's Preferences > Downloads you can install command line tools.
| Counting objects: 19, done. | |
| Delta compression using up to 8 threads. | |
| Compressing objects: 100% (12/12), done. | |
| Writing objects: 100% (12/12), 1.39 KiB, done. | |
| Total 12 (delta 10), reused 0 (delta 0) | |
| remote: /usr/lib/ruby/1.8/securerandom.rb:53:in `random_bytes': PRNG not seeded (OpenSSL::Random::RandomError) | |
| remote: from /usr/lib/ruby/1.8/securerandom.rb:53:in `random_bytes' | |
| remote: from /usr/lib/ruby/1.8/securerandom.rb:91:in `hex' | |
| remote: from /data/github/current/vendor/gems/ruby/1.8/gems/activesupport_notifications_backport-0.0.4/lib/active_support/notifications/instrumenter.rb:29:in `unique_id' | |
| remote: from /data/github/current/vendor/gems/ruby/1.8/gems/activesupport_notifications_backport-0.0.4/lib/active_support/notifications/instrumenter.rb:7:in `initialize' |
| #!/bin/sh | |
| set -e | |
| extensions=$* | |
| main() { | |
| if [ -z "$extensions" ]; then | |
| find . | |
| else | |
| echo "find . $(build_find_command_arguments)" | sh |