Mac
-
How to convert Flac to MP3 on Mac
To convert FLAG files into MP3, you can find many good commercial software. But, if you don’t have many files and just need a quick and cheap way, you can try the below instead. It requires to have MacPorts installed, but it’s just for installing ffmpeg. $ sudo port install ffmpeg Now, you just need… Continue reading
-
passwordless login via ssh in Mac
You can access your remote ssh server without password by put your ssh key in remote. Step 1: generate a key if you don’t have already $ ssh-keygen -t rsa Use the default for all paths. http://pagead2.googlesyndication.com/pagead/show_ads.js Step 2: Copy the file to the remote server that you want to access. As Mac doesn’t have… Continue reading
-
How to change Mac OS X hostname
If you want to change your Mac OS X’s hostname from the default, you can use the following command. $ sudo scutil –set HostName If you are in the terminal, you need to restart the terminal to get the changed host name. Continue reading
-
Use colours in your Mac terminal
To use colours in your Mac terminal, you just need to put below in your ~/.bash_profile export CLICOLOR=1 export LSCOLORS=ExFxBxDxCxegedabagacad export GREP_OPTIONS=’–color=auto’ alias ls=’ls -GFh’ For the vim, below would be work by put in ~/.vimrc set nocompatible ” must be the first line set tabstop=4 shiftwidth=4 softtabstop=4 filetype on filetype indent on filetype plugin… Continue reading
-
Mac OS X Shortcut keys
Some useful shortcut keys can use in Mac OS X. Screen Capture to disk: ⌘ ⇧ 3 Screen to jpeg file on desktop ⌘ ⇧ 4 + Drag: Selection to jpeg file on desktop ⌘ ⇧ 4 + Spacebar: Window (click camera) to jpeg file Screen Capture to clipboard: ⌘ ⇧ 3 + Ctrl: Screen… Continue reading
-
git installation on Mac OSX
Easiest way is to download and run pre-compiled git installer. You can get it from http://code.google.com/p/git-osx-installer/. Another way is use MacPorts http://www.macports.org/install.php. Run following command to install git using MacPorts. sudo port install git-core +svn If you need more information how to use git, I recommend this site – http://progit.org/ which contains whole content of… Continue reading
About Me
A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.
Recent Posts
- How to find the actual memory usage by each process
- How to check memory usage in Linux – part 1.2 – Per-process level memory usage check
- How to check memory usage in Linux – part 1.1 – System level memory usage check
- How to check memory usage in Linux – part 1. User space
- How to track SLAB usage using slub_debug=U