Skip to content

Instantly share code, notes, and snippets.

View remcotolsma's full-sized avatar
🏢
Working @pronamic

Remco Tolsma remcotolsma

🏢
Working @pronamic
View GitHub Profile
@remcotolsma
remcotolsma / after.vb
Created June 7, 2017 07:50
Post XML message to lookup server.
Sub Upload_File()
Dim fName As String = "C:\Temp\Bestand1.xml"
Dim wUser As String = "User"
Dim wPassword As String = "Password"
Dim url As New Uri("https://www.website.nl/upl.php")
Dim cred As New CredentialCache()
cred.Add(url, "Basic", New NetworkCredential(wUser, wPassword))
Dim boundary As String = Path.GetFileName(fName)
@remcotolsma
remcotolsma / lookup.php
Created June 1, 2017 09:21
Twinfield lookup.nu
<?php
// ...
/**
* WordPress REST API upload request.
*
* @param WP_REST_Request $request
*/
public function rest_api_upload( WP_REST_Request $request ) {
@remcotolsma
remcotolsma / gravityforms-snelstart.php
Last active March 27, 2017 15:00
Gravity Forms, Pronamic iDEAL and SnelStart integration plugin.
<?php
/*
Plugin Name: Gravity Forms SnelStart
Plugin URI:
Description:
Version: 1.0.0
Requires at least: 4.0
Author:
@remcotolsma
remcotolsma / pronamic-transient-tester.php
Created March 21, 2017 08:39
Test WordPress transient system, we had some issues on SiteGround hosting with Memcached enabled.
<?php
define( 'WP_USE_THEMES', false );
require './wp-blog-header.php';
$test = get_site_transient( 'pronamic_transient_test' );
echo 'Get transient', '<br />';
@remcotolsma
remcotolsma / request.xml
Created February 27, 2017 11:26
Twinfield update transaction.
<?xml version="1.0"?>
<transaction destiny="temporary">
<header>
<office>11024</office>
<code>MOLLIE_2</code>
<number>201700001</number>
<period>2017/02</period>
<date>20170201</date>
</header>
<lines>
@remcotolsma
remcotolsma / request.xml
Last active February 27, 2017 11:26
Twinfield update transaction.
<?xml version="1.0"?>
<transaction destiny="temporary">
<header>
<office>11024</office>
<code>INK</code>
<number>201400001</number>
<period>2014/12</period>
<date>20141231</date>
<invoicenumber>20170001</invoicenumber>
</header>
@remcotolsma
remcotolsma / plugin.php
Created September 20, 2016 08:55
Display WooCommerce prices exlcuding tax for distributors.
<?php
/*
Plugin Name: SunStofey WooCommerce Prices Excluding Tax for Distributors
Plugin URI: https://www.pronamic.eu/
Description: Display WooCommerce prices exlcuding tax for distributors.
Author: Pronamic
Version: 1.0.0
Author URI: https://www.pronamic.eu/
*/
@remcotolsma
remcotolsma / SendGrid WordPress password reset link.md
Last active September 1, 2016 11:43
SendGrid - WordPress password reset link appears to be invalid - Unless copied and pasted
@remcotolsma
remcotolsma / README.md
Last active December 21, 2023 14:13
WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more

WordPress development environment on Mac with Brew, Nginx, PHP 7, PHP-FPM, MariaDB, phpMyAdmin and more

Brew

http://brew.sh/

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
@remcotolsma
remcotolsma / libloader.js
Created July 13, 2016 11:10
Holiday Media JavaScript framework, version 2.0.7 from https://lib.hmcms.nl/js/2/libloader.js?load=ha.booking.widget unminified with http://unminify.com/.
/*! Holiday Media JavaScript framework, version 2.0.7 (c) 2006-2015 Holiday Media Author: Wim Latour (@wimlatour) */
window.hm_libloader_preloaded = 'async,ha.booking.widget,hm.cache,hm.storage,hm.widget,jquery.ui.core,jquery.ui.datepicker,ui.datepicker,ui.datepicker-config,ui.datepicker-i18n';
! function(e, n, r) {
if (e === r) throw "Holiday Media JavaScript framework requires jQuery";
if (!e.hm || !e.hm.libloader) {
var t = function() {
function n() {
this.init.apply(this, arguments)
}
return e.extend(n.prototype, {