Skip to content

Instantly share code, notes, and snippets.

View VictorRomano's full-sized avatar

Victor Romano VictorRomano

View GitHub Profile
@VictorRomano
VictorRomano / npm_global_packages_folder
Created December 10, 2018 12:22
Change location of NodeJS global folder
# Source:
# https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile
@VictorRomano
VictorRomano / samsung_ssd_get_lifetime_writes.bash
Last active May 22, 2019 19:47
Samsung SSD Total Bytes Written
#!/bin/bash
########################################################################################################
# Source: #
# http://www.jdgleaver.co.uk/blog/2014/05/23/samsung_ssds_reading_total_bytes_written_under_linux.html #
########################################################################################################
#######################################
# Variables #
#######################################