Skip to content

Instantly share code, notes, and snippets.

git tag # 在控制台打印出当前仓库的所有标签
git tag release1.0 # 创建轻量标签
git tag -a release1.0 -m "version 1.0.4 ->release for 1.0" # 创建附注标签
git checkout tagName # 切换
git show release1.0 # git show命令可以查看标签的版本信息
git tag -d release1.0 # 删除标签
git tag -a release1.0 commitID # 基于提交ID创建
git push origin tagName # 提交到服务器
git push origin –tags # 将本地所有标签一次性提交到服务器
@QQ1350995917
QQ1350995917 / error-code
Created August 5, 2015 02:57
超媒体播放器错误码
1000:未知错误
2xxx:常规错误
2001:找不到文件
2002:版本不匹配
3xxx:程序错误
3000:
server 初始化配置 及 VPN的搭建
先给ubuntu用户设置密码
sudo passwd ubuntu
更改ssh 允许用户名密码登录
sudo vi /etc/ssh/sshd_config
PasswordAuthentication 改成 yes
重启ssh 服务
sudo service ssh restart
@QQ1350995917
QQ1350995917 / server.xml
Last active August 29, 2015 14:04
config the tomcat server ; this is import file ; download by dingpw.com
<?xml version='1.0' encoding='utf-8'?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@QQ1350995917
QQ1350995917 / linux_os_sh.sh
Last active August 29, 2015 14:04
the shell to config developer environment
# install gcc
apt-get install -y gcc
# install make
apt-get install -y make
# install jdk
cd /usr/local/bin/
mkdir java
cd java/
@QQ1350995917
QQ1350995917 / ubuntu
Last active August 29, 2015 14:02
ubuntu setting
1: # vim install
sudo apt-get install vim
2: # alias setting
alias la='ls -al'
alias ll='ls -l'
# global setting
vim /etc/bashrc
source /etc/bashrc
3: # install input methos
http://code.google.com/p/libgooglepinyin/wiki/INSTALL#ibus-googlepinyin
@QQ1350995917
QQ1350995917 / centos_profile
Created June 22, 2014 02:48
centos system environment
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
@QQ1350995917
QQ1350995917 / centos
Last active August 29, 2015 14:00
centos system environment
vpn01:http://isoredirect.centos.org/centos/6/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1.iso
02:yum update
03:yum install "@Chinese Support"
04:yum remove java
05:vim /etc/inittab (id:3:initdefault)
06:yum -y install glibc.i686
07:yum -y install libstdc++.so.6
yum -y install glibc-devel.i686 glibc-devel
yum -y install zlib.i686
08:# update firefox(http://www.mozilla.org/en-US/firefox/all/)
参考链接:http://books.sonatype.com/mvnref-book/reference/android-dev.html
1:修改DgroupId和DartifactID为合适的值然后执行
mvn archetype:generate \
-DarchetypeArtifactId=android-quickstart \
-DarchetypeGroupId=de.akquinet.android.archetypes \
-DarchetypeVersion=1.0.6 \
-DgroupId=my.pk.name \
-DartifactId=my-app-name
@QQ1350995917
QQ1350995917 / 地址备忘录
Last active January 3, 2016 00:19
地址备忘录
keytool -genkey -v -keystore com-dingpw-android.keystore -alias com.dingpw.android.keystore -keyalg RSA -keysize 2048 -validity 20000
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore com-dingpw-android.keystore target/android-dping-1.0-SNAPSHOT-2014-08-16_08-57.apk com.dingpw.android.keystore
JSON ONLINE:http://www.jsoneditoronline.org/
JSON ONLINE:http://jsonviewer.stack.hu/
VISIO ONLINE:https://creately.com/app/#
UML ONLINE:https://app.genmymodel.com/genmymodel
maven仓库搜索服务:http://mvnrepository.com/