-
github上你可以用别人的现成的代码 直接 git clone 即可了
-
然后你也想改代码或者贡献代码咋办?
This file contains 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
user jessed staff; | |
worker_processes 2; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; |
This file contains 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
# This config is used for Dreamhost which HTTP basic authoriztion is forbidden. | |
# The PHP Server variable 'PHP_AUTH_USER' & 'PHP_AUTH_PW' could be implement by | |
# this config via a CGI environment variable. | |
# From [HTTP Authentication on PHP as CGI (like Dreamhost)](http://planetozh.com/blog/2009/04/http-authentication-on-php-as-cgi-like-dreamhost/) | |
RewriteEngine on | |
RewriteRule ^git-hook.*\.php - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] |
This file contains 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
/* | |
查看状态 : https://portal.qiniu.com/mps/pipeline/{queue id}/job/{object id} | |
提交 : https://portal.qiniu.com/mps/pipeline/{queue id}/job | |
post 字段 | |
--------------------- | |
pipelineId:队列id | |
srcBucket:空间 |
This file contains 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
### Script to install xquartz and set the DISPLAY variable correctly, find the listen port and add current ip to connect to X11. | |
#skip if you want, install xquartz | |
brew cask reinstall xquartz | |
#get ip | |
IP=$(ifconfig|grep -E inet.*broad|awk '{ print $2; }') | |
#open XQuartz | |
open -a XQuartz & | |
#Go to preference Security check allow network, restart : | |
read -p "Go to preference Security check allow network and press a key to continue" |
A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!
This guide was tested on:
- macOS Catalina 10.15.4
- docker desktop 2.2.0.5 (43884) - stable release
- XQuartz 2.7.11 (xorg-server 1.18.4)
- Macbook Pro (Intel)