Aimeow的技术小站 活在自己的梦里

How to crack starUML

  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

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

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

remove images named when you use docker images command

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

Maven Repositories Setting For Domestic

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>