Skip to content

Instantly share code, notes, and snippets.

View liujingyu's full-sized avatar

jingyu liu liujingyu

View GitHub Profile
class Thrift < Formula
desc "Framework for scalable cross-language services development"
homepage "https://thrift.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.10.0/thrift-0.10.0.tar.gz"
sha256 "2289d02de6e8db04cbbabb921aeb62bfe3098c4c83f36eec6c31194301efa10b"
bottle do
cellar :any
sha256 "20b9fd54b8aaf036d5c9c85f53ab084819f1b6bbb392bd266e4f7c7e2dbbc48b" => :high_sierra
sha256 "a0d93b6f61524775ec194daa25a3a8da16f5e858823822847074711c718f1618" => :sierra
@liujingyu
liujingyu / gist:df2a9f957220557dc066e9e85c67f73f
Created October 29, 2018 07:21 — forked from siddharthg/gist:6923b2cbb402bd65255af7859a5d52a5
Install Thrift 0.10.0 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/16ebe5f1843e6cb54856311ff0f676be53007329/Formula/thrift.rb
@liujingyu
liujingyu / v1.2.0.patch
Last active February 11, 2018 03:01
walle-web v1.2.0 a patch support docker deploy,use dir map way.
diff --git a/components/Folder.php b/components/Folder.php
index 2a84f32..1e757c4 100644
--- a/components/Folder.php
+++ b/components/Folder.php
@@ -267,9 +267,13 @@ class Folder extends Ansible {
$currentTmp = sprintf('%s/%s/current-%s.tmp', rtrim($this->getConfig()->release_library, '/'), $project, $project);
// 遇到回滚,则使用回滚的版本version
$linkFrom = Project::getReleaseVersionDir($version);
- $cmd[] = sprintf('ln -sfn %s %s', $linkFrom, $currentTmp);
- $cmd[] = sprintf('chown -h %s %s', $user, $currentTmp);
worker_processes 1; # we could enlarge this setting on a multi-core machine
error_log logs/error.log warn;
events {
worker_connections 2048;
}
http {
lua_package_path 'conf/?.lua;;';
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
autocmd VimEnter *
\ if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
\| PlugInstall --sync | q
\| endif
@liujingyu
liujingyu / vimawesome.vim
Created September 3, 2017 03:44 — forked from junegunn/vimawesome.vim
Plugin completion using VimAwesome API
" ----------------------------------------------------------------------------
" vimawesome.com
" ----------------------------------------------------------------------------
function! VimAwesomeComplete() abort
let prefix = matchstr(strpart(getline('.'), 0, col('.') - 1), '[.a-zA-Z0-9_/-]*$')
echohl WarningMsg
echo 'Downloading plugin list from VimAwesome'
echohl None
ruby << EOF
require 'json'
@liujingyu
liujingyu / emit.vue
Last active August 23, 2017 13:59
vue 小组件集合
this.$emit('change', { perpage: this.perpage, page: page })
@liujingyu
liujingyu / docker-mysql.md
Last active August 4, 2017 02:41
mysql docker-compose
FROM mysql:5.7

#COPY etc/my.cnf /etc/

# Define mountable directories.

VOLUME ["/data"]

# Define working directory.
@liujingyu
liujingyu / pmm-admin.md
Created August 3, 2017 10:35
pmm-admin启动过程及Server添加
pmm-admin config --server 110.31.145.69 --server-user example --server-password example1234 --bind-address 110.45.40.204 --client-address 110.45.40.204 --client-name luka-online


pmm-admin add mysql --user root --password 123456 --host 110.45.40.204 --port 3306 example-3306
@liujingyu
liujingyu / pmm-server.md
Created August 3, 2017 10:31
pmm-server docker搭建过程

pull images

docker pull percona/pmm-server

创建数据卷: