2014年1月16日

TCP wrapper 与Iptables区别

摘要: TCP wrapper与Iptables都可以作为Linux的防火墙,只是TCP wrapper 只能对/etc/xnetd 里面的服务进行限制,而iptables并没有此限制 阅读全文

posted @ 2014-01-16 17:22 Lasteye 阅读(281) 评论(0) 推荐(0)

2013年11月4日

1B python总结

摘要: 尼玛太菜了,才AC主要是转为十进制的时候,注意在是26倍数的情况下,要取模后的商减去1.#!/usr/bin/pythonimport renumbers = input("")readlist = []for i in range(numbers): readlist.append(raw_input(""))for str1 in readlist: if 'R' in str1 and 'C' in str1 and \ str1[str1.index('R') + 1:str1.index(' 阅读全文

posted @ 2013-11-04 15:46 Lasteye 阅读(253) 评论(0) 推荐(0)

2013年10月21日

++i与i++

摘要: 1)注意自左到右顺序2)两项相加规则3)i++ 等价为 i; i++; 阅读全文

posted @ 2013-10-21 10:59 Lasteye 阅读(145) 评论(0) 推荐(0)

2013年4月10日

主机A 主机B不在同一局域网下实现远程连接

摘要: 主机A(ip地址设为ipA) 主机B(ip地址设为ipB)不在同一局域网下,但是他们可以同时与主机C(ip地址设为ipC)直接通信(不知这样说对不对+_+)那么可以先实现主机C通过ssh连接主机A:主机A上输入:ssh -R 监听端口(主机C上的,除了22端口,如45):localhost:22 (主机C上的可登陆用户,如root)@ipC,输入密码后,便可实现主机A连接主机C了,这时,在主机C上输入: ssh localhost -p 45(刚才输入的监听端口)即可实现连接!这时,本以为在主机B用:ssh ipC -p 45可以实现主机B连接主机A,岂料一直他time out,纳闷了一阵子. 阅读全文

posted @ 2013-04-10 00:57 Lasteye 阅读(620) 评论(0) 推荐(0)

2013年1月28日

Gentoo alsa笔记

摘要: root@Thinks:/root> cat /proc/asound/cards13-01-28 4:370 [HDMI ]: HDA-Intel - HDA ATI HDMIHDA ATI HDMI at 0xe8444000 irq 51 1 [Generic ]: HDA-Intel - HD-Audio Generic HD-Audio Generic at 0xe8440000 irq 16第二个才为声卡,在~/.asoundrc设置为pcm.!default { type hw card 1} ctl.!default { ... 阅读全文

posted @ 2013-01-28 04:40 Lasteye 阅读(225) 评论(0) 推荐(0)

导航