Skip to content

Instantly share code, notes, and snippets.

@snehasi
snehasi / successtilldb.txt
Created May 7, 2018 16:29
Set up the dev env successfully, the kernel log:
sneha@sneha-lenovo-z51-70:~/experimenting/src/exchange$ script/dev/provision/localhost
[DEPRECATION WARNING]: DEFAULT_SUDO_EXE option, In favor of Ansible Become, which is a generic framework. See become_exe. , use become instead. This feature will be removed in version 2.8. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become, which is a generic framework. See become_user. , use become instead. This feature will be removed in version 2.8. Deprecation
warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [all] *************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ***********************************************************************************************************************************************
@snehasi
snehasi / fix-homebrew-npm.md
Created May 7, 2018 15:35 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.

Solution

This solution fixes the error caused by trying to run npm update npm -g. Once you're finished, you also won't need to use sudo to install npm modules globally.

Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.

@snehasi
snehasi / ansiblessh.txt
Created May 7, 2018 14:44
sshconfig in ansible errror
sneha@sneha-lenovo-z51-70:~/experimenting/src/exchange$ script/dev/provision/localhost
[DEPRECATION WARNING]: DEFAULT_SUDO_EXE option, In favor of Ansible Become,
which is a generic framework. See become_exe. , use become instead. This
feature will be removed in version 2.8. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
[DEPRECATION WARNING]: DEFAULT_SUDO_USER option, In favor of Ansible Become,
which is a generic framework. See become_user. , use become instead. This
feature will be removed in version 2.8. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
@snehasi
snehasi / ansibleupgrade.txt
Last active May 7, 2018 14:37
Updating the ansible version without using pip
Doing sudo -H pip install --upgrade ansible should have worked, but pip is failing build these days, and packages aren't gettig
installed with pip.
An alternative:
sneha@sneha-lenovo-z51-70:~$ sudo apt-get remove ansible
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required: