Skip to content

Instantly share code, notes, and snippets.

View patcon's full-sized avatar

Patrick Connolly patcon

View GitHub Profile
@patcon
patcon / gist:2496205
Created April 26, 2012 05:23
vagrant output
VAGRANT_LOG=debug vagrant up
INFO global: Vagrant version: 1.0.2
INFO vagrant: `vagrant` invoked: ["up"]
DEBUG vagrant: Creating Vagrant environment
INFO environment: Environment initialized (#<Vagrant::Environment:0x000001008e1e70>)
INFO environment: - cwd: /Users/homebase/repos/ariadne
INFO environment: Home path: /Users/homebase/.vagrant.d
INFO plugin: Searching and loading any available plugins...
INFO plugin: Loading plugin: vagrant-vbguest (0.3.0)
INFO plugin: Loading plugin: vagrant-test (0.1.2)
@patcon
patcon / vagrant-log.txt
Created June 6, 2012 15:54
vagrant64 test on vagrant-1.0.2 and ruby-1.9.3-p194
➜ mkdir /tmp/basebox-test && cd /tmp/basebox-test
➜ vagrant box add precise64-new http://files.vagrantup.com/precise64.box
➜ vagrant init precise64-new
➜ vagrant up
[default] Importing base box 'precise64-new'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.
@patcon
patcon / myplanet-jira-cli.md
Created June 13, 2012 03:43
myplanet jira cli install
@patcon
patcon / gist:2938898
Created June 15, 2012 21:56
How to alter a drush make file on-the-fly for CI

Been thinking lately on continuous integration/delivery, and how we can have a project where everything required to build the site is in version control, but absolutely no more than necessary. In drupal-land, this is an install profile (with some extraneous data like snippets that will be appended to settings.php, but that's out of scope here).

So to really do continuous delivery right, we need to be able to rebuild a the site in 3 weeks exactly as we built it tonight. But this is tough while using a workflow like described for Drupal.org packaging, which is a great way to operate otherwise. Why is this tough? Because the build-[distro].make file, when written for an install profile that is a git repo, will only ever build the HEAD of a branch.

For example, something like this would normally be used to build the site:

core = 7.x
api = 2
@patcon
patcon / gist:2956120
Created June 19, 2012 19:43
log of composer php discussion on baton extension
patcon:
yo shama, you're an effing hero of a maintainer. RobLoach and I are lauding you in #drupal-contribute :)
3:17ppatcon:
thanks man
3:19ppatcon:
Relevant: https://github.com/shama/baton/issues/5#issuecomment-6433735
3:24pSeldaek:
shama: I'm not sure if the target-dir hack you pulled is a good idea
3:24pSeldaek:
the purpose of the feature was somewhat different
@patcon
patcon / composer.json
Created June 28, 2012 15:03
Drupal 8 composer with views (RobLoach)
{
"require": {
"symfony/class-loader": "2.1.*@beta",
"symfony/dependency-injection": "2.1.*@beta",
"symfony/event-dispatcher": "2.1.*@beta",
"symfony/http-foundation": "2.1.*@beta",
"symfony/http-kernel": "2.1.*@beta",
"symfony/routing": "2.1.*@beta",
"symfony/yaml": "2.1.*@beta",
"twig/twig": "1.8.*@beta",
@patcon
patcon / drush-dev-stdin.md
Created June 28, 2012 22:06
[SOLVED] Drush building from /dev/stdin doesn't work on some systems

Building from /dev/stdin work fine on Macbook (useful to use sed to edit stream).

➜  2ndleveldeep git:(develop) ✗ cat << EOH >> /tmp/test.make
heredoc> core = 7.x
heredoc> api = 2
heredoc> 
heredoc> projects[] = drupal
heredoc> EOH
➜  2ndleveldeep git:(develop) ✗ cat /tmp/test.make | drush make /dev/stdin /tmp/test
@patcon
patcon / gist:3063103
Created July 6, 2012 22:25
Tentative instructions for testing out graylog2 wth Drupal (will go with blog post)

Requirements

Please install these before attempting to run the instructions.

  • Virtualbox
  • Virtualbox extension pack
  • OSX GCC installer (or Xcode)

Instructions

@patcon
patcon / gist:3178464
Created July 25, 2012 20:28
"windows-7-enterprise-amd64" veewee build output
➜ veewee git:(master) ✗ bundle exec vagrant basebox build 'win-crossbrowser'
[win-crossbrowser] Downloading vbox guest additions iso v 4.1.18 - http://download.virtualbox.org/virtualbox/4.1.18/VBoxGuestAdditions_4.1.18.iso
[win-crossbrowser] Checking if isofile VBoxGuestAdditions_4.1.18.iso already exists.
[win-crossbrowser] Full path: /Users/homebase/repos/veewee/iso/VBoxGuestAdditions_4.1.18.iso
[win-crossbrowser]
[win-crossbrowser] The isofile VBoxGuestAdditions_4.1.18.iso already exists.
[win-crossbrowser] Building Box win-crossbrowser with Definition win-crossbrowser:
[win-crossbrowser]
[win-crossbrowser] The isofile 7600.16385.090713-1255_x64fre_enterprise_en-us_EVAL_Eval_Enterprise-GRMCENXEVAL_EN_DVD.iso already exists.
[win-crossbrowser] Received port hint - 59857
@patcon
patcon / gist:3229479
Created August 1, 2012 18:21
macvim fails to compile with hacked apple CLI tools installed
➜ osx-gcc brew install macvim
Warning: We couldn't detect any version of Xcode.
If you downloaded Xcode from the App Store, you may need to run the installer.
sh: - : invalid option
sh: - : invalid option
==> Downloading https://github.com/b4winckler/macvim/tarball/snapshot-64
Already downloaded: /Library/Caches/Homebrew/macvim-7.3-64.tgz
==> ./configure --with-features=huge --with-tlib=ncurses --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-tclinterp
==> make getenvy
==> make