Skip to content

Instantly share code, notes, and snippets.

View sschlein's full-sized avatar

Sebastian Schlein sschlein

View GitHub Profile
<?php
use Tinkerwell\ContextMenu\Label;
use Tinkerwell\ContextMenu\Submenu;
use Tinkerwell\ContextMenu\SetCode;
use Tinkerwell\ContextMenu\OpenURL;
class CustomTinkerwellDriver extends TinkerwellDriver {
/**
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
@sschlein
sschlein / make_db.php
Created February 21, 2017 08:17
DB Command for Laravel Valet
<?php
// Put this file in your ~/.valet/Extensions directory!
/**
* Create a new database on your local machine.
*/
$app->command('db [name]', function ($name) {
if(!$name) {
warning('Please specify a database name');
@sschlein
sschlein / Magento2ValetDriver.php
Created February 17, 2017 10:41
Magento 2 Driver for Laravel Valet
<?php
class Magento2ValetDriver extends ValetDriver
{
/**
* Holds the MAGE_MODE from app/etc/config.php or $ENV
*
* @var string
*/
# create a new app
distributor(
api_token: “YOUR-API-TOKEN”,
ipa: “./builds/YOUR-IPA.ipa”
)
# update an existing app
distributor(
api_token: “YOUR-API-TOKEN”,
app_id: “YOUR-APP-ID”,
@sschlein
sschlein / distributor.rb
Created April 7, 2016 18:42
Fastlane action to upload new builds to https://wifidistribution.com
module Fastlane
module Actions
module SharedValues
WIFIDISTRIBUTION_INSTALL_URL = :WIFIDISTRIBUTION_INSTALL_URL
end
class DistributorAction < Action
WIFIDISTRIBUTION_API = "https://wifidistribution.com/api/v1/app"
def self.run(params)
@sschlein
sschlein / floatsign.sh
Created March 16, 2016 13:45 — forked from mediabounds/floatsign.sh
A small bash script to re-sign iOS applications.
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the