assume you have this remote ssh server config on your ssh config
Host aurora
HostName 192.168.10.66
User aurora| allprojects { | |
| buildscript { | |
| repositories { | |
| maven { url 'https://maven.aliyun.com/repository/public' } | |
| maven { url 'https://maven.aliyun.com/repository/google' } | |
| maven { url 'https://maven.aliyun.com/repository/spring' } | |
| maven { url 'https://maven.aliyun.com/repository/spring-plugin' } | |
| maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } | |
| maven { url 'https://maven.aliyun.com/repository/grails-core' } | |
| maven { url 'https://maven.aliyun.com/repository/apache-snapshots' } |
| FROM sonarqube:community | |
| USER root | |
| # --no-cache: download package index on-the-fly, no need to cleanup afterwards | |
| # --virtual: bundle packages, remove whole bundle at once, when done | |
| # Using --no-cache avoids having to use rm -rf /var/cache/apk/*; | |
| # Using --virtual allows you to remove multiple packages required during build only at once | |
| RUN apk --update --no-cache --virtual build-dependencies add \ | |
| nodejs \ |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "version": 2, | |
| "final_space": true, | |
| "console_title_template": "{{.UserName}}@{{.HostName}} in {{ .PWD }}", | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ |
| # Import essential modules | |
| Import-Module gsudoModule | |
| Import-Module PSFzf | |
| Import-Module posh-git | |
| Import-Module Terminal-Icons | |
| # Set encoding to UTF-8 | |
| $OutputEncoding = [System.Text.UTF8Encoding]::new() | |
| [System.Console]::OutputEncoding = [System.Text.UTF8Encoding]::new() |
| # set RemoteSigned for CurrentUser | |
| Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser | |
| # install scoop | |
| iwr -useb get.scoop.sh | iex | |
| scoop config proxy localhost:7890 | |
| # scoop config rm proxy | |
| scoop bucket add main | |
| scoop bucket add extras | |
| scoop bucket add java |
| [init] | |
| defaultBranch = main | |
| [pull] | |
| rebase = true | |
| [fetch] | |
| prune = true | |
| [alias] | |
| ld = log --stat --graph --oneline | |
| lf = log --graph --pretty=format:'%C(red)%h%Creset %C(cyan)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --all | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit |
| Host * | |
| TCPKeepAlive yes | |
| ServerAliveInterval 60 | |
| ServerAliveCountMax 30 | |
| Compression yes | |
| ControlMaster auto | |
| ControlPath /tmp/%r@%h:%p | |
| ControlPersist 8h | |
| # StrictHostKeyChecking no | |
| PreferredAuthentications publickey,password |
| #!/usr/bin/env bash | |
| # change the apt sources to aliyun | |
| cat << EOF > /etc/apt/sources.list | |
| deb https://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse | |
| deb https://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse | |
| deb https://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse | |
| deb https://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse | |
| EOF |
| #============================================================================= | |
| # dark_powered.toml --- dark powered configuration example for SpaceVim | |
| # Copyright (c) 2016-2022 Wang Shidong & Contributors | |
| # Author: Wang Shidong < [email protected] > | |
| # URL: https://spacevim.org | |
| # License: GPLv3 | |
| #============================================================================= | |
| # All SpaceVim option below [option] section | |
| [options] |