sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com \ 67265eb522bdd6b1c69e66ed7fb8bee0a1f196a8
echo deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu \ `lsb_release –short –codename` main | \
sudo tee /etc/apt/sources.list.d/pidgin-ppa.list
源本身没什么好说的,在pidgin官网很容易找到,但是有几个小技巧值得借鉴:
- 利用echo 和 |tee 实现sudo的重定向输出到文本
- lsb_release –short –codename 查看ubuntu发行代号
- apt-key的问题
Popularity: 1% [?]
查看当前用户的缺省表空间
SQL>select username,default_tablespace from user_users;
查看当前用户的角色
SQL>select * from user_role_privs;
查看当前用户的系统权限和表级权限
SQL>select * from user_sys_privs;
SQL>select * from user_tab_privs;
查看用户下所有的表
SQL>select * from user_tables;
查看用户下所有的表的列属性
SQL>select * from USER_TAB_COLUMNS where table_name=:table_Name;
显示用户信息(所属表空间)
select default_tablespace,temporary_tablespace
from dba_users where username=’GAME’; [...]
Popularity: 2% [?]
A 服务器在美国,squid在 13128端口
/usr/bin/stunnel -p /etc/stunnel/stunnel.pem -d 13130 -r localhost:13128
stunnel 开在13130端口
B服务器在国内,squid 在13129端口
/usr/bin/stunnel -c -p /etc/stunnel/stunnel.pem -d 192.168.0.50:13130 -r usserver:13130
B中squid添加:
cache_peer 192.168.0.xx parent 13130 0 default no-query no-digest

Popularity: 3% [?]
转自 http://linuxtoy.org/archives/sed-awk.html
PS: 刚转的时候粗心大意,排版乱了都没发现,好心的作者本人给我送上了WP源码,现在已经好了! 非常感谢!
{ 撰文/bones7456 }
sed和awk都是linux下常用的流编辑器,他们各有各的特色,本文并不是要做什么对比,而是权当好玩,把《SED单行脚本快速参考》这文章,用awk做了一遍~
至于孰好孰坏,那真是很难评论了。一般来说,sed的命令会更短小一些,同时也更难读懂;而awk稍微长点,但是if、while这样的,逻辑性比较强,更加像“程序”。到底喜欢用哪个,就让各位看官自己决定吧! [...]
Popularity: 6% [?]

