How To Enable Opening a Terminal Window from the Current Finder Location in MacOS

Author: , Posted on Saturday, February 16th, 2019 at 12:50:20pm

As of Mac OS X Lion 10.7, Terminal provides Services for opening a new terminal window or tab at the selected folder in Finder. They also work with absolute pathnames selected in text (in any application). You can enable these services with System Preferences > Keyboard > Keyboard Shortcuts > Services. Look for “New Terminal at Folder” and “New Terminal Tab at Folder”. You can also assign them shortcut keys.

In addition, you can now drag folders (and pathnames) onto the Terminal application icon to open a new terminal window, or onto a tab bar in a terminal window to create a new tab in that window. If you drag onto a tab (rather than into the terminal view) it will execute a complete cd command to switch to that directory without any additional typing.

As of OS X Mountain Lion 10.8, Command-Dragging into a terminal will also execute a complete cd command.

R.I.P. Albert Finney

Author: , Posted on Friday, February 8th, 2019 at 1:34:16pm

Born: May 9, 1936, Charlestown, Salford, United Kingdom
Died: February 7, 2019

How To Obtain a Public Key from and AWS .pem Private Key on Linux and Mac

Author: , Posted on Monday, February 4th, 2019 at 3:28:27pm

Use the ssh-keygen command on a computer to which you’ve downloaded your private key .pem file; for example:

First, ensure permissions will allow ssh-keygen to work:
chmod 600 /path/to/the/file/your-key-pair.pem

Then generate an RSA public key:
ssh-keygen -y -f /path/to/the/file/your-key-pair.pem > your-key-pair.pub

How To Reformat or Re-indent Files in VIM

Author: , Posted on Friday, January 11th, 2019 at 2:08:53pm

In the normal vim mode, typing gg=G will reindent the entire file.

== will re-indent just the current line.

http://vim.wikia.com/wiki/Fix_indentation

How to fix the MacPorts “Warning: xcodebuild exists but failed to execute” warning message

Author: , Posted on Wednesday, January 9th, 2019 at 11:08:29am

Execute the following command:
$ sudo xcode-select -switch /Applications/Xcode.app

Happy Holidays 2018!

Author: , Posted on Monday, December 24th, 2018 at 7:08:09am

And it is SNOWING!!! A White Christmas!

How To Include Custom jQuery in WordPress

Author: , Posted on Thursday, December 20th, 2018 at 11:27:51am
1
2
3
4
5
6
7
8
// include custom jQuery
function wyz_include_custom_jquery() {
 
    wp_deregister_script('jquery');
    wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true);
 
}
add_action('wp_enqueue_scripts', 'wyz_include_custom_jquery');
// include custom jQuery
function wyz_include_custom_jquery() {

	wp_deregister_script('jquery');
	wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', array(), null, true);

}
add_action('wp_enqueue_scripts', 'wyz_include_custom_jquery');

R.I.P. Penny Marshall

Author: , Posted on Tuesday, December 18th, 2018 at 3:40:31pm
Penny Marshall, left, on "Laverne and Shirley" with co-star Cindy Williams.

Penny Marshall, left, on “Laverne and Shirley” with co-star Cindy Williams. Penny Marshall died at the age of 75.

How To Get the Structure of All Tables in a MySQL Database Using mysqldump

Author: , Posted on Sunday, December 2nd, 2018 at 3:16:22pm

mysqldump -u {yourUserNameHere} -p --no-data --compact {yourDatabaseHere}

How To Disable Adobe Daemons Using launchctl on MacOS

Author: , Posted on Sunday, November 18th, 2018 at 9:14:28am

I installed an old version of Adobe software on my new Mac and as usual, it installed some daemons that are undesirable.

Here is how I got rid of them via the Terminal.

Note: Adobe installs daemons in the user context, so do this as your regular user login, not as root.

shell> launchctl list | grep -v apple
PID Status Label
513 0 com.yujitach.MenuMetersApp.1140
- 0 com.logmein.GoToMeeting.G2MUpdate
- 0 com.rockysandstudio.Memory-Diag.LaunchHelper
19355 0 com.openssh.ssh-agent
509 0 com.fuekiin.NightOwl.1320
511 0 com.bartelsmedia.ShareMouse.4680
- 0 com.adobe.CS5ServiceManager
- 0 com.adobe.AAM.Scheduler-1.0
519 0 com.rockysandstudio.Memory-Diag.848
63060 0 com.adobe.PDApp.AAMUpdatesNotifier.8000.4C572D6C-E775-4656-B4CB-BD24142281FE

shell> launchctl dumpstate | grep adobe | grep plist
path = /Library/LaunchDaemons/com.adobe.SwitchBoard.plist
path = /Library/LaunchAgents/com.adobe.CS5ServiceManager.plist
path = /Users/erics/Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist

shell> sudo launchctl unload -w -S Aqua /Library/LaunchDaemons/com.adobe.SwitchBoard.plist
/Library/LaunchDaemons/com.adobe.SwitchBoard.plist: Could not find specified service
shell> launchctl unload -w -S Aqua /Library/LaunchAgents/com.adobe.CS5ServiceManager.plist
shell> launchctl unload -w -S Aqua /Users/erics/Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist

shell> launchctl list | grep -v apple
PID Status Label
513 0 com.yujitach.MenuMetersApp.1140
- 0 com.logmein.GoToMeeting.G2MUpdate
- 0 com.rockysandstudio.Memory-Diag.LaunchHelper
19355 0 com.openssh.ssh-agent
509 0 com.fuekiin.NightOwl.1320
511 0 com.bartelsmedia.ShareMouse.4680
519 0 com.rockysandstudio.Memory-Diag.848
63060 0 com.adobe.PDApp.AAMUpdatesNotifier.8000.4C572D6C-E775-4656-B4CB-BD24142281FE

shell> sudo launchctl stop com.adobe.PDApp.AAMUpdatesNotifier.8000.4C572D6C-E775-4656-B4CB-BD24142281FE

shell> launchctl list | grep -v apple
PID Status Label
513 0 com.yujitach.MenuMetersApp.1140
- 0 com.logmein.GoToMeeting.G2MUpdate
- 0 com.rockysandstudio.Memory-Diag.LaunchHelper
19355 0 com.openssh.ssh-agent
509 0 com.fuekiin.NightOwl.1320
511 0 com.bartelsmedia.ShareMouse.4680
519 0 com.rockysandstudio.Memory-Diag.848