Skip to content

Instantly share code, notes, and snippets.

View marekkalnik's full-sized avatar
😁

Marek Kalnik marekkalnik

😁
View GitHub Profile
@akofman
akofman / disable-bitcode.js
Last active July 5, 2016 19:57
Cordova hook to disable bitcode for ios9 projects.
#!/usr/bin/env node
/*
* Disable bitcode for ios9 projects.
* versions:
* xcode 0.8.2
* cordova-lib 5.3.3
*/
var xcode = require('xcode');
@frimik
frimik / git-submodule-sync.rb
Created March 9, 2013 19:32
Make damn sure that git submodule sync is going to work.
#! /usr/bin/env ruby
submods = Hash.new
%x{git config -f .gitmodules --get-regexp '^submodule\..*\.(path|url)$'}.lines.each do |l|
submodule, key, value = l.match(/^submodule\.(.*)\.(path|url)\s+(.*)$/)[1..3]
submods[submodule] = Hash.new unless submods[submodule].is_a?(Hash)
submods[submodule][key] = value
end
@callado4
callado4 / behat-phantomjs-webdriver.md
Last active January 24, 2021 17:10
Instructions on how to make behat (with mink) use the phantomjs webdriver to run headless browser tests

Making behat use phantomjs for the tests

If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0

phantomjs:
    extensions:
        Behat\MinkExtension\Extension:
            base_url: http://dev.local
            goutte: ~
            selenium2:
 wd_host: "http://localhost:8643/wd/hub"