Skip to content

Instantly share code, notes, and snippets.

View alexandervantrijffel's full-sized avatar
💻

Alexander van Trijffel alexandervantrijffel

💻
View GitHub Profile
function doit() {
var taskboard = JSON.parse(document.querySelector('#taskboard script').innerHTML);
var data = taskboard.payload.data
var pbis_and_ranks = [];
for (prop in data) {
var current = data[prop];
if (current[1] != "Product Backlog Item"){
continue;
}
@alexandervantrijffel
alexandervantrijffel / unix server setup
Last active July 3, 2016 18:48
Server installation script
Server security
http://www.codelitt.com/blog/my-first-10-minutes-on-a-server-primer-for-securing-ubuntu/
https://www.inversoft.com/guides/2016-guide-to-user-data-security
echo todo https://www.magentocommerce.com/wiki/1_-_installation_and_configuration/configuring_nginx_for_magento
echo todo http://blog.nexcess.net/2010/12/06/securing-magento-file-directory-permissions/
read -p "Press any key to continue..." -n1 -s
DI is the ability to inject the implementation of a contract into a target. IoC is the ability to vary the implementation.
Software being "Done" is like lawn being "Mowed". by @ourfounder
Essentially, all models are wrong, but some are useful
-- George E. P. Box Empirical Model-Building and Response Surfaces (1987)
There are only two hard things in Computer Science: cache invalidation and naming things.
-- Phil Karlton
Met de service bus passen we separation of concerns op architectuurniveau toe. De presentatielagen (web en rapport) worden gescheiden van de onderliggende lagen via een berichtenservicebus.
Github cheatsheet - https://github.com/tiimgreen/github-cheat-sheet
Gitflow - https://github.com/nvie/gitflow
# view git status with correct renames info
git commit --dry-run -a
# benefits of Git over TFS: http://www.continuousimprover.com/2015/06/why-you-should-abandon-tfs-source.html
@alexandervantrijffel
alexandervantrijffel / Defensive programming - being just-enough paranoid
Created January 29, 2015 11:58
Defensive programming - being just-enough paranoid
When developers run into an unexpected bug and can’t fix it, they’ll “add some defensive code” to make the code safer and to make it easier to find the problem. Sometimes just doing this will make the problem go away. They’ll tighten up data validation – making sure to check input and output fields and return values. Review and improve error handling – maybe add some checking around “impossible” conditions. Add some helpful logging and diagnostics. In other words, the kind of code that should have been there in the first place.
3 Expect the Unexpected
The whole point of defensive programming is guarding against errors you don’t expect.
Steve McConnell, Code Complete
The few basic rules of defensive programming are explained in a short chapter in Steve McConnell’s classic book on programming, Code Complete:
1. Protect your code from invalid data coming from “outside”, wherever you decide “outside” is. Data from an external system or the user or a file, or any data from outside of the module/component. Establ

Payment providers with publically available nopCommerce plugins. Use this list to select a payment provider for your nopCommerce webshop implementation.

Payment Provider Payment methods Comments NopCommerce plugin IDEAL Credit Card Overboeking
Mollie BC/B/C/I/M/P/S $15 per method €0,45 €0,25 + 2,8% €0,25
Sisow B/I/M/P/S $35 per method €0,45 €0,25 + 2,8% €0,35
Buckaroo B/C/I/G/M/P/S Aansluitkosten en abonnementskosten. Link Gratis
Ingenico (formally Ogone) C
IcePAY None
Rabobank Omnikassa todo $271