Quantcast
Channel: From 0 To 1 » LINUX
Browsing latest articles
Browse All 12 View Live

VIM Configuration for C

Update /etc/vim/vimrc with following configuration: 40 " The following are commented out as they cause vim to behave a lot 41 " differently from regular Vi. They are highly recommended though. 42 "set...

View Article


用Vim开发 : 格式化代码

想用 Vim 开发,第一个问题就是:如何格式化代码?之前关于 Vim 配置 里已经有关于 Tab 的控制,如何进行自动缩进。可是当然免不了要自己动手的时候。 本来以为还需要插件才能把这事儿给办了,不过还是不了解Vim大哥,其实做起来相当方便快捷。 首先要知道的是,全文格式化: gg=G 命令很简单,只要知道 “ = ” 是格式化对齐代码,就不难记得如何做了。...

View Article


What is SUID,SGID and SBIT

之前改写用 Maven 来做 RPM 包,碰到了很多需要设置权限 “2755” 的情况。简单的查过以后一直还是糊里糊涂,不幸有同事来刨根问底,终于下决心把这个事情彻底整理一下。 Sticky Bit ( SBIT ) 在Unix刚开始的年代,计算机的资源是有限的,可不像现在人人都玩着自己的机器。Unix...

View Article

Install EverNote for Ubuntu 12.04

之前开始使用EverNote的时候,最不爽的一点就是,居然没有Linux的客户端,只能使用网页版。 现在好了,Linux客户端终于出来了。Ubuntu下安装非常简单: sudo add-apt-repository ppa:nvbn-rm/ppa sudo apt-get update && sudo apt-get install everpad

View Article

Ubuntu 12.04 开发环境配置 Install Oracle JDK7

自从 Java 跑到 Oracle 以后,安装 JDK 变得很讨厌, 还好有好心人有好心人给大家提供 PPA sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer...

View Article


zsh 乱码

Mac X 目前默认的 Zsh 的版本是 4.3.11 。如果你也跟我一样是从 Oh-my-zsh 获得的配置zshrc配置 git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc 那么估计也会碰到乱码问题,ls...

View Article

OTOOL : Mac’s objdump

看C语言,跑不开要用到查看 Binary Object File 的工具,在 Linux 自然是 GNU 提供的 objdump,不过现在用 MBP 后却没有了,没有仔细看为什么,可能是版权问题吧。 不过苹果自己提供了一个工具,otool。使用起来也很简单,目前看到比较常用的命令是: otool -t BINARY_FILE #查看文件内容 otool -tv BINARY_FILE #反汇编文件...

View Article

Uncover LDAP

Already knowing about LDAP for some years, but never really understand it. This week, I spent some time to get more familiar with it, there’s more stuff than expected to really  master it. So, I just...

View Article


Threads in Bash

The title ‘Threads in Bash’ is incorrect ^_^ There’s no thread when creating BASH Script, I just find out these days when I trying to make a script to update ZIMBRA accounts by Bash. Recently when we...

View Article


Install RPM on Ubuntu

We have talked about install Oracle in 10.1o long time ago : Ubuntu 10.10 install Database After these years, there’s some change. First, Oracle changed the download website structure, you have to go...

View Article
Browsing latest articles
Browse All 12 View Live