start new:
tmux
start new with session name:
tmux new -s myname
| syntax on | |
| filetype plugin on | |
| set enc=utf8 | |
| set nocompatible | |
| set nu | |
| set et | |
| set sw=4 | |
| set ts=4 | |
| set history=500 | |
| set showmatch |
| #!/usr/bin/env python3 | |
| # *-* coding: utf-8 *-* | |
| # 脚本:备份数据库脚本 | |
| # 作者:yxz | |
| # 时间:2016.06.13 | |
| import os | |
| import time | |
| from subprocess import call |
| git config --global alias.co checkout | |
| git config --global alias.ci commit | |
| git config --global alias.st status | |
| git config --global alias.br branch | |
| git config --global alias.hist 'log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' | |
| git config --global alias.type 'cat-file -t' | |
| git config --global alias.dump 'cat-file -p' | |
| git config --global alias.ps 'push origin master' | |
| git config --global alias.pl 'pull origin master' |
| set nocompatible | |
| syntax on | |
| filetype off | |
| filetype indent plugin on | |
| set nocp | |
| set history=1000 | |
| set nu | |
| set sw=4 | |
| set sts=4 |
I will maybe someday get around to dusting off my C and making these changes myself unless someone else does it first.
Imagine a long-running development branch periodically merges from master. The
git log --graph --all --topo-order is not as simple as it could be, as of git version 1.7.10.4.
It doesn't seem like a big deal in this example, but when you're trying to follow the history trails in ASCII and you've got several different branches displayed at once, it gets difficult quickly.
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| [core] | |
| excludesfile = %(prefix)/Users/yxz/.gitignore_global | |
| autocrlf = input | |
| editor = vim | |
| # 修复 git status 中文文件名显示为十六进制字符串问题 | |
| quotepath = false | |
| [http] | |
| sslVerify = false | |
| postBuffer = 52400000 | |
| [alias] |
| <?php | |
| namespace App\Console\Commands; | |
| use Carbon\Carbon; | |
| use Illuminate\Console\Command; | |
| use App\Repositories\Admin\ChannelRepository; | |
| class StatChannelData extends Command | |
| { |
| <?php | |
| $list_operation = AppListXianwanLog::where(function ($query) use ($args) { | |
| $name = $args['name'] ?? ''; | |
| if ($name) { | |
| $query->whereHas('appXianwan', function ($hasQuery) use ($name) { | |
| $hasQuery->where('adname', 'like', "%{$name}%"); | |
| }); | |
| } | |
| }) |