Sungju's Slow Life

Personal journal


  • 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. 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 Another way is use MacPorts 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 – which contains whole content of… Continue reading