Skip to content

Instantly share code, notes, and snippets.

View sftsk's full-sized avatar

Lukas Jakob Hafner sftsk

View GitHub Profile
@sftsk
sftsk / ipv6-pi.md
Last active February 6, 2023 07:40
Enable ipv6 on Raspberry Pi
@sftsk
sftsk / wc-bc-connector.md
Last active December 2, 2020 11:22
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
sftsk / snippets.js
Created August 2, 2019 10:26
js snippets :)
# if click on table get text
document.querySelectorAll("#ccTableCollapse td").forEach(function(company) {
company.onclick = function(){alert(this.textContent);};
})
@sftsk
sftsk / nav2018.md
Created July 2, 2018 11:12
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
sftsk / lets-mac.md
Last active June 17, 2022 12:04
Let's Encrypt macOS Server

Taken from https://community.letsencrypt.org/t/complete-guide-to-install-ssl-certificate-on-your-os-x-server-hosted-website/15005?source_topic_id=33254&source_topic_id=40061

Introduction

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