Skip to content

Instantly share code, notes, and snippets.

View DavideMontersino's full-sized avatar

Davide Orazio Montersino DavideMontersino

View GitHub Profile
@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 = '';
@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.

# 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 / private-fork.md
Last active February 27, 2024 12:56
How to fork to a private gitlab instance

Theory:

your git repository can have more than one remote server; In this case we want to have two:

  1. one for our private repository on gitlab (will be the default one, called origin)
  2. one to be connected to the source repo on github, to be able to pull new changes (will be called upstream)

How to make a private fork from github to gitlab

Git session script

@DavideMontersino
DavideMontersino / modern-js-development-toolset.md
Last active February 15, 2016 14:58
A brief introduction to some more or less modern tools for the js developer
We couldn’t find that file to show.
@DavideMontersino
DavideMontersino / Dutch words.md
Last active February 18, 2016 20:10
A list of dutch words I want to learn

Belangrijke woorden

  • terug: back
  • sommige: some
  • vroeger: before
  • na, achter: after
  • bewuster: awareness
  • geld: money
  • tegen: to / against
  • eigenlijk: actually
@DavideMontersino
DavideMontersino / git_quick_reference.md
Last active June 28, 2018 15:15
Git quick reference

Git quick reference

This is a quick reference on how to use git; notice that the shortcut work because of the webo-dotfiles

Clone

Cloning is the operation of retrieving a complete copy of a repository online. Every time you navigate to a project in gitlab, you have access to the repo url (for the webo-dotfiles, for example, the git repo url is git@gitlab.extranet.weborama.com:weborama-nl/webo-dotfiles.git)

git clone <repo url>
@DavideMontersino
DavideMontersino / Development guidelines.md
Last active June 28, 2018 15:15
A draft on developing guidelines for myself and the teams I work with

Git workflow tutorials

General principles

  1. Prefer automation to guidelines whenever possible, use tools to automate stuff. Do not write style guidelines; instead, embed linter in your projects and pre-commit hooks instead; use commit templates

  2. Create a culture

@DavideMontersino
DavideMontersino / .jshintrc
Created November 20, 2015 13:20 — forked from haschek/.jshintrc
JSHint Configuration, Strict Edition
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true