1.切换目录git checkout step-12npm
start2.效果图这里在点击右边的缩略图时,会有一个很明显的从下向上的动画过程.3.代码实现:step11和step12之间的代码差异:https://github.com/angular/angular-phonecat/compare...
分类:
移动开发 时间:
2014-05-19 23:43:00
阅读次数:
695
一、脚本的书写规范在前文中写过一个脚本first.sh,用来创建一个用户,这里新创建一个脚本useradd.sh,用来创建多个用户,用户名和密码相同:#nanouseradd.sh#!/bin/bash
#Author:Mickey//指定作者
#Date:2014-5-14//指定日期
#Version:0.0.1//指定版本
#Description:AddUse..
分类:
其他好文 时间:
2014-05-16 02:25:54
阅读次数:
334
Gitlab安装部署GitLab,是一个使用RubyonRails开发的开源应用程序,与Github类似,能够浏览源代码,管理缺陷和注释,非常适合在团队内部使用。安装步骤n升级系统并及关闭selinux和iptablesn安装Rubyn创建项目运行用户(创建git账号,方便权限管理)nGitLabShelln数据库(可以支..
分类:
其他好文 时间:
2014-05-16 02:21:15
阅读次数:
1088
先後運行的腳步/etc/inittab/etc/rc.d/rc.sysinit/etc/rc.d/rcX/etc/rc.d/rcX.d/Sxxxxstart(/etc/rc.d/init.d/XXXX)/etc/rc.d/rc.localminigetty/dev/tty1-6login-->bash/etc/profile~/.bash_profile5:gdm
分类:
系统相关 时间:
2014-05-16 02:11:38
阅读次数:
290
巴什博奕(Bash Game):只有一堆n个物品,两个人轮流从这堆物品中取物,规
定每次至少取一个,最多取m个。最后取光者得胜。
显然,如果n=m+1,那么由于一次最多只能取m个,所以,无论先取者拿走多少个,
后取者都能够一次拿走剩余的物品,后者取胜。因此我们发现了如何取胜的法则:如果
n=(m+1)r+s,(r为任意自然数,s≤m),那么先取者要拿走s个物品,如果后取者拿走
k...
分类:
其他好文 时间:
2014-05-15 22:50:18
阅读次数:
389
批量添加用户#!/bin/bashi=1while [ $i -le 20 ]do
useradd stu$i echo "123456" | passwd --stdin stu$i &> /dev/null
i=$(($i+1))done# 删除用户#!/bin/bash# 批...
分类:
其他好文 时间:
2014-05-15 21:11:33
阅读次数:
218
#!/bin/bash
#
Count=0
forUserNamein$@;do
ifid$UserName&>/dev/null;then
echo"$UserNameexists."
else
useradd$UserName
echo"Add$UserNamesuccessfully."
Count=$[$Count+1]
fi
done
echo"Add$Countnewusers."
分类:
其他好文 时间:
2014-05-15 18:52:21
阅读次数:
214
#!/bin/bash
#function:cutnginxlogfilesshell
#cp/usr/local/nginx/logs/access.log/usr/local/nginx/logs/access.log.bak
log_cut_path="/var/log/nginx"
log_files_path="/usr/local/nginx/logs/"
log_files_dir=${log_cut_path}$(date-d"yesterday"+"%Y")/$(date-d"yesterd..
分类:
其他好文 时间:
2014-05-15 18:49:50
阅读次数:
244
1、gem安装出现下面错误
root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https...
分类:
其他好文 时间:
2014-05-15 18:19:48
阅读次数:
304