defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES
var fs = require('fs');
var path = "目标路径..";
function readDirectory(dirPath) {
if (fs.existsSync(dirPath)) {
var files = fs.readdirSync(dirPath);
改默认端口:
sudo vim /etc/gitlab/gitlab.rb
把external_url 改为 http://yourdomain.com:port
我在运行sudo gitlab-ctl reconfigure
之后查看gitlab status:
sudo gitlab-ctl status
看到以下信息:
<excludeFromCompile>
<file url="file://$PROJECT_DIR$/src/main/java/xxxController.java" />
</excludeFromCompile>
由于误操作(我也不知道什么时候干的)发现这个 controller 下面的 api无法访问`No mapping found for HTTP request with URI /...`
然后发现没有其他代码更变。只有一个在.idea 下面的 compiler.xml 里多了一句这个。手动删除却发现下次又生成了,所以查找了配置在(Preferences[command+,] -> Compiler ->Excludes )下找到了。。。
download jdk and install here
- download jdk using wget
wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.tar.gz
- extract to folder
tar -vxzf jdkXXX.tar.gz -C /opt
- set
JAVA_HOME
,JRE_HOME
,CLASS_PATH
,PATH
export JAVA_HOME="/opt/jdk1.8.0_65"
export JAVA="/opt/jdk1.8.0_65"
sudo apt-get install mysql-server-5.6 mysql-client-5.6
mysql -u root -p
Then input your password press Enter
use mysql;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'YOUR PASSWORD';
sudo iptables -A INPUT -i YOUR_NETCARD_INTERFACE(e.g. eth0) -p tcp --destination-port 3306 -j ACCEPT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
from sys import argv | |
import zbar | |
import qrcode | |
from PIL import Image | |
if len(argv) < 2: exit(1) | |
newUrl = argv[2] | |
scanner = zbar.ImageScanner() |