Skip to content

Instantly share code, notes, and snippets.

@cxmokai
cxmokai / App.vue
Created March 30, 2019 07:42
vue app component
<template>
<div id="app"
v-loading.fullscreen.lock="store.loadingRef > 0"
element-loading-text="loading"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.6)">
<router-view></router-view>
</div>
</template>
@cxmokai
cxmokai / axios.js
Created March 30, 2019 07:33
axios configs
import axios from 'axios';
import { Message } from 'element-ui';
import store from './store';
import { router } from './router';
if (process.env.NODE_ENV === 'production') {
axios.defaults.baseURL = '';
} else {
axios.defaults.baseURL = '';
}
@cxmokai
cxmokai / stopping_gitlab.md
Created November 1, 2017 12:58 — forked from alces/stopping_gitlab.md
How to completely stop all the gitlab's processes

To stop all the gitlab-related processes (e.g. for moving gitlab to another node while running it on top of HA-cluster) run the following two commands as root (strictly in that sequence):

gitlab-ctl stop
/sbin/stop gitlab-runsvdir

After such a full stopping gitlab couldn't be run again by conventional gitlab-ctl start. Although gitlab-ctl reconfigure would work fine in such a case,

@cxmokai
cxmokai / tmux-cheatsheet.markdown
Created August 27, 2017 06:47 — forked from ryerh/tmux-cheatsheet.markdown
Tmux 快捷键 & 速查表

Tmux 快捷键 & 速查表

启动新会话:

tmux [new -s 会话名 -n 窗口名]

恢复会话:

tmux at [-t 会话名]