Skip to content

Instantly share code, notes, and snippets.

View pplmx's full-sized avatar
💭
Thinking

Mystic pplmx

💭
Thinking
View GitHub Profile
@pplmx
pplmx / init.gradle
Last active December 5, 2021 06:30
Gradle Global Repo in Aliyun
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' }
@pplmx
pplmx / Dockerfile
Created December 21, 2021 06:08
SonarQube Scanner NodeJS project
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 \
@pplmx
pplmx / aurora.omp.json
Last active December 14, 2023 02:56
Aurora Theme: oh my posh Customize Theme
{
"$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": [
@pplmx
pplmx / $PROFILE
Last active May 17, 2024 09:03
for ohmyposh theme config
# Import Modules
Import-Module PSFzf
Import-Module posh-git
Import-Module Terminal-Icons
# Config Modules
Set-PSReadLineOption -PredictionSource History
Set-PsFzfOption -PSReadLineChordProvider 'Ctrl+f' -PSReadLineChordReverseHistory 'Ctrl+r'
# Load prompt configs
# 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
@pplmx
pplmx / .gitconfig
Last active September 15, 2022 01:39
[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
@pplmx
pplmx / config
Last active October 27, 2022 11:23
~/.ssh/config Speeding up SSH Connection Creation
Host *
TCPKeepAlive yes
ServerAliveInterval 60
ServerAliveCountMax 30
Compression yes
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist 8h
# StrictHostKeyChecking no
PreferredAuthentications publickey,password
@pplmx
pplmx / init.sh
Last active August 27, 2022 13:57
ubuntu init
#!/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
@pplmx
pplmx / instruction.md
Created September 22, 2022 11:07
ssh without password

SSH without PASSWORD

~/.ssh/config

assume you have this remote ssh server config on your ssh config

Host aurora
	HostName 192.168.10.66
	User aurora
@pplmx
pplmx / init.toml
Last active March 3, 2023 06:39
SpaceVim init.toml
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2022 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================
# All SpaceVim option below [option] section
[options]