Skip to content

Instantly share code, notes, and snippets.

View danielbowden's full-sized avatar

Daniel Bowden danielbowden

View GitHub Profile
@danielbowden
danielbowden / pdfcleancombine.sh
Last active August 29, 2015 14:04
Bash script for cleaning and combing multiple PDFs into one
#!/bin/bash
# Note files need to be in correct order to start with. ie. number chapters first
# Required tools:
# * http://www.pdflabs.com/tools/pdftk-server/
# * brew install mupdf
# Works as follows:
@danielbowden
danielbowden / get_provisioning_profile_specifier.rb
Last active December 12, 2016 06:13
Custom Fastlane action - Returns the provisioning profile specifier for the provided provisioning profile
module Fastlane
module Actions
module SharedValues
GET_PROVISIONING_PROFILE_SPECIFIER_CUSTOM_VALUE = :GET_PROVISIONING_PROFILE_SPECIFIER_CUSTOM_VALUE
end
class GetProvisioningProfileSpecifierAction < Action
def self.run(params)
profile_path = params[:profile]
UI.message "Provisioning profile: #{profile_path}"
@danielbowden
danielbowden / create_merchant.rb
Created August 18, 2017 03:13
Custom Fastlane action - Uses my PR in fastlane produce to create a new Apple Pay Merchant or ensure that a specific Merchant exists
require 'produce'
require 'produce/merchant'
module Fastlane
module Actions
class CreateMerchantAction < Action
def self.run(params)
Produce.config = params
Produce::Merchant.new.create(params, nil)
end
@danielbowden
danielbowden / associate_merchants.rb
Last active June 19, 2018 21:06
Custom Fastlane action - Uses my PR in fastlane produce to associate an app with merchants for use with Apple Pay. Apple Pay will be enabled for this app.
require 'produce'
require 'produce/merchant'
module Fastlane
module Actions
class AssociateMerchantsAction < Action
def self.run(params)
Produce.config = params
Produce::Merchant.new.associate(nil, params[:merchant_identifiers])
end