git提交代码时,出现这个错误“error: The requested URL returned error: 403 Forbidden while accessing https” 解决方法: 编辑.git文件夹下的config文件就可以。vim .git/config#改动对于的...
分类:
数据库 时间:
2014-06-26 23:42:11
阅读次数:
2062
1、cygwin环境变量设置可在Cygwin.bat 中设置set NDK_ROOT=P:/android/android-ndk-r8e或者在home\Administrator\.bash_profile中设置NDK_ROOT=/cygdrive/p/android/android-ndk-r8...
分类:
移动开发 时间:
2014-06-26 22:51:13
阅读次数:
389
1.在git服务器界面右上角“+” 、create new project ,写上项目名字生成一个新的组2.如果机器第一次与git 建立连接,需要让机器生成一个id_rsa和id_rsa.pub 文件,然后无空格的打开.pub这个文件,复制到git服务器界面的my project ->SSH Key...
分类:
其他好文 时间:
2014-06-26 22:02:01
阅读次数:
260
bash函数的返回值只能是一个数值,以0表示成功,非0表示失败。如果想在bash函数中返回除了数值之外的值,需要些技巧。以返回一个字符串为例:1. 通过全局变量var1 function fun()2 {3 var="Hello world!"4 }5 6 fun7 echo $var2. ...
分类:
其他好文 时间:
2014-06-26 20:18:05
阅读次数:
199
xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change执行 sudo xcode-select -swi...
分类:
其他好文 时间:
2014-06-25 16:13:31
阅读次数:
190
a little riak book 的无聊总结
#!/bin/bash
# Riak HTTP interface stays true to their intent: 1xx Informational, 2xx Success,
# 3xx Further Action, 4xx Client Error, 5xx Server Error
### put
PORT=10...
分类:
其他好文 时间:
2014-06-25 08:22:11
阅读次数:
178
example: ./netspeed eth0
1 #!/bin/bash
2
3 INTERVAL="1" # update interval in seconds
4
5 if [ -z "$1" ]; then
6 echo
7 echo usage: $0 [network-interface]
8 echo
9 echo ...
分类:
系统相关 时间:
2014-06-25 07:24:00
阅读次数:
213
#!/bin/bash
echo"这个是系统初始化脚本,请慎重运行!"
input_fun()
{
OUTPUT_VAR=$1
INPUT_VAR=""
while[-z$INPUT_VAR];do
read-p"$OUTPUT_VAR"INPUT_VAR
done
echo$INPUT_VAR
}
input_again()
{
MYHOSTNAME=$(input_fun"pleaseinputthehostname:")
DOMAINNAME=$(input_fun"p..
分类:
其他好文 时间:
2014-06-25 06:16:37
阅读次数:
345
1 #!/bin/bash 2 3 # Create a log file of the build as well as displaying the build on the tty as it runs 4 exec > >(tee build_gstreamer.log) 5 exe...
分类:
其他好文 时间:
2014-06-25 00:44:22
阅读次数:
324