随笔分类 - 开发工具
摘要:在mac上设置了默认语言为英文,但是想把部分程序设置为中文,所以写了个脚本来批量设置。 _01_change_app_language.sh #!/bin/bash echo 'Start at ' $(date "+%Y-%m-%d %H:%M:%S") APP_DIRS=( /Applicati
阅读全文
摘要:实验基于Ubuntu 16.04下的docker 1. 安装docker:apt get install docker,启动docker服务:sudo service docker start 2. 如果启动了docker,但是执行其他命令时遇到“Cannot connect to the Dock
阅读全文
摘要:1. "wireshark如何抓取本机包" 2. "wireshark抓包详细图文教程" 3. Ubuntu安装wireshark 4.
阅读全文
摘要:基于ubuntu 16.04 LTS经验 分区方案 内存:4G,硬盘:500G 分区 大小 说明 备注 / 20G 说明 swap 6G 说明 /tmp 15G 临时文件 /var 40G 可变数据目录 包含系统运行时要改变的数据。如日志等。 /opt 15G 附加应用程序 用户安装程序 /home
阅读全文
摘要:1. 当前端口被哪个进程占用 netstat aon|findstr 80 tasklist|findstr 2448 2. 去除文件只读属性 attrib Common.dll r 3. 拷贝文件夹 xcopy /y /s ..\MyDevTool\ForDebug\Some\ .\
阅读全文
摘要:1. 批处理编译解决方案(.sln) @echo off path %SYSTEMROOT%\Microsoft.NET\Framework64\v4.0.30319\ echo 正在生成HelloWorld项目,Build日志输出到HelloWorld.log.txt msb...
阅读全文
摘要:有时候想对本地的几个repository都进行一下pull,一个一个操作比较繁琐,所以写了个shell脚本进行简化操作。 1. git_pull_all.sh !/bin/sh clear function showMsg() { echo e "\033[32...
阅读全文
摘要:git乱码解决:在Ubuntu下,git status时,中文文件名乱码类似“274\232\350\256\256\346\200\273\347\273\223.png”,修改配置即可"git config --global core.quotepath false" (参考:http://bl
阅读全文
摘要:1. 同步远程服务器上的数据到本地 git fetch origin 2. 添加远程分支 git remote add teamone git://git.tram1.ourcompany.com 添加后git fetch teamone到本地 3. 要把远程分支合并到当前分支 git merge
阅读全文
摘要:1. 新建并切换到该分支$ git checkout -b iss53Switched to a new branch 'iss53'相当于:$ git branch iss53$ git checkout iss532.切换到分支$ git checkout masterSwitched to b...
阅读全文
摘要:git -bare initgit remote add origin ssh://myserver.com/home/git/myapp.gitgit remote show origin[receive]denyCurrentBranch=ignoregit diff查看当前修改的和暂存区的差别...
阅读全文