Skip to content

Instantly share code, notes, and snippets.

View PhilYue's full-sized avatar
🥥
Focusing

Phil PhilYue

🥥
Focusing
View GitHub Profile
@PhilYue
PhilYue / gist:68eebcc2a30d84312aedc4eec4d2590d
Created April 2, 2021 02:35 — forked from timvlaer/gist:721ba30f8fc6a7aac1b0190e132a4261
Install Thrift 0.9.3 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/9d524e4850651cfedd64bc0740f1379b533f607d/Formula/thrift.rb
@PhilYue
PhilYue / uao.sh
Created May 30, 2020 09:19 — forked from sgyyz/uao.sh
uao.sh
#!/bin/sh
fullFileName=$1
suffix=${fullFileName#*.}
if [ "$suffix" != "zip" ];then
echo "Must be a valid zip file"
else
filename=${fullFileName%.*}
@PhilYue
PhilYue / idea
Created May 30, 2020 09:18 — forked from chrisdarroch/idea
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
@PhilYue
PhilYue / uao.md
Created March 23, 2020 13:38 — forked from sgyyz/uao.md
uao command - unzip your project and import to intellij automatically
  1. import project into idea command
$ curl -L "https://gist.githubusercontent.com/chrisdarroch/7018927/raw/9a6d663fd7a52aa76a943fe8a9bc6091ad06b18d/idea" -o /usr/local/bin/idea
$ chmod +x /usr/local/bin/idea
  1. unzip and open project command
$ curl -L "https://gist.githubusercontent.com/sgyyz/adfa4f05af3d81cf0e17e19cf7044c85/raw/b6b9e871d5a4f5435a09d00b0a52e3db0b90699a/uao.sh" -o /usr/local/bin/uao.sh
$ chmod +x /usr/local/bin/uao.sh
$ ln -sf /usr/local/bin/uao.sh /usr/local/bin/uao
@PhilYue
PhilYue / README.md
Created August 16, 2018 15:45 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@PhilYue
PhilYue / gist:1137e7c36b7b6b04f707474e1059249d
Created January 23, 2018 12:08 — forked from lxneng/gist:435451
网站压力测试工具webbench

Install

wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
tar zxvf webbench-1.5.tar.gz
cd webbench-1.5
make && make install

Usage

webbench --help

@PhilYue
PhilYue / [1] main.js
Created January 4, 2018 13:46 — forked from hfalucas/[1] main.js
[Vue.js] Authentication and Authorization
/**
* Think of this "main.js" file as your application bootstrap.
*/
import Vue from 'vue'
import Resource from 'vue-resource'
import VueRouter from 'vue-router'
import routes from './routes'
import middleware from './middleware'
@PhilYue
PhilYue / git_toturial
Created October 26, 2017 08:00 — 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远程仓库
@PhilYue
PhilYue / addChineseUnit.js
Created August 8, 2017 03:08 — forked from zmmbreeze/addChineseUnit.js
为数字加上单位:万或亿
/**
* 为数字加上单位:万或亿
*
* 例如:
* 1000.01 => 1000.01
* 10000 => 1
* 99000 => 9.9
* 566000 => 56.6
* 5660000 => 566
* 44440000 => 4444