技术文章

How to crack starUML · December 26, 2018 · 技术文章

  1. 下载start uml: http://staruml.io/
  2. 修改StarUML安装包下的lincense_manage.js(/Applications/StarUML.app/Contents/Resources/app/src/engi
    ne/license-manager.js)

这个文件夹在开始安装的时候并不存在,是通过asar文件解压得到的,所以需要先将asar进行解压,解压操作需要用到asar,所以先通过npm 安装:

npm install asar -g

安装完成之后,进入到/Applications/StarUML.app/Contents/Resources目录下并解压app.asar文件:

asar extract app.asar app

这个时候就能够看到app 文件夹,找到/app/src/engine/license-manager.js并修改checkLicenseValidity()方法,修改内容如下:

  checkLicenseValidity () {
    this.validate().then(() => {
      setStatus(this, true)
    }, () => {
      // need update status to true
      setStatus(this, true)
      //remove UnregisteredDialog.showDialog();
      //UnregisteredDialog.showDialog()
    })
  }

3、重新打包原来的app.asar文件:

asar pack app app.asar

4、重新运行软件即可。


Setup Redis With Docker Command · November 13, 2018 · 技术文章

docker run -d --name redis-master -p 6379:6379 -v /volume1/docker/redis/:/data --restart=always docker.io/redis redis-server --appendonly yes --requirepass "password"

Homebrew repositories Url Setting For Domestic · June 9, 2018 · 技术文章

go into the root of homebrew's repo

cd "$(brew --repo)"

Than replace git remote set-url which from ustc university

git remote set-url origin git://mirrors.ustc.edu.cn/brew.git

Remove <none> image with docker images command · June 3, 2018 · 技术文章

remove images named when you use docker images command

docker rmi $(docker images --filter "dangling=true" -q --no-trunc)

Maven Repositories Setting For Domestic · June 2, 2018 · 技术文章

settings.xml details in ~/.m2

<?xml version="1.0" encoding="utf-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  
  <mirrors> 
    <mirror> 
      <id>alimaven</id>  
      <name>aliyun maven</name>  
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>  
      <mirrorOf>central</mirrorOf> 
    </mirror> 
  </mirrors> 
</settings>


Lombok - An Amazing Java Library · May 15, 2018 · 技术文章

Repository Url

http://mvnrepository.com/artifact/org.projectlombok/lombok

Official Website

https://projectlombok.org/

Case


import lombok.AccessLevel;
import lombok.Setter;
import lombok.Data;
import lombok.ToString;

@Data public class DataExample {
  private final String name;
  @Setter(AccessLevel.PACKAGE) private int age;
  private double score;
  private String[] tags;
  
  @ToString(includeFieldNames=true)
  @Data(staticConstructor="of")
  public static class Exercise<T> {
    private final String name;
    private final T value;
  }
}

Vundle - A VIM Plugin Manager · March 15, 2018 · 技术文章

Install Command

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Github Link && Documents for Vundle

https://github.com/VundleVim/Vundle.vim

Portainer - A docker container manager · March 13, 2018 · 技术文章

Introduce

Portainer is a lightweight management UI which allows you to easily manage your different Docker environments (Docker hosts or Swarm clusters).

Docker run command

docker run -d -p 9000:9000 --restart=always -v /var/run/docker.sock:/var/run/docker.sock --name prtainer docker.io/portainer/portainer
https://hub.docker.com/r/portainer/portainer/
https://github.com/portainer/portainer

The Introduction A Generic Scaffolding System Named Yeoman · February 18, 2018 · 技术文章

Official document

http://yeoman.io/learning/

Introduction

Yeoman can make a generator of node.js application anyway you want.

Install Script

npm install -g yo

MAC下安装应用时不再提示开启任何来源 · February 4, 2018 · 技术文章

sudo spctl --master-disable