Archive for the ‘Programming’ Category

Simple Terminal Commands to Tweak OS X

Web developer Mathias Bynens shared a list of Terminal commands on Github to customize OS X. There are a bunch of great tweaks to be found, like disabling auto-correct, removing the green checkmark icon in your Dropbox folder, and enabling a 2D dock. Here are some of the ones I used:

# Disable the “Are you sure you want to open this application?” dialog
defaults write com.apple.LaunchServices LSQuarantine -bool false

# Disable auto-correct
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool false

# Allow text selection in Quick Look
defaults write com.apple.finder QLEnableTextSelection -bool true

# Expand save panel by default
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true

How to Download Youtube Videos via the Command Line

download-youtube-video-in-terminal

I don’t purport this tutorial as being the ideal way to download Youtube videos to your computer. A simple Google search will lead you to an assortment of options that requires less technical expertise. However, if you’re like me, and are relatively new to the command-line (think your OS without the GUI and a mouse), this might be an interesting way to accomplish something relatively useful (download Youtube videos to your computer) and also learn how to directly communicate with your computer.
(more…)