Skip to content

Instantly share code, notes, and snippets.

View krishna1306's full-sized avatar

Krishna Bandi krishna1306

View GitHub Profile
@krishna1306
krishna1306 / manage-gists-better.md
Created August 9, 2023 04:36
Manage Gists Better
@krishna1306
krishna1306 / neovim-on-mac.md
Last active August 9, 2023 04:35
Neovim on Mac

Install nvim on Mac - Best Terminal Editor

Neovim is vim on steroids

# install neovim
brew install neovim

# install ripgrep
brew install ripgrep
@krishna1306
krishna1306 / tmux-on-mac.md
Last active August 9, 2023 04:27
TMUX Commands
@krishna1306
krishna1306 / 1password-cli-utility-on-mac.md
Last active August 9, 2023 04:31
Using 1-Password CLI Utility

1Password CLI Automation (On Mac)

Change 1Password Settings

  1. Enable 1-Password CLI in the developer tab inside settings for the chosen 1Password account
  2. Download the CLI utility using brew install 1password-cli

Commands

@krishna1306
krishna1306 / remove-first-line-pass.md
Last active August 12, 2023 02:37
Using `pass` utility on Mac

Remove the password line when using pass command

Add the below line(s) to ~/.zshrc

# function to remove first line of pass output
passp() { command pass "$@" | tail -n +2 }
@krishna1306
krishna1306 / vmware_fusion_host_only_networks_mac.md
Last active August 9, 2023 04:28
Add Host-Only Network to VMWare Fusion on Mac

VMWare Fusion (Mac) Network Adapter - Add Host Only Networks

Add a new network adapter

In the VM settings, add a new network adapter. Choose vmnet2 to vmnet7 - they come with their own IP address blocks.

Check if a bridge is created for that network on the Host

ifconfig

Check the IP address assigned to that bridge. It's usually the first host address in the network assigned to the custom host-only network you added earlier.

@krishna1306
krishna1306 / mac_ip_terminal.md
Last active August 9, 2023 04:29
Manage IP Addresses on Mac using Terminal

Add IP Address from Terminal (Mac)

Add IP Address

sudo ifconfig add 172.16.1.1 255.255.255.0

Remove IP Address