Skip to content

Instantly share code, notes, and snippets.

View dmythro's full-sized avatar
:electron:
🫠

Dmytro dmythro

:electron:
🫠
View GitHub Profile
# http://apple.stackexchange.com/questions/208205/file-open-dialog-is-missing-sidebar-items
cd ~/Library/Preferences && sudo find com.apple.finder.plist* -exec rm {} \; && killall Finder
@dmythro
dmythro / ubuntu-lemp-tuning.sh
Last active August 29, 2015 14:15
Quick setup for Ubuntu 14 + LEMP (on DigitalOcean)
#!/bin/bash
# Locale Set: English by default
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
locale-gen en_US.UTF-8
dpkg-reconfigure locales
locale
@dmythro
dmythro / npm-g-no-sudo.sh
Created December 11, 2014 19:02
NPM: Install global (-g) into a local user directory
# Set NPM paths prefix
npm config set prefix ~/.npm-g
# Add to ~/.bash_profile
export PATH=$HOME/.npm-g/bin:$PATH
@dmythro
dmythro / npm-uninstall-g.sh
Created July 1, 2014 12:57
NPM: Uninstall all Global modules
#!/bin/bash
# Uninstall all Global modules from NPM
# http://stackoverflow.com/questions/9283472/command-to-remove-all-npm-modules-globally
npm -g ls | grep -v 'npm@' | awk '/@/ {print $2}' | awk -F@ '{print $1}' | xargs npm -g rm