Linux

which netcat uptime brew

//Output

/bin/netcat
/usr/bin/uptime
brew not found //(or appropriate response depending on your shell - could also return a blank line)
// Running any brew command yielded

Traceback (most recent call last):
	4: from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `<main>`
	3: from /usr/local/Homebrew/Library/Homebrew/brew.rb:13:in `require_relative`
	2: from /usr/local/Homebrew/Library/Homebrew/global.rb:10:in `<top (required)>`
	1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require`
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require`: cannot load such file -- active_support/core_ext/object/blank (LoadError)

// Typically this would be fixed using by running 

brew update-reset 

// which instead returned 

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

// which would typically be fixed by running 

xcode-select --install

// which yielded

xcode-select: note: install requested for command line developer tools

// which triggers a dialogue box asking whether you would like to install command line dev tools. In case it returns an error about not being able to find the software on the Update Server, then download Xcode from the App Store

// Prior to Xcode 12, Xcode itself was not required to install the command line tools using xcode-select. 

// Install a component of XCode called Command Line Tools by following: XCode --> Open Developer Tool --> More Developer tools --> Download the Command Line Tools --> Install

// Then run 

brew update-reset 
// Error

PHP Fatal error:  Allowed memory size of 1610612736 bytes exhausted (tried to allocate 134217736 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleSet.php on line 84

// Fix

COMPOSER_MEMORY_LIMIT=-1 composer install
//Error

PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open(): fork failed - Cannot allocate memory' in phar

//Fix

/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1
/bin/chmod 0600 /var/swap.1
/sbin/swapon /var/swap.1

Similiar Collections

Python strftime reference pandas.Period.strftime python - Formatting Quarter time in pandas columns - Stack Overflow python - Pandas: Change day - Stack Overflow python - Check if multiple columns exist in a df - Stack Overflow Pandas DataFrame apply() - sending arguments examples python - How to filter a dataframe of dates by a particular month/day? - Stack Overflow python - replace a value in the entire pandas data frame - Stack Overflow python - Replacing blank values (white space) with NaN in pandas - Stack Overflow python - get list from pandas dataframe column - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to lowercase a pandas dataframe string column if it has missing values? - Stack Overflow How to Convert Integers to Strings in Pandas DataFrame - Data to Fish How to Convert Integers to Strings in Pandas DataFrame - Data to Fish create a dictionary of two pandas Dataframe columns? - Stack Overflow python - ValueError: No axis named node2 for object type <class 'pandas.core.frame.DataFrame'> - Stack Overflow Python Pandas iterate over rows and access column names - Stack Overflow python - Creating dataframe from a dictionary where entries have different lengths - Stack Overflow python - Deleting DataFrame row in Pandas based on column value - Stack Overflow python - How to check if a column exists in Pandas - Stack Overflow python - Import pandas dataframe column as string not int - Stack Overflow