(本教程基于此 this pastebin 文档编写, 并且适合于 Yosemite 正式版)
(免责声明: 本教程旨在说明如何在 VirtualBox 中运行 Mac OS X 操作系统, 并且本系统仅供测试使用.)
| dsfsfsfsf |
(本教程基于此 this pastebin 文档编写, 并且适合于 Yosemite 正式版)
(免责声明: 本教程旨在说明如何在 VirtualBox 中运行 Mac OS X 操作系统, 并且本系统仅供测试使用.)
| #!/bin/bash | |
| # | |
| # # sample usage | |
| # curl -o /tmp/initial_centos6.sh https://gist.githubusercontent.com/vmlive/9994394/raw | |
| # nohup /bin/bash /tmp/initial_centos6.sh > /tmp/initial_centos6.sh.log && rm -f /tmp/initial_centos6.sh & | |
| # | |
| #this script is only for CentOS 6 | |
| #check the OS |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| #!/bin/sh | |
| sudo mount -o remount,exec /tmp | |
| if [ -x /usr/local/nixstrap/proot-x86_64 ] && [ -h ~/.nix-profile ]; then | |
| echo "Launching shell with nix-* tools!" | |
| exec /usr/local/nixstrap/proot-x86_64 -b /usr/local/nixstrap/nix-1.8-x86_64-linux:/nix bash --init-file ~/.nix-profile/etc/profile.d/nix.sh | |
| fi | |
| set -e |
facepunch_base_ in the download URL to _test_ as the base image does not have developer tools enabled| find . -type d -name ".svn"|xargs rm -rf 删除当前目录及子目录下的svn文件 | |
| svn st | awk '{if ($1 == "?") {print $2} }' | xargs svn add svn添加所有新增文件 | |
| find . -type d -exec chmod 700 {} \; 修改所有目录访问权限 | |
| find . -type f -exec chmod 600 {} \; 修改所有文件访问权限 | |
| find . -name "*.php" -exec php {} \; 执行所有的php文件 | |
| grep -rli "helper('itags')" * | xargs -i@ sed -i "s/helper('itags')/helper('core')/g" @ 将所有文件中包含的某字符串替换成另一字符串 | |
| grep -rli --include=*.php.dec '?><?php' . | xargs -i@ sed -i "s/?><?php/<?php/g" @ | |
| pcregrep -MHrin --color "addOrder.*\n.*1442470135100001" . 多行搜索(跨行) | |
| set quote="'" ; phpgrep -i '\(select\|update\|delete\|insert\).*;\("\|${quote}\)' . 搜索以分号;结尾的SQL语句 |
本文转载自https://github.com/sxyx2008/DevArticles
Ubuntu 12.04.5
MySQL 5.5.47
master1 192.168.64.131
master2 192.168.64.132