目录:
-
1.需求分析
-
2.建设规范
-
3.技术分解
| #!/bin/bash | |
| # Copyright (c)2022 https://bookfere.com | |
| # This is a batch script for fixing Google Translate and making it available | |
| # in the Chinese mainland. If you experience any problem, visit the page below: | |
| # https://bookfere.com/post/1020.html | |
| SOURCE_DOMAIN=google.cn | |
| TARGET_DOMAIN=translate.googleapis.com | |
| HOSTS_FILE=/etc/hosts |
| :: Copyright (c)2022 https://bookfere.com | |
| :: This is a batch script for fixing Google Translate and making it available | |
| :: in the Chinese mainland. If you experience any problem, visit the page below: | |
| :: https://bookfere.com/post/1020.html | |
| @echo off | |
| setlocal enabledelayedexpansion | |
| chcp 437 >NULL | |
| set "source_domain=google.cn" |
本文转载自https://github.com/sxyx2008/DevArticles
Ubuntu 12.04.5
MySQL 5.5.47
master1 192.168.64.131
master2 192.168.64.132
| 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语句 |
facepunch_base_ in the download URL to _test_ as the base image does not have developer tools enabled| #!/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 |
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 = [email protected]: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/bash | |
| # | |
| # # sample usage | |
| # curl -o /tmp/initial_centos6.sh https://gist.github.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 |