- 浏览: 85719 次
- 性别:
- 来自: 上海
最新评论
-
ygongziy:
...
【趣味shell&python】倒三角控制台输出图形 -
i-david:
i-david 写道突然又发现一个获取随机数的方法,更简单
# ...
一个有趣的Shell随机数
文章列表
smb配置
[mp3]
comment = MP3
path = /mnt
public = yes
browseable = yes
read only = no
create mode = 0775
directory mode = 0775
force user = root
force group = root
挂载机器
mount -t cifs -o username=rodfdfdfft,password=ttadffdf //192.168.6.101/mp3 /tmp/abccc
ps
精简挂载mount -o username=1,passwo ...
http://old-releases.ubuntu.com/releases/
#!/bin/bash
i=1
while [ 1 -eq 1 ]
do
dd if=/dev/zero of=$i.img bs=15M count=1
i=$((i+1))
[ $i -gt 20 ] && exit 0
done
1,Puppet
2,Webistrano,Capistrano
3,Contieler,拼写错误
1,安装git
apt-get install git
2,安装EGit插件
http://download.eclipse.org/egit/updates
3,配置ssh认证信息
Windows-->Preferences-->General-->Network connection-->SSH2
一般会自动设置
4,创建项目,加入git
Team--> Share...
提交
更新
5,区分git和svn的使用
1,安装Compizconfig设置管理器
2,进入Compizconfig首选项
/etc/sysconfig/network-script/ifcfg-eth0
/etc/sysconfig/network-script/ifcfg-eth0:01
/etc/sysconfig/network-script/ifcfg-eth1
时间太紧张
简单收录些东东,非标准的文章
清除 windows 访问共享命令
net use * /delete
静态路由,网站一枚
www.tp-link.con.cn
shopt -s extglob
ls !(bin)
备份策略:月初全量备份,月中增量备份
sed -i "s/^.*PasswordAuthentication.*/PasswordAuthentication no/" ssh_config
echo "123" | passwd david --stdin
yum grouplist
yum ...
1,安装haproxy
mkdir -p /data/softwares/
cd /data/softwates/
wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.20.tar.gz
tar xzvf haproxy-1.4.20.tar.gz -C /usr/local/
cd /usr/local/
mv haproxy-1.4.20 haproxy
cd haproxy
make TARGET=linux26
make install
mkdir /etc/haproxy
cp / ...
基本环境
MASTER机,10.0.0.9
BACKUP机,10.0.0.10
1,安装
wget http://www.keepalived.org/software/keepalived-1.2.7.tar.gz
tar xvzf keepalived-1.2.7.tar.gz
cd keepalived-1.2.7
./configure
make
make install
2,配置(低版本貌似才需要这个配置)
cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/
cp /usr/local/e ...
1,pydev
http://pydev.org/updates/
2,subversion
http://subclipse.tigris.org/update_1.0.x/
1,基本环境
系统版本
[centospub@davidserver ~]$ cat /etc/issue;uname -a
CentOS release 6.3 (Final)
Kernel \r on an \m
Linux davidserver 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
用户
centospub:x:502:502::/home/centospub:/bin/bash
密码
centospub
管理机
10. ...
1,源码
#!/usr/bin/python
# -*- coding:utf-8 -*-
# filename:demo.py
table = 'a,-20319;ai,-20317;an,-20304;ang,-20295;ao,-20292;ba,-20283;bai,-20265;ban,-20257;bang,-20242;bao,-20230;bei,-20051;ben,-20036;beng,-20032;bi,-20026;bian,-20002;biao,-19990;bie,-19986;bin,-19982;bing,-19976;bo,-19805;bu, ...
1,查看帮助
[root@davidserver ~]# useradd -h
useradd: invalid option -- 'h'
Usage: useradd [options] LOGIN
Options:
-b, --base-dir BASE_DIR base directory for the home directory of the
new account
-c, --comment COMMENT GECOS field of the new acco ...