CoreyMS

Development, Design, DIY, and more

  • Contact
  • Portfolio
  • Development
    • Python
    • Git
    • Terminal
    • JavaScript
    • WordPress
  • Design
    • CSS
  • DIY
    • Woodworking
    • Home Improvement
  • Contributors
  • Support
  • Giveaway

Time-Saving Keyboard Shortcuts for the Mac Terminal

August 18, 2015 by Corey Schafer Leave a Comment

A big hurdle a lot of people face when learning to use the terminal is the fact that it feels slow compared to navigating around in Finder or other GUIs. Using the terminal doesn’t have to feel slow. Once you learn a few keyboard shortcuts, it can greatly increase the speed at which you can navigate and run commands within the command line.

In this video we’ll be going over some of the keyboard shortcuts I use on a daily basis.

Shortcuts covered in this video:

  • Ctrl+a – Go to the beginning of the line
  • Ctrl+e – Go to the end of the line
  • Option+Arrows – Move one word at a time
  • Option+Click – Move to click location
  • Ctrl+u – Delete everything before cursor
  • Ctrl+k – Delete everything after cursor
  • Tab – Auto-complete
  • Drag and Drop – Auto-complete
  • Up/Down Arrow – Scroll through command history
  • !+text – Previous command starting with specified text
  • Ctrl+r – Reverse Search
  • Ctrl+l – Clear Screen
  • Cmd+k – Clear Scrollback

Filed Under: Development, Terminal Tagged With: Computer Science, Mac, Mac Tip, OS X, Programming, Terminal, Video

Sublime Text Quick Tip: Launch Sublime Text from the Terminal

May 14, 2015 by Corey Schafer Leave a Comment

If you navigate from your terminal frequently, you have most likely run into the scenario where you are within a project directory and want to open a file or folder from that project. It is a pain to open up Finder, navigate to the project, and open the file or directory that way. Being able to open these projects and files from the terminal is much more convenient and saves a lot of time. In this video we’ll look at how we can do just that:

The line that links the “subl” command to /usr/local/bin/ is as follows:

ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

Filed Under: Development, Terminal Tagged With: Command Line, Mac, OS X, Sublime Text, Terminal, Video

Git: Change DiffMerge Font-Size on Mac OSX

April 29, 2015 by Corey Schafer Leave a Comment

In a previous video, we learned how to use DiffMerge as a git difftool and git mergetool. As I was creating that video, I noticed a bug in the program that crashed DiffMerge when attempting to change the font-size. This bug has not yet been fixed by DiffMerge; however, there is a workaround.

All we need to do in open the preferences from the terminal and change the font-size manually.

Filed Under: Development Tagged With: Computer Science, Git, Mac, Mac Tip, OS X, Programming, Video

Python: virtualenv and why you should use virtual environments

April 14, 2015 by Corey Schafer Leave a Comment

In this video, we will be looking at virtualenv and why you should be using virtual environments in Python. Virtual Environments in Python allow us to keep project-specific dependencies in a separate place than our global site-packages. This is extremely useful when you have different versions of packages for different projects.

Here’s a brief walkthrough of some of the code from the video:

Install virtualenv

pip install virtualenv

Create a location for your environments (Optional)

mkdir ~/Environments
cd ~/Environments

Create a new virtual environment (called venv for this example)

virtualenv venv

Activate your new virtual environment

source venv/bin/activate

At this point you can work from inside of your new virtual environment and know that you are keeping your project-specific packages and dependencies separate.

When you are finished, you can deactivate your virtual environment

deactivate

If you no longer need your environment and would like to delete it, you can just remove the directory

rm -rf venv

Filed Under: Development, Python Tagged With: Command Line, Computer Science, Development Environment, Mac, Programming, Terminal, virtualenv

Resize Multiple Images Using the Mac Terminal

April 5, 2015 by Corey Schafer Leave a Comment

One problem I run into frequently is needing to resize multiple images at once. To do this manually would take way too much time, especially if you have a lot of images.

Luckily, there are several good tools out the to automate this process for us. In this video we will be resizing multiple images using the Mac Terminal and the built-in “sips” command.

If you are someone who is more comfortable using an application rather than the terminal, I also have a video on resizing multiple images using Google’s Picasa. You can find that video here. With that said, in this video we will be focusing on the Mac Terminal. Let’s get started:

Filed Under: Design, Terminal Tagged With: Command Line, Computer Science, Images, Mac, Mac Tip, OS X, Terminal, Video

Mac Tip: Adding Folder Stacks to the Dock

January 2, 2015 by Corey Schafer Leave a Comment

It’s easy for your dock to become cluttered with applications (E.g. Text editors, the Adobe suite, your Mac applications). It is possible to organize your applications into a single folder on the dock for easy access.

In this video, we’ll walk through how to properly make folder stacks for your dock.

Filed Under: Development Tagged With: App, Development Environment, Mac, Mac Tip, OS X, Video

Sublime Text 3: Setup, Package Control, and Settings

November 26, 2014 by Corey Schafer Leave a Comment

In this video, we’ll do a quick walkthrough on setting up a development environment using Sublime Text 3.

The packages installed in this video are:

  • Dayle Rees Colorschemes
  • Predawn
  • BracketHighlighter
  • Sidebar Enhancements
  • SublimeCodeIntel
  • Emmet
  • SublimeLinter with JsHint and CssLint

Filed Under: Development Tagged With: Development Environment, Mac, OS X, Video

Mac Tip: Screenshots

November 23, 2014 by Corey Schafer Leave a Comment

I am frequently taking screenshots of what I am doing on screen. It’s useful to know all the options you have in order to make this quick and simple. In this video, I’ll go over the different ways in which you can take some basic screen shots on your Mac, and look a few advanced techniques as well.

Keyboard Shortcuts Used:

  • Cmd + Shift + 3: Capture Whole Screen
  • Cmd + Shift + 4: Capture a Selected Area
  • Cmd + Shift + 4, then Spacebar: Capture Window

Terminal Commands Used:

screencapture -C -T 5 ~/Desktop/ss.png
defaults write com.apple.screencapture location ~/Desktop/Screenshots/
killall SystemUIServer

Filed Under: Design Tagged With: Mac, Mac Tip, OS X, Video

Terminal 101: Creating Aliases

August 14, 2014 by Corey Schafer Leave a Comment

In this quick tip, we’re going to look at how to create aliases for common terminal commands. If you find yourself typing in the same commands over and over, then it is a good indication that you should write an alias for that. For example, I used to frequently switch to my website’s local theme directory using the command:

cd ~/vagrant-local/www/CoreyMS/htdocs/wp-content/themes/simone-coreyms

That’s a pain to type time and time again! In this video, I’ll show you how you can set up your terminal so that you can create shortcuts for these frequent commands. Then you can create aliases that are unique to you and your workflow. Let’s get started:

Filed Under: Development, Terminal Tagged With: Command Line, Linux, Mac, OS X, Terminal, Video

Mac Tip: Windows’ Best Features on Mac with HyperDock

August 14, 2014 by Corey Schafer Leave a Comment

I work on both Windows and Mac machines. I am a huge fan of developing on my Mac, BUT I do find myself missing certain features from Windows. Mainly the windows snapping feature, and the ability to quickly preview open applications on the taskbar/dock.

Luckily, there is an app that brings my favorite Windows features over to Mac. It’s called HyperDock. In this video, I’ll give a quick overview of the features and why it is one of my favorite applications on my Mac. Let’s check it out:

Filed Under: Development Tagged With: App, Mac, Mac Tip, OS X, Video

  • « Previous Page
  • 1
  • 2
  • 3
  • Next Page »

Top Contributors (1)

  • Juan Guillermo Henao

 

Thank You! If you would like to have your name listed as a contributor and support the website, you can do so through my Patreon Page. I am extremely grateful for any support.

Search CoreyMS.com

Subscribe to Future Posts

Recommended Books

Podcasts I Listen To

Tech Related:
Talk Python To Me
Shoptalk Show
Software Engineering Radio
HanselMinutes
CodePen Radio

Non-Tech Related:
Dan Carlin's Hardcore History
Bill Burr's Monday Morning Podcast
Waking Up with Sam Harris
StarTalk Radio
Talk Nerdy with Cara Santa Maria

© 2018 · CoreyMS · Corey Schafer