Skip to content

Instantly share code, notes, and snippets.

@nameldk
nameldk / .bash_profile - windows git bash
Last active September 19, 2017 08:34
.bash_profile on windows git bash, .bashrc not working
# git
alias g='git'
alias gl='git pull'
alias gco='git checkout'
alias gb='git branch'
alias gba='git branch -a'
alias gst='git status'
alias gr='git remote'
# dir
<?php
/**
* 加密 hash,生成发送给用户的 hash 字符串
*
* @param array $hash_data
* @param string $hash_key
* @return string
*/
function encode_hash($hash_data, $hash_key = false)