Skip to content

Instantly share code, notes, and snippets.

View DavideMontersino's full-sized avatar

Davide Orazio Montersino DavideMontersino

View GitHub Profile
# Type(<scope>): <subject>
# <body>
# <footer>
# skip ci should always be there to avoid using codeship builds.
# Remove this line only when a codeship build is needed
--skip-ci
@DavideMontersino
DavideMontersino / resize_virtualbox.md
Created March 13, 2017 15:50
Resize virtual box hard drive

A mix of these tutorials:

  • create a new (bigger) virtual hd
  • use a gparted iso, create a virtual machine and attach the iso, the old (smaller) hd and the new hd to the machine
  • once started, identify the two hard drives and launch:
    dd -if=/dev/sda of=/dev/sdb
    

be careful because if you invert if and of you will delete your original hd. This will take a lot of time to copy everything from one hard drive to the other.

@DavideMontersino
DavideMontersino / crediCardDownload.js
Created May 22, 2018 09:51
ING bankieren afschrift creditcard downloaden
// AT Ing, they say they cannot let you download an extract of your
// credit card expenses because it is impossible given how the system was built.
// But I needed to be able to do it, so I just spent an hour doing it.
function ConvertToCSV(objArray) {
var array = typeof objArray != 'object' ? JSON.parse(objArray) : objArray;
var str = '';
for (var i = 0; i < array.length; i++) {
var line = '';