I hereby claim:
- I am hmarr on github.
- I am hmarr (https://keybase.io/hmarr) on keybase.
- I have a public key whose fingerprint is 5019 3A27 4A54 FCF3 525E EDC9 EC35 9447 F668 59CC
To claim this, I am signing this object:
source 'https://rubygems.org' | |
gem 'rspec' | |
gem 'elasticsearch', '~> 1.0.2' |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
echo -n "catsh% " | |
while read line; do | |
if [[ "$line" == ":exit" ]]; then | |
exit | |
fi | |
sh -c "cat $line" | |
echo -n "catsh% " |
#!/bin/bash | |
echo -n "gitsh% " | |
while read line; do | |
if [[ "$line" == ":exit" ]]; then | |
exit | |
fi | |
sh -c "git $line" | |
echo -n "gitsh% " |
When you install the Hutch gem, an executable called `hutch` will be installed. | |
Assuming you're using bundler, you can run Hutch by executing the hutch | |
executable. If it's executed in the working directory of a Rails app, the Rails | |
app will be auto-detected and any consumers in the `app/consumers` directory | |
will be auto loaded. If you're not using Rails, or have your consumers in | |
non-standard locations, pass `--require` flags to the hutch executable to | |
specify your consumer paths. | |
To run the Hutch executable, it's probably worth using a process supervisor | |
such as upstart, supervisord, god, etc., just as you'd use with your app |
As demonstrated by the tutorials on the website, RabbitMQ can be used for everything from queuing background work to building RPC systems. To use RabbitMQ effectively, it is important to understand the core concepts: queues, exchanges, bindings, and messages. The documentation on rabbitmq.com is excellent, so I won't go into much depth, but it's worth briefly mentioning the core ideas.
Exchanges are where messages are sent. Every time a message is pushed in to RabbitMQ, it goes through an exchange.
When initialising gocardless-ruby with your GoCardless account details, your merchant id must now be passed in explicitly. This means that including the manage_merchant
scope in the token
attribute is now deprecated.
Before
GoCardless.account_details = {
:app_id => 'APP_ID_XXXXXXXXXXXXXXXXXXXXX',
:app_secret => 'APP_SECRET_XXXXXXXXXXXXXXXXX',
GoCardless.AccountDetails = new AccountDetails { | |
AppId = "APP123", | |
AppSecret = "S3CR3T", | |
Token = "ACCESSTOKEN123 manage_merchant:MERCHANT123" | |
}; | |
GoCardless.Connect.NewBillUrl(new BillRequest("MERCHANT123", 30m)); |
~ ⚡ brew install redis | |
==> Downloading http://redis.googlecode.com/files/redis-2.4.7.tar.gz | |
######################################################################## 100.0% | |
==> make -C src | |
MAKE hiredis | |
CC ae.o | |
CC anet.o | |
CC redis-benchmark.o | |
clang: warning: argument unused during compilation: '-rdynamic' | |
clang: warning: argument unused during compilation: '-ggdb' |
function bbikes { | |
location=${1:-$DEFAULT_BBIKE_LOCATION} | |
if [ -z $location ]; then | |
echo "usage: bbikes <location>" | |
echo "(you can also set a default location with DEFAULT_BBIKE_LOCATION)" | |
return 1 | |
fi | |
url='https://web.barclayscyclehire.tfl.gov.uk/maps' | |
user_agent='Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)' | |
data=$(curl -sA "$user_agent" "$url" | grep ShowInfoB | grep -i "$location") |