(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| # ... | |
| gem 'carrierwave' | |
| gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL |
| // Service for checking the availability of a given word | |
| Splitter.module('Checkers', function(Checkers, Splitter) { | |
| var LocalChecker = { | |
| comKeyFor: function(compound) { | |
| return 'avail/.com/' + compound; | |
| }, | |
| check: function(compound) { |
| http://observer.com/2013/04/memories-of-you-ron-johnson/ | |
| http://io9.com/annalee-i-think-you-do-a-real-disservice-to-both-open-466738177 |
| <?php | |
| /** | |
| * Basic dispatch function, uses array structured as [$verb => [$path => $route_fn, ...]] | |
| * calling $route_fn if $path/$verb match the arguments passed | |
| * | |
| * @param $path_condition regex for matching paths (must use suitable deliminator, eg. @) | |
| * | |
| * @throws Exception when path/route function missing (programmer error) | |
| * @return bool true for successful route, false for no route/404 | |
| */ |
| # This is a skeleton for testing models including examples of validations, callbacks, | |
| # scopes, instance & class methods, associations, and more. | |
| # Pick and choose what you want, as all models don't NEED to be tested at this depth. | |
| # | |
| # I'm always eager to hear new tips & suggestions as I'm still new to testing, | |
| # so if you have any, please share! | |
| # | |
| # @kyletcarlson | |
| # | |
| # This skeleton also assumes you're using the following gems: |
I've had the opertunity to try a variety of different server configurations but never really got around to trying HHVM with Magento until recently. I thought I would share a detailed walkthrough of configuring a single instance Magento server running Nginx + Fast CGI + HHVM / PHP-FPM + Redis + Percona. For the purpose of this blog post I'm assuming you are using Fedora, CentOS, or in my case RHEL 6.5.
Please note: I'm 100% open to suggestions. If you see something I did that needs to be done a different way, please let me know. I haven't included my Perconca my.conf file yet. I will shortly. Also I plan on trying this same test with HHVM 3.3 and PHP 7.
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm| # IN AMAZON EC2 SERVER # | |
| ######################## | |
| sudo su | |
| apt-get -y update && apt-get -y upgrade | |
| apt-get install vim git-core curl openssh-server openssh-client python-software-properties build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libcurl4-openssl-dev aptitude | |
| /usr/sbin/groupadd wheel | |
| /usr/sbin/visudo | |
| (paste bottom) | |
| %wheel ALL=(ALL) ALL |
| --- | |
| - name: Deploy new site release | |
| user: deployer | |
| hosts: all | |
| tasks: | |
| - name: Fetch repo updates | |
| git: > | |
| repo=git@github.com:my/repo.git |
| Copyright (c) 2015, Shahar Evron | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, this | |
| list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |