Skip to content

Instantly share code, notes, and snippets.


Lukas Jakob Hafner sftsk

View GitHub Profile
sftsk /
Last active Dec 2, 2020
WooCommerce <-> Business Central Connector

WooCommerce <-> Business Central Connector

General Setup Connector

  • Custom WordPress/ WooCommerce Plugin + Custom Business Central Extension
  • Items/ Customers gets synced whenever changes within ERP
    • Status page within WooCommerce to see what needs to be synced + log
  • Customers log into WooCommerce, through customer number they are connected with their ERP customer
    • When they log in an offer gets created in the ERP (though an API in real time), through that they are getting their net prices with all discounts etc. (website first shows list prices and then loads net prices through ajax call)
  • As they put items into the cart, they get get added to the offer
sftsk / snippets.js
Created Aug 2, 2019
js snippets :)
View snippets.js
# if click on table get text
document.querySelectorAll("#ccTableCollapse td").forEach(function(company) {
company.onclick = function(){alert(this.textContent);};
sftsk /
Created Jul 2, 2018
Dynamics NAV 2018 C/AL: Good to know

Notes Firebrand Dynamics NAV Course 06.18

  • It might be problematic using web client with windows login; use good passwords as these pages are scanned by “hackers”
  • TIP: Use Test Tool to speed up interface after starting server -> primes the cache by running most common tasks
  • More and more customisations moving into Extensions, Localisation should also move there
  • TIP: in C/AL Designers last (empty) line properties show properties of the Object
  • TIP: Enable Configure Mode to set up roles -> Navclient.exe -configure -> stores UI changes for roles
  • New Development environment is running in Docker, MS provides packages
  • CODE: Arrays have a fixed size, no dynamic length
  • CODE: Breaking loop in REPEAT UNTIL:
sftsk /
Last active Jun 17, 2022
Let's Encrypt macOS Server

Taken from


If like me you are, among other many tasks, a system administrator of a website hosted on OS X server, chances are your are not fully comfortable with what to do precisely in order to get your website running with a valid SSL certificate. After some struggle, I would like to share my experience on the installation of let’s encrypt certificate.

The target audience of this article is people with a minimum IT skills (I assume you know how to open the terminal and some basic knowledge of shell commands), already having a configured and running website hosted on OS X and managed with the Server App. Also this article assumes you will generate the certificate on the machine hosting the server itself.

Note: The following procedure was successfully installed on two similar server, both are Mac mini running on OS X Mavericks (10

sftsk /
Last active Apr 17, 2018
Most interesting companies from the fair