Skip to content

Instantly share code, notes, and snippets.

View coderbyheart's full-sized avatar
🌩️
building serverless IoT solutions

Markus Tacker coderbyheart

🌩️
building serverless IoT solutions
View GitHub Profile
Dear Mr. Mohager:
I am not sure if you realize, but this change just "pulled the rug" from under
our feet unbeknownst to us. We feel completely blind-sighted, disappointed, and
frankly bullied by a company that we considered our role model and used to
admire. We were one of your earliest supporters, and now we feel betrayed. We
are an early stage company, and have invested our own, investors' and clients'
money in building two LinkedIn integrated applications centered around a
use-case that requires for users to have access to their own contacts' current
and past positions. Now, as we are about to launch, we realize that all that
@coderbyheart
coderbyheart / gist:5032022
Last active December 14, 2015 04:59
Spenden Sammeln für das Große Treffen der Frankfurter Usergroups
Hallo alle Mitorganisatoren,
es gibt derzeit zwei Möglichkeiten, Spendengelder an uns
weiterzureichen:
a) Übergabe an mich in Bar mit Quittung
b) Überweisung auf unser Vereinskonto.
Die Bankverbindung wird nicht öffentlich bekannt gegeben.
Spenden einzelner Mitglieder einer UG nimmt eine Vertrauensperson
@coderbyheart
coderbyheart / gist:5047852
Last active December 18, 2017 19:06
PHP stream context POST redirect problem
<?php
$base64cred = '<your auth data here>'; // base64_encode('username:password');
/** @var string Contains the redirect url */
$redirectUrl = null;
/**
* Used to catch the redirect location
*/
@coderbyheart
coderbyheart / gist:5047866
Created February 27, 2013 13:24
CURL transcript of creating a GitHub API access token
$ curl -v -d '{"scopes":["repo"],"note":"Composer on nanshe","note_url":"https:\/\/getcomposer.org\/"}' -H "Content-Type: application/json" -H "Authorization: Basic *****" -H "User-Agent: Composer/source (Linux; 3.7.9-2-ARCH; PHP 5.4.12)" -H "Accept-Encoding: gzip" -X POST https://api.github.com/authorizations
* About to connect() to api.github.com port 443 (#0)
* Trying 207.97.227.243...
* Connected to api.github.com (207.97.227.243) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
@coderbyheart
coderbyheart / gist:5152820
Created March 13, 2013 14:47
Mageworx Customer Credit Extension failing under Magento 1.5.1.0

Mageworx Customer Credit Extension failing under Magento 1.5.1.0

URL

http://[…]/index.php/admin/system_config/edit/section/mageworx_customers/key/[…]

Traceback

Warning: include(Mage/Adminhtml/Model/System/Config/Source/Customer/Group/Multiselect.php): failed to open stream: No such file or directory  in /home/www/ybus/magento/lib/Varien/Autoload.php on line 93
@coderbyheart
coderbyheart / gist:5247110
Last active December 15, 2015 10:39
Extract email addresses from freelancer rhein main
var infotext = "";
$('.person-detail').map(function(i, p) {
var name = $(p).find('h2[itemprop=name]').text().trim();
var email = $(p).find('*[itemprop=email]').text().trim();
if (!email) return; // No email? Pah.
var info = '"' + name + '" <' + email + '>';
return info;
}).each(function(i,info) { infotext = infotext + info + ",\n"; });
alert("E-Mails:\n\n" + infotext);
console.log(infotext);
@coderbyheart
coderbyheart / Checkout.php.patch
Created April 3, 2013 09:37
Idev OneStepCheckout 4.0.7 bug fixes
--- app/code/local/Idev/OneStepCheckout/Block/Checkout.php.orig 2013-04-02 16:11:32.993889731 +0200
+++ app/code/local/Idev/OneStepCheckout/Block/Checkout.php 2013-04-02 16:11:37.447302998 +0200
@@ -364,6 +364,8 @@
if(isset($billing_data['email'])) {
$this->email = $billing_data['email'];
+ } else { // if no email adresse present use the email of the logged in user -- Markus Tacker <m@coderbyheart.de>
+ $billing_data['email'] = $this->email;
}
@coderbyheart
coderbyheart / Abstract.php.diff
Last active December 15, 2015 17:59
Payone 3.1.2 Patch for Payone_Core_Model_Payment_Method_Abstract::getTitle()
diff --git a/app/code/community/Payone/Core/Model/Payment/Method/Abstract.php b/app/code/community/Payone/Core/Model/Payment/Method/Abstract.php
index e8d3e1b..d898e6c 100644
--- a/app/code/community/Payone/Core/Model/Payment/Method/Abstract.php
+++ b/app/code/community/Payone/Core/Model/Payment/Method/Abstract.php
@@ -429,4 +429,34 @@ abstract class Payone_Core_Model_Payment_Method_Abstract
return $this->methodType;
}
+ /**
+ * Retrieve payment method title
@coderbyheart
coderbyheart / Abstract.php.patch
Created April 11, 2013 15:39
Patch for Payone Magento 3.1.2: Use customermessage instead of generic error description
diff --git a/magento/app/code/community/Payone/Core/Model/Service/Payment/Abstract.php b/magento/app/code/community/Payone/Core/Model/Service/Payment/Abstract.php
index 27bdcd1..60f0bfa 100644
--- a/magento/app/code/community/Payone/Core/Model/Service/Payment/Abstract.php
+++ b/magento/app/code/community/Payone/Core/Model/Service/Payment/Abstract.php
@@ -85,7 +85,7 @@ abstract class Payone_Core_Model_Service_Payment_Abstract
if ($response instanceof Payone_Api_Response_Error) {
/** @var $response Payone_Api_Response_Error */
- $this->throwMageException('There has been an error processing your payment');
+ $this->throwMageException($response->getCustomermessage());
@coderbyheart
coderbyheart / result.json
Last active December 17, 2015 03:09
DeinBus.de VMV Output of query: departure=Frankfurt+%28Main%29+Hbf+%2F+Busbahnhof&arrival=M%C3%BCnchen+ZOB+Hackerbr%C3%BCcke&departuredatetime=20130513
{
"segments": [
{
"departure_station": "Frankfurt am Main Hauptbahnhof",
"departs_at": "2013-05-13T12:00:00Z",
"arrival_station": "M\u00fcnchen ZOB",
"arrives_at": "2013-05-13T18:10:00Z",
"service_agencies": [
"DeinBus.de"
],