Skip to content

Instantly share code, notes, and snippets.

upstart环境中,服务的daemon支持的测试:
docker run -it --name ubu -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/local/bin/docker -v $PWD:/aabb dockerimages/ubuntu-upstart
进入容器:makdir /var/lib/jas-deploy
可以进行后续测试
systemv环境的测试:
docker run -it --name ubu -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/local/bin/docker -v $PWD:/aabb jgoerzen/debian-base-security
因为容器中有upstart环境,我们暂时屏蔽掉,mv /sbin/initctl /sbin/initctl.bak
可以进行后续测试
@mittyok
mittyok / git list assume-unchanged files
Created June 14, 2018 02:36
git list assume-unchanged files
git ls-files -v | grep -e "^[hsmrck]"
@mittyok
mittyok / install-multiple-jdk-on-macos-high-sierra.md
Created May 24, 2018 05:42 — forked from ntamvl/install-multiple-jdk-on-macos-high-sierra.md
Install Multiple Java Versions on macOS High Sierra

Install Multiple Java Versions on macOS High Sierra

Install Homebrew Cask

On Mac, Homebrew is the de-facto package manager, and Homebrew Cask is the app manager. I’m going to use Cask to install Java 7 and 8.

Install Homebrew Cask first if you haven’t:

brew update
brew tap caskroom/cask
@mittyok
mittyok / git_toturial
Created April 11, 2018 08:15 — forked from guweigang/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
关闭方法
sudo spctl --master-disable
输入密码就可以了
关闭完成之后就可以去打开软件了,打开一次之后就可以不用认证了
重新打开GateKeeper
sudo spctl --master-enable
ps:注意软件的安全性,如果是破解软件,请有能力的支持正版
复制代码
string meaning
—— ——-
@reboot Run once, at startup.
@yearly Run once a year, “0 0 1 1 *”.
@annually (same as @yearly)
@monthly Run once a month, “0 0 1 * *”.
@weekly Run once a week, “0 0 * * 0”.
@daily Run once a day, “0 0 * * *”.
@midnight (same as @daily)
@mittyok
mittyok / gist:299855a741932961a98e998029693976
Created March 13, 2018 19:34
exec command on swarm cluster global
docker service create --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock --mode=global --restart-condition on-failure docker docker system prune -f
@mittyok
mittyok / gist:082cbb69a59ef789734c73833d7bef50
Created March 13, 2018 17:08
hide property with stars in spring boot
endpoints.env.keys-to-sanatize and endpoints.configprops.keys-to-sanatize.
@mittyok
mittyok / gist:4d9ee894ed86d1ab772ae9f2c004d015
Created March 12, 2018 13:13
delete or remove exited services for docker stack
docker ps -qa -f label=com.docker.swarm.task -f status=exited | xargs docker rm -f
@mittyok
mittyok / gist:8a341a13d481dd3fc80f3dc0e22237a0
Created March 2, 2018 08:39
csv to xlsx osx linux e.t.
https://gitlab.com/DerLinkshaender/csv2xlsx.git