Linux 썸네일형 리스트형 osx 내 git branch name 얻기 https://github.com/mfitzp/martinfitzpatrick.name/blob/master/content/computing/add-git-branch-name-to-terminal-prompt-mac.md $ vi ~/.bash_profile # Git branch in prompt. parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " 더보기 bash date http://www.cyberciti.biz/faq/linux-unix-formatting-dates-for-display/ #!/bin/bash NOW=$(date +"%m-%d-%Y") FILE="backup.$NOW.tar.gz" echo "Backing up data to /nas42/backup.$NOW.tar.gz file, please wait..." # rest of script # tar xcvf /nas42/backup.$NOW.tar.gz /home/ /etc/ /var 더보기 convert date format in bash http://stackoverflow.com/questions/6508819/convert-date-formats-in-bash #since this was yesterday date -dyesterday +%Y%m%d #more precise, and more reccomended date -d'27 JUN 2011' +%Y%m%d #assuming this is similiar to yesterdays `date` question from you #http://stackoverflow.com/q/6497525/638649 date -d'last-monday' +%Y%m%d #going on @seth's comment you could do this DATE = "27 jun 2011"; date -.. 더보기 Recursively delete .svn directories rm -rf `find . -type d -name .svn` 더보기 Prepend current git branch in terminal http://askubuntu.com/questions/249174/prepend-current-git-branch-in-terminal parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$(parse_git_branch)$ " 더보기 synergy 1. http://synergy-project.org/download/?community 에서 non-premium 으로 다운로드 2. app 을 실행 시킨 후 ubuntu 를 서버로 할 것이니 checkbox 에 server 항목을 체크 3. server configuration 을 선택 하고 오른쪽 상단에 new screen 을 선택하여 원하는 위치에 screen 을 배치 4. 새로 생성한 screen 에 double click 을 하여 screen name 을 설정 하는데 이때 이름은 windows pc 에 이름으로 설정해야 함 ( 이름은 키보드의 [윈도우즈키 + Pause] 를 선택 후 컴퓨터 이름 으로 확인) 5. 이후 윈도우에서도 프로그램을 설치 한 다음 앱을 실행 하고 클라이언트 체크박스를 .. 더보기 smack environment smack 은 linux kernel 내에서 동작한다. smack 은 filesystem 의 extended attribute 들과 대응 된다. process process (subject) 가 resource (object) 에 제한을 주는 역활을 한다. process 에 label 을 설정하여 resource 를 제한 하도록 설정 한다. process 에서 resource 파일을 생성 하면 process(parent) 의 label 을 따르게 된다. (process 에 SMACK64EXEC 값이 존재한다는 전제 하에) process 에 label 을 설정하기 위해서 다음과 같이 실행 한다 (2 가지 방법이 존재 한다.) chsmack -e labelName processPath .. 더보기 korean keyboard on ubuntu http://askubuntu.com/questions/81553/how-to-add-korean-keyboard start -> startup -> input ibus ibus ibus 더보기 wine http://blog.bloodcat.com/176 $ sudo add-apt-repository ppa:ubuntu-wine/ppa $ sudo apt-get update && sudo apt-get install wine1.5 $ winecfg $ WINEARCH=win32 winecfg $ cd ~/.wine $ wget http://winetricks.googlecode.com/svn/trunk/src/winetricks $ chmod +x ./winetricks $ ./winetricks dotnet20 droid winxp sound=alsa volnum vcrun2008 ie6 corefonts 더보기 git with vim $ git config --global core.editor vim and export EDITOR=vim in your ~/.bash_profile or ~/.bashrc 더보기 이전 1 2 3 4 ··· 48 다음