This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node v6.9.0 | |
// | |
// TEST FILE (cut down for simplicity) | |
// To ensure Golang encrypted string can be decrypted in NodeJS. | |
// | |
let crypto; | |
try { | |
crypto = require('crypto'); |
NOTE this has been done properly by a guy here: https://www.stevenrombauts.be/2018/01/use-dnsmasq-instead-of-etc-hosts/
To setup your computer to work with *.dev domains, e.g. project.dev, awesome.dev and so on, without having to add to your hosts file each time.
Prerequisite: latest Docker for Mac on MacOS Sierra
$ brew update
$ brew install hyperkit
$ brew install docker-machine-driver-hyperkit
$ ls -l /usr/local/opt/docker-machine-driver-hyperkit/bin/
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"安装/更新:BundleInstall | |
"卸载即将对应项注释后再运行:BundleClean | |
"取消兼容模式 | |
set nocompatible | |
"关闭文件类型侦测,必须 | |
filetype off | |
"powerline配置要求 | |
set laststatus=2 | |
"编码设置 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gitlab-rake gitlab:backup:create | |
find /var/opt/gitlab/backups -mtime +7 -exec rm {} \; | |
s3cmd sync --skip-existing --delete-removed /var/opt/gitlab/backups/ s3://<s3-bucket-name>/gitlab/backups/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func (repo *Repo) Pull() error { | |
branch, err := repo.Branch() | |
if err != nil { | |
return err | |
} | |
// Get the name | |
name, err := branch.Name() | |
if err != nil { | |
return err |