Generation of a self-signed SSL certificate involves a simple 3-step procedure:
STEP 1: Create the server private key
openssl genrsa -out cert.key 2048STEP 2: Create the certificate signing request (CSR)
openssl req -new -key cert.key -out cert.csr| ############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################ | |
| ############ also be sure to RESTART OpenProject after replacing the file. ################ | |
| ############ it doesn't show that enterprise mode is enabled in the settings, but all ################ | |
| ############ enterprise mode features, such as KanBan boards, are enabled. ################ | |
| #-- copyright | |
| # OpenProject is an open source project management software. | |
| # Copyright (C) 2012-2020 the OpenProject GmbH | |
| # | |
| # This program is free software; you can redistribute it and/or | 
With Ruby 1.8 (default version on MacOS) :
sudo gem install json
curl -s https://api.github.com/orgs/[ORGANIZATION]/repos | ruby -rubygems -e 'require “json”; JSON.load(STDIN.read).each {|repo| %x[git clone #{repo["ssh_url"]} ]}'
With Ruby 1.9+, the json library is by default thus you just use :
| # http proxy | |
| git config --global https.proxy http://127.0.0.1:1088 | |
| git config --global https.proxy http://127.0.0.1:1088 | |
| # socks5 proxy | |
| git config --global http.proxy socks5://127.0.0.1:1080 | |
| git config --global https.proxy socks5://127.0.0.1:1080 | |
| # unset proxy | |
| git config --global --unset http.proxy | 
| static uint32_t seed = 0; | |
| static void srand32(uint32_t s) { | |
| seed = s; | |
| } | |
| static uint32_t rand32(void) { | |
| seed = (uint32_t)(((uint64_t)1664525 * seed) + 1013904223); | 
| # On a MAC, use: | |
| nm *.o | c++filt | 
| # Pack the nodejs application using `pkg` (https://github.com/zeit/pkg) | |
| # dependencies: rimraf, cpx and pkg | |
| # > npm i rimraf cpx pkg -D | |
| .PHONY: init clean build | |
| OS := $(shell uname) | |
| ARCH := $(shell uname -p) | |
| all: dist | 
| pushd /opt | |
| sudo bash -c "wget https://github.com/sarfata/pi-blaster/archive/master.zip -O pi-blaster.zip" | |
| sudo unzip pi-blaster.zip | |
| if [ -d pi-blaster ]; then | |
| sudo rm -fr pi-blaster | |
| fi | |
| sudo mv pi-blaster-master pi-blaster | |
| cd pi-blaster | |
| sudo ./autogen.sh | 
| class WxTransport extends roal.Transport { | |
| constructor(options) { | |
| super(); | |
| this._buf = []; | |
| this._serviceUUID = options.serviceUUID; | |
| this._characteristicUUID = options.characteristicUUID; | |
| this._deviceId = null; // 扫描连接后,更新此字段 | |
| this.ready = this.setup(); | |
| } | |
| setup() { |