Skip to content

Instantly share code, notes, and snippets.

View bstka's full-sized avatar
🏠
Working from home

Bismantaka Aldila bstka

🏠
Working from home
View GitHub Profile
@bstka
bstka / digitalocean.md
Created November 22, 2023 16:54 — forked from cole007/digitalocean.md
Digital Ocean internal migration - moving files between droplets over SSH/SCP

If you need to move a lot of files between DO server you can move these through SCP over the internal private Digital Ocean network.

NB both droplets need to be within the same region

To do this you need:

  1. enable private network for each droplet (if not done at creation, note the droplet needs to be off for this to be enabled once live)
  2. ensure that eth1 is enabled for both droplets if not already - see https://www.digitalocean.com/community/tutorials/how-to-enable-digitalocean-private-networking-on-existing-droplets
  3. scp files from the source server to the destination server are sent like:
@bstka
bstka / .md
Created April 27, 2023 06:11 — forked from joepie91/.md
Running a Node.js application using nvm as a systemd service

Read this first!

Hi there! Since this post was originally written, nvm has gained some new tools, and some people have suggested alternative (and potentially better) approaches for modern systems. Make sure to have a look at the comments to this article, before following this guide!


The original article

Trickier than it seems.

document.getElementById('marketingbar').remove();