现在我用的命令 $ ssh -X myserver firefox -no-remote
myserver是我通过ssh的config设置的我服务器的别名
参考:
Launch firefox on a remote linux server
from Command-Line-Fu by KoRoVaMiLK
$ ssh -X user@REMOTESERVER firefox -no-remoteActually 'firefox' is a script that then launches the firefox web browser. You need to specify the 'no-remote' option in order to launch remote firefox and not your local one (this drove me crazy time ago)
http://feedproxy.google.com/~r/Command-line-fu/~3/N_PD1YbZqm...
发现这个比ssh -d 好,因为我直接在上面用download them all 这个下载mp3直接保存在服务器上
for f in *;do mv "$f" `echo "$f" | sed 's/[ ]*//g' `; done
sed中为什么要用[]来括住空格?我不太明白。
rename "s/ *//g" *.mp3
http://calibre-ebook.com/
我讨厌“电子书”和“电子书格式”的说法。正确的说法是“私有的、受控制的格式”
http://www.cyberciti.biz/tips/netstat-command-tutorial-examp...
netstat -an | awk '/^tcp/{ A[$NF]++} END{ for (a in A) print a, A[a]}'
netstat -an |awk '/LISTEN/{next};/^tcp/{s=split($5, N,":"); A[N[s-1]]++} END{ for (a in A) print a, A[a]}'
参考和参数详细解释: http://hi.baidu.com/thinkinginlamp/blog/item/afbcab64b1ad81f...
先来看看netstat:
netstat -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 123.123.123.123:80 234.234.234.234:12345 TIME_WAIT你实际执行这条命令的时候,可能会得到成千上万条类似上面的记录,不过我们就拿其中的一条就足够了。
再来看看awk:
/^tcp/
滤出tcp开头的记录,屏蔽udp, socket等无关记录。state[]
相当于定义了一个名叫state的数组NF
表示记录的字段数,如上所示的记录,NF等于6$NF
表示某个字段的值,如上所示的记录,$NF也就是$6,表示第6个字段的值,也就是TIME_WAITstate[$NF]
表示数组元素的值,如上所示的记录,就是state[TIME_WAIT]状态的连接数++state[$NF]
表示把某个数加一,如上所示的记录,就是把state[TIME_WAIT]状态的连接数加一END
表示在最后阶段要执行的命令for(key in state)
遍历数组print key,"\t",state[key]
先来看看netstat:netstat -n
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 123.123.123.123:80 234.234.234.234:12345 TIME_WAIT你实际执行这条命令的时候,可能会得到成千上万条类似上面的记录,不过我们就拿其中的一条就足够了。
再来看看awk:
/^tcp/
滤出tcp开头的记录,屏蔽udp, socket等无关记录。state[]
相当于定义了一个名叫state的数组NF
表示记录的字段数,如上所示的记录,NF等于6$NF
表示某个字段的值,如上所示的记录,$NF也就是$6,表示第6个字段的值,也就是TIME_WAITstate[$NF]
表示数组元素的值,如上所示的记录,就是state[TIME_WAIT]状态的连接数++state[$NF]
表示把某个数加一,如上所示的记录,就是把state[TIME_WAIT]状态的连接数加一END
表示在最后阶段要执行的命令for(key in state)
遍历数组print key,"\t",state[key]
打印数组的键和值,中间用\t制表符分割,美化一下。
rtorrent for web
网站主页: http://rtorrentweb.com/
通过web管理rtorrent这个bash下的torrent客户端
rTorrentWeb installation is completed! You may access your new rTorrentWeb
installation at:
http://example.org/rtorrentweb/
Username: admin
Password: DqjeYsZlnRlmI73l70
我装了之后发现我服务器用不了,就不弄了
可以定制简单样式。非常方便 http://kentbrewster.com/badger/
在开始写css之前,由于不同浏览器的默认样式不同,有时候需要先统一一下所有基本html元素的样式默认值,因此就会用的reset css,样式重置。yahoo的yui提供了这样的css可以直接用。 http://developer.yahoo.com/yui/reset/ 同样是 yui2的其它几个基本css样式也很值得细读和参考,并直接使用! :) http://developer.yahoo.com/yui/base/ http://developer.yahoo.com/yui/fonts/ http://developer.yahoo.com/yui/grids/
地址: http://www.google.com/publicdata/home
Data visualizations for a changing world
The Google Public Data Explorer makes large datasets easy to explore, visualize and communicate. As the charts and maps animate over time, the changes in the world become easier to understand. You don't have to be a data expert to navigate between different views, make your own comparisons, and share your findings.
Explore the data
Students, journalists, policy makers and everyone else can play with the tool to create visualizations of public data, link to them, or embed them in their own webpages. Embedded charts and links can update automatically so you’re always sharing the latest available data. Here’s an example of an embedded visualization:
砖头四国(bric)人均gdp比较
帮你检查网站相应速度和提供如何改善建议的在线工具
http://www.websiteoptimization.com/services/analyze/
有帮助。
diveintomark.org的作者参与的自由软件项目。
http://code.google.com/u/pilgrim/
我关注的是
http://code.google.com/p/podencoder/
This is a small (one file!) script for Linux users who want to encode video for fifth-generation video iPods. Its focus is on high-quality encodes (at the expense of being quite slow on older machines). It can encode one or more tracks from a physical DVD, ripped DVD (VIDEO_TS folder), or a video file in any format readable by mplayer/mencoder.
硬盘的工作原理是你删除了文件,其实文件还在硬盘上,只是操作系统标注这块地方可用,以后有新数据可以再往那快地方写罢了。
要真正删除数据只有一个方法:反复往硬盘写无意义的数据,写上千遍,这样,就很难找到开始时的数据了。
举个例子,如果一张白纸比喻成硬盘。那么你在用圆珠笔写字。字是不能擦的。你要写新的字,直接写在以前字上面。新的字自然会盖住下面的字,但有些下面的字还是能认出来的。如果你往纸上写1000层无意义的字,你开始写的什么字理论上应该被覆盖得完全看不出来了。
这就是我理解的彻底删除数据软件的工作方式。
好了,说这款自由软件。是工作在windows上的。因为同事用windows。
下载: http://heidi.ie/eraser/download.php
介绍:
Eraser is an advanced security tool (for Windows), which allows you to completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns. Works with Windows 95, 98, ME, NT, 2000, XP, Vista, Windows 2003 Server and DOS.
Eraser is Free software and its source code is released under GNU General Public License.The patterns used for overwriting are based on Peter Gutmann's paper "Secure Deletion of Data from Magnetic and Solid-State Memory" and they are selected to effectively remove magnetic remnants from the hard drive.
Other methods include the one defined in the National Industrial Security Program Operating Manual of the US Department of Defence and overwriting with pseudorandom data. You can also define your own overwriting methods.
Erase files and folders securely.