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
# | |
# Aliases | |
# (sorted alphabetically) | |
# | |
alias g='git' | |
alias ga='git add' | |
alias gaa='git add --all' | |
alias gapa='git add --patch' |
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
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
type Option func(opts *Options) | |
var defaultConfig = Options{ |
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
# where proxy | |
proxy () { | |
export http_proxy="http://127.0.0.1:1086" | |
export https_proxy="http://127.0.0.1:1086" | |
echo "HTTP Proxy on" | |
} | |
# where noproxy | |
noproxy () { | |
unset http_proxy |
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
# file path: | |
# ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 | |
function Set-Proxy | |
{ | |
$proxy = 'http://127.0.0.1:1086' | |
# temporary | |
$env:HTTP_PROXY = $proxy | |
$env:HTTPS_PROXY = $proxy |
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
version: '3.3' | |
services: | |
gogsdb: | |
image: mysql:latest | |
container_name: gogsdb | |
restart: always | |
environment: | |
MYSQL_DATABASE: gogs | |
MYSQL_ROOT_PASSWORD: gogs | |
MYSQL_USER: gogs |