Skip to content

Instantly share code, notes, and snippets.

var fs = require('fs')
var path = require('path')
var _ = require('underscore');
var request = require('request')
// Return only base file name without dir
function getMostRecentFileName(dir) {
var files = fs.readdirSync(dir);
#!/bin/bash
echo "running update"
sudo apt-get -y update
echo "downloading ark-deployer"
git clone https://github.com/ArkEcosystem/ark-deployer.git
echo "downloading nvm"
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash