PHP的authcode用GO实现

package authcode import ( "encoding/base64" "fmt" "strings" "time" "strconv" "log" "crypto/md5" "encoding/hex" ) // base64 加密 /* func Base64_encode(s string) string { return base64.StdEncoding.EncodeToString( ...

beego配置文件

配置文件内的key不区分大小写 App配置 #App配置 AppName = ApiService RunMode = dev RouterCaseSensitive = true ServerName = ApiService RecoverPanic = true CopyRequestBody = true EnableGzip = false MaxMemory = 1 << 26 EnableErrorsShow = true EnableErrorsRender = false ...

GitLab 常用命令

卸载 gitlab-ctl uninstall 运维 # 修改默认的配置文件 vim /etc/gitlab/gitlab.rb # 查看版本 cat /opt/gitlab/embedded/service/gitlab-rails/VERSION # echo "vm.overcommit_memory=1" >> /etc/ ...