Skip to content

Instantly share code, notes, and snippets.

/**
* @author Taras Labiak <[email protected]>
*/
const http = require('http');
const https = require('https');
const fs = require('fs');
const path = require('path');
const { promisify } = require('util');
const https = require('https')
const fs = require('fs')
const entites = ''
function fetch(path) {
return new Promise(function (resolve, reject) {
const req = https.request({
hostname: 'etherscan.io',
method: 'GET',
@kissarat
kissarat / swap.sh
Last active February 4, 2019 16:11
FILENAME=/tmp/swap-$(date +%s)
dd if=/dev/zero of=${FILENAME} bs=1M count=$1
mkswap ${FILENAME}
chmod 600 ${FILENAME}
swapon ${FILENAME}