Skip to content

Instantly share code, notes, and snippets.

@NeoOU
NeoOU / mvn
Last active February 8, 2017 09:57
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -Dfile=d:\ojdbc12.jar
mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar -Dfile=C:\Users\omed\Desktop\jar\ojdbc7-12.1.0.2.jar -Durl=http://localhost:8081/repository/maven-releases/ -DrepositoryId=nexus
@NeoOU
NeoOU / mysql command
Created January 16, 2017 06:56
mysql command
# 新建用户并赋权限
grant all privileges on *.* to usr1@'%' identified by '123456';
# 撤销用户权限
revoke all privileges from *.* to usr1@'%';
@NeoOU
NeoOU / linux command
Last active December 11, 2016 08:45
linux command collection
# 开放端口
iptables -I INPUT 4 -p tcp -m state --state NEW -m tcp --dport 8080 -j ACCEPT
service iptables save
# 查看iptables规则
iptables nvL
# 更改文件夹所在组及其权限
chown -R www.www /data/wwwroot/
find /data/wwwroot/ -type d -exec chmod 755 {} \;
@NeoOU
NeoOU / windows 查看端口占用情况
Created November 25, 2016 07:07
windows 查看端口占用情况
netstat -ano | findstr "8090"
@NeoOU
NeoOU / 书单-专业
Created November 22, 2016 12:45
书单
严蔚敏的《数据结构 》
谢希仁的《计算机网络》
唐朔飞的《计算机组成原理》
汤小丹的《计算机操作系统》
算法导论、编译原理
@NeoOU
NeoOU / android release apk MissingTranslation
Created November 22, 2016 01:40
android release apk MissingTranslation
lintOptions {
abortOnError false
checkReleaseBuilds false
// 防止在发布的时候出现因MissingTranslation导致Build Failed!
disable 'MissingTranslation'
}
@NeoOU
NeoOU / alibaba maven mirror
Created November 19, 2016 14:21
alibaba maven mirror
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>