Skip to content

Instantly share code, notes, and snippets.

View papplo's full-sized avatar
💭
Working from 127.0.0.1

Pablo Anttila papplo

💭
Working from 127.0.0.1
View GitHub Profile
@papplo
papplo / ssh-key-generation.md
Created July 8, 2022 20:25 — forked from cybersamx/ssh-key-generation.md
Generate a new SSH key pair

Mac and Linux

  • Open Terminal

  • Check if you already have a SSH keypair generated. Do the following:

    $ ls -la ~/.ssh/id_rsa*
    

If the files exist, you already have SSH installed. IMPORTANT: But if you wish to regenerate the SSH key pair, at least back up your old SSH keys.

@papplo
papplo / vortextab75.md
Created December 21, 2021 08:04 — forked from herpiko/vortextab75.md
Vortex Tab 75 Programming

Programming

  • Plug in the cable, you need the LED to guide you
  • Pn + Left Ctrl to enter programming mode
  • Press the key that want to be programmed
  • Press the target key
  • Pn to apply
  • Pn + Left Ctrl to exit

It's possible to lose a key. Sometimes you need to backup it first.

@papplo
papplo / convert-array.js
Created May 1, 2018 07:24 — forked from hengkiardo/convert-array.js
Convert simple array into two-dimensional array(matrix) in javascript
function listToMatrix(list, elementsPerSubArray) {
var matrix = [], i, k;
for (i = 0, k = -1; i < list.length; i++) {
if (i % elementsPerSubArray === 0) {
k++;
matrix[k] = [];
}
matrix[k].push(list[i]);
}
return matrix;
@papplo
papplo / vanilla-js-cheatsheet.md
Created April 23, 2018 11:47 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet