显示下一条  |  关闭

Jongin's code life

百二秦关终归楚,三千越甲可吞吴 weibo.com/jongin

 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 
 
 

shell lftp 随记

2011-6-8 9:37:22 阅读177 评论0 82011/06 June8


第一种(可以记过程日志)
#!/bin/bash
lftp -c  "open ftp.xxxxxx.com;user myuser mypwd; cd baoruan; mirror -R /data0/wwwroot/shell/apkload/xxx/ ;bye;"

第二种
#!/bin/bash
lftp ftp.xxxxxx.com -u myuser ,mypwd<<EOF
cd baoruan
mirror -R /data0/wwwroot/shell/apkload/xxx/
bye
EOF

作者  | 2011-6-8 9:37:22 | 阅读(177) |评论(0) | 阅读全文>>

十二个最好的Icon资源网站

2011-5-13 10:18:55 阅读221 评论0 132011/05 May13


1.FindIcons.com就是一个帮您找免费图标的图标搜索引擎。有3000多套图片集和30多万个免费Icon资源。

链接:http://findicons.com/

 

2.IconFinder是我个人最喜欢的一个Icon资源站,拥有152,466 icons以及775 icon集,主要提供12 x 12, 16 x 16, 22 x 22, 32 x 32, 48 x 48, 64 x 64 和 128 x 128尺寸,强烈推荐!

链接:http://www.iconfinder.com/

作者  | 2011-5-13 10:18:55 | 阅读(221) |评论(0) | 阅读全文>>

提取修复iphone中png图

2010-10-25 11:42:06 阅读514 评论1 252010/10 Oct25

提取不用说,直接用rar解压便是..
主要是修复,网上的几个pngfix软件,都试了一遍貌似很多大图只能修复一半,就是一半是图一半是白色的,而且photoshop打不开.只能用imageready转一下才能打开.
后来实在受不了,找到了算法,整了一个PHP版的.竟然可以完全修复...呃,万能的主啊...

<?php
echo pngfix('./cowBodies.png');

function pngfix($file){
    $png_header = "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a"; // PNG
  

作者  | 2010-10-25 11:42:06 | 阅读(514) |评论(1) | 阅读全文>>

Centos rinetd 端口转发部署

2010-6-26 15:34:27 阅读426 评论2 262010/06 June26

1)安装rinted
下载
http://www.boutell.com/rinetd/http/rinetd.tar.gz

tar xvzf rinetd.tar.gz

make

make install

2)编辑配置文件

vi /etc/rinetd.conf
59.33.120.36 80 192.168.0.72 80
allow 59.33.120.*
logfile /var/log/rinetd.log

作者  | 2010-6-26 15:34:27 | 阅读(426) |评论(2) | 阅读全文>>

centos下wine,java 构架签证系统

2010-5-22 14:57:15 阅读415 评论0 222010/05 May22

#vim /etc/yum.repos.d/dag.repo
新建源内容如下
___________________________________________________________
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://ftp.riken.jp/Linux/dag/redhat/el$releasever/en/$basearch/dag
http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=0
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

作者  | 2010-5-22 14:57:15 | 阅读(415) |评论(0) | 阅读全文>>

centos 最快的源

2010-5-21 14:57:13 阅读380 评论0 212010/05 May21

vim /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the

作者  | 2010-5-21 14:57:13 | 阅读(380) |评论(0) | 阅读全文>>

常用的几个端口重定向工具

2010-4-26 22:54:39 阅读888 评论1 262010/04 Apr26

----1. Fpipe   Start------

 

在CMD中执行 fpipe -l 21 -s 88 -r 2009 192.168.2.65

(监听本机的21端口,将数据从88端口转发出去,远端端口,远端IP)

 

屏幕上回显如下:

F:\>fpipe -l 21 -s 88 -r 2009 192.168.2.65

FPipe v2.1 - TCP/UDP port redirector.

Copyright 2000 (c) by Foundstone, Inc.

作者  | 2010-4-26 22:54:39 | 阅读(888) |评论(1) | 阅读全文>>

windows sc create

2010-4-26 22:53:21 阅读247 评论0 262010/04 Apr26

sc create svnservice binPath= "rinetd -c a.conf" DisplayName= "Rinetd" depend= Tcpip start= auto

 

作者  | 2010-4-26 22:53:21 | 阅读(247) |评论(0) | 阅读全文>>

好用的PHP缩略图处理类

2010-4-2 15:53:57 阅读300 评论0 22010/04 Apr2

/**
* 可扩展的缩略图生成函数
*
* @param string $srcFile 源文件
* @param string $srcFile 目标文件
* @param int $dstW 目标图片的宽度(单位:像素)
* @param int $dstH 目标图片的高度(单位:像素)
* @param int $option 附加参数,可以相加使用,如1+2(或者 1|2)表示同时执行1和2的功能。
*      1: 默认,输出到指定文件 2: 图片内容输出到浏览器 4: 不保持图片比例
*      8:宽度最佳缩放 16:高度最佳缩放
* @param int $cutmode 剪切模式 0: 默认模式,剪切模式 1: 左或上 2: 中 3: 右或下

作者  | 2010-4-2 15:53:57 | 阅读(300) |评论(0) | 阅读全文>>

Rsync 补充

2009-12-23 10:45:55 阅读248 评论0 232009/12 Dec23

Rsync

1、什么是Rsync

Rsync(remote synchronize)是一个远程数据同步工具,可通过LAN/WAN快速同步多台主机间的文件。Rsync使用所谓的“Rsync算法”来使本地和远程两个主机之间的文件达到同步,这个算法只传送两个文件的不同部分,而不是每次都整份传送,因此速度相当快。

  Rsync本来是用于替代rcp的一个工具,目前由rsync.samba.org维护,所以rsync.conf文件的格式类似于samba的主配置文件。Rsync可以通过rsh或ssh使用,也能以daemon模式去运行,在以daemon方式运行时Rsync server会打开一个873端口,等待客户端去连接。连接时,Rsync server会检查口令是否相符,

作者  | 2009-12-23 10:45:55 | 阅读(248) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
日志评论
评论列表加载中...
 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 
 
 
 

福建省 厦门市 巨蟹座

 发消息  写留言

 
QQ119859334
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 

日历

 
 
模块内容加载中...
 
 
 
 
 
 
 
列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注