Skip to content

Instantly share code, notes, and snippets.

View danhantao's full-sized avatar
🎯
Focusing

Jacob danhantao

🎯
Focusing
  • Jersey
  • 15:50 (UTC -12:00)
View GitHub Profile
@danhantao
danhantao / linux_ubuntu_sh.sh
Last active August 29, 2015 14:05
ubuntu环境变量
# create dir
mkdir -p dev/tools/bin
mkdir -p dev/workspaces
# install jdk1.8
cd ~/dev/tools/bin
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
tar -zxvf jdk-8u11-linux-x64.tar.gz
ln -s jdk1.8.0_11 jdk
# config jdk path
http://www.cnblogs.com/gzggyy/archive/2012/07/19/2599645.html
@danhantao
danhantao / gist:333d3fe69cda812edef4
Last active August 29, 2015 14:05
使用Nexus创建私服
sudo apt-get update
sudo apt-get install openjdk-7-jdk
mkdir -p dev/tools/bin
cd dev/tools/bin
wget http://mirror.nus.edu.sg/apache/tomcat/tomcat-8/v8.0.9/bin/apache-tomcat-8.0.9.tar.gz
tar -zxvf apache-tomcat-8.0.9.tar.gz
ln -s apache-tomcat-8.0.9 tomcat
cd tomcat/webapps
wget http://download.sonatype.com/nexus/oss/nexus-2.9.0-04.war
github:
https://github.com/Nurgak/Android-Bluetooth-Remote-Control
https://github.com/RatioLabs/BLEService
https://github.com/polyclef/BluetoothChatMulti
https://github.com/akexorcist/Android-BluetoothSPPLibrary
//一些博客
http://blog.csdn.net/baimy1985/article/details/9275559
http://blog.csdn.net/yinlijun2004/article/details/9724347
1.mysql 默认不允许其他主机访问。
修改配置。vi /etc/mysql/my.cnf
把bind-address = 127.0.0.1 or localhost 注掉
service mysql restart or init.d/mysql restart
2.添加用户
mysql 中的用户对应的表是 database:mysql,table:user
insert into mysql.user(Host,User,Password) values('localhost','phplamp',password('1234'));
host 代表可以访问的主机。如果允许所有主机访问则为%
2. 授权。例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话。
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'benjamin' WITH GRANT OPTION;
搭建:
收集自:http://www.cloudfly.info/archives/36
安装apache2
sudo apt-get install apache2
安装完成,运行如下命令重启下:
sudo /etc/init.d/apache2 restart
在浏览器里输入http://localhost或者是http://127.0.0.1,如果看到了“It works!“,那就说明Apache就成功的安装了,Apache的默认安装,会在/var下建立一个名为www的目录,这个就是Web目录了,所有要能过浏览器访问的Web文件都要放到这个目录里。
第一步:安装 Apache2 + PHP 模块
$ sudo apt-get install apache2 libapache2-mod-php5 php5 php5-mysql
第二步:安装并配置Mysql
安装mysql
$ sudo apt-get install mysql-client-5.0 mysql-server-5.0
创建dotproject用户
第一步:搭建lamp环境
参考:https://gist.github.com/wangwy/39cf380b697ed55699a7
第二步:创建apache虚拟机
编辑/etc/apache2/site-available/000-default.conf
sudo vim /etc/apache2/site-available/000-default.conf
添加 <VirtualHost *:1986>
ServerName localhost
DocumentRoot /home/krx/zentaopms/www
</VirtualHost>
第三步:mysql创建zentao用户
http://terryblog.blog.51cto.com/1764499/339630/
--- # mp4播放器
videoview
surfaceView
mediaplay用surfaceview播放mp4,碰到奇葩的问题,在不同的盒子上.
krx重播后,从10s开始,minix没有这样的问题.科睿星看视频会卡死,minx不会出现这样的问题.
minix严重的拖动进度条,他会出现问题.拖动后,会回去,而科睿星盒子,这样的问题会不明显.