Home

Speed Up Command Line Navigation

Speed Up Command Line Navigation Run That Again as Root — sudo !! user@host: cat /var/log/messages cat /var/log/messages: Permission denied. Don’t type: Up. Left. Left. Left…. sudo Enter. Instead: sudo !! This is a little shortcut works, because !! is a shell place holder for the last command executed. Typing these 7 characters will run th...

Read more

Android: Setting Up Android Studio

Updated: 2020-03-18 20:38 Set Up Android Studio’s Tools Install Android Studio 3.0+ Go to Preferences -> Appearance & Behavior -> Android SDK. Click on the SDK Tools tab and make sure you have at least one version of the Android SDK Build-Tools installed. Copy or remember the path listed in the box that says Android SDK Locati...

Read more

Git: Setting Up Git for the First Time

Setting Up Git for the First Time After you have Git installed, you need to do few things so that the commit messages that will be generated for you will contain your correct information. The easiest way of doing this is through the git config command. Specifically, we need to provide our name and email address because Git embeds this informat...

Read more

npm: Uninstall Local and Global Packages

Uninstalling Local Packages You can remove a package from you node_modules directory using npm uninstall <package>: npm uninstall lodash To remove it from the dependencies in package.json, you will need to use the save flag: npm uninstall --save lodash Uninstalling Global Packages Global packages can be uninstalled with npm uninsta...

Read more

npm: Updating Global Packages

Updating Global Packages To update global packages, you can use npm install -g <package>: npm install -g expo-cli To find out which packages need to be updated, you can use npm outdated -g --depth=0. To update all global packages, you can use npm update -g. However, for npm versions less than 2.6.1, this script is recommended to upda...

Read more

macOS: Output Mac Audio to Two Audio Devices

Output Mac Audio to Two Audio Devices Make sure that the headphones you want to use together are paired with your Mac over Bluetooth and/or connected via the headphone jack. Launch the Audio MIDI Setup app, located in Applications > Utilities. Click the plus (+) button at the lower left of the Audio Devices window and select Create Mu...

Read more

Manage Dotfiles with a Bare Git Repository

Setup Git is the only dependency. The following four lines will set up the bare repository. git init --bare $HOME/.dotfiles.git echo 'alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"' >> $HOME/.zshrc source ~/.zshrc dotfiles config --local status.showUntrackedFiles no Create a git bare repository at ~/.d...

Read more

macOS: Change Hostname via Terminal

Change Hostname via Terminal Launch the terminal application in macOS and then use the following command syntax: $ sudo scutil --set HostName new_hostname Another Method for Setting the Mac Hostname With modern macOS releases from macOS Mavericks and newer, you can also use the hostname command with a flag to set the hostname to be permanen...

Read more