Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Evgeniy Viniychuk merksam

🏠
Working from home
View GitHub Profile
@merksam
merksam / Disk Utility for NodeJS
Last active Mar 21, 2020
Provides interface to `df -lP` and parses its result
View Disk Utility for NodeJS
import { exec } from 'child_process';
class DiskService {
getAvailableSpace = () => {
/*
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/root 3745600 2808444 752184 79% /
devtmpfs 470116 0 470116 0% /dev
tmpfs 474724 0 474724 0% /dev/shm
tmpfs 474724 12228 462496 3% /run
@merksam
merksam / Timezones
Last active Mar 23, 2020
Short list of all timezones
View Timezones
[
{
"value": "Etc/GMT+12",
"offset": -720,
"label": "(GMT-12:00) International Date Line West"
},
{
"value": "Pacific/Midway",
"offset": -660,
"label": "(GMT-11:00) Midway Island, Samoa"
You can’t perform that action at this time.