Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
bajins committed May 31, 2024
1 parent 495d4b7 commit 3e7aa4e
Show file tree
Hide file tree
Showing 27 changed files with 270 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .vuepress/public/files/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-8.0-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
118 changes: 118 additions & 0 deletions .vuepress/public/files/init.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
allprojects {
buildscript {
repositories {
/*maven{ url 'https://maven.aliyun.com/repository/public/'}
maven{ url 'https://maven.aliyun.com/repository/google/'}
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')
|| url.startsWith('https://dl.google.com/dl/android/maven2/')) {
//project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL."
remove repo
}
}
}*/
/*def ALIYUN_REPOSITORY_URL = 'https://maven.aliyun.com/repository/public'
def ALIYUN_JCENTER_URL = 'https://maven.aliyun.com/repository/public'
def ALIYUN_GOOGLE_URL = 'https://maven.aliyun.com/repository/google'
def ALIYUN_GRADLE_PLUGIN_URL = 'https://maven.aliyun.com/repository/gradle-plugin'
all { ArtifactRepository repo ->
if(repo instanceof MavenArtifactRepository){
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_REPOSITORY_URL."
remove repo
}
if (url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_JCENTER_URL."
remove repo
}
if (url.startsWith('https://dl.google.com/dl/android/maven2/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_GOOGLE_URL."
remove repo
}
if (url.startsWith('https://plugins.gradle.org/m2/')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $ALIYUN_GRADLE_PLUGIN_URL."
remove repo
}
}
}
maven { url ALIYUN_REPOSITORY_URL }
maven { url ALIYUN_JCENTER_URL }
maven { url ALIYUN_GOOGLE_URL }
maven { url ALIYUN_GRADLE_PLUGIN_URL }*/
def NJU_REPOSITORY_URL = 'https://repo.nju.edu.cn/repository/maven-public/'
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $NJU_REPOSITORY_URL."
remove repo
}
if (url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
if (url.startsWith('https://dl.google.com/dl/android/maven2/')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
if (url.contains('plugins.gradle.org/m2')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
}
}
maven { url NJU_REPOSITORY_URL }
mavenLocal()
}
}

repositories {
/*maven {
url 'https://maven.aliyun.com/repository/public/'
}
maven {
url 'https://maven.aliyun.com/repository/google/'
}
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
if (url.startsWith('https://repo.maven.apache.org/maven2/') || url.startsWith('https://repo.maven.org/maven2')
|| url.startsWith('https://repo1.maven.org/maven2') || url.startsWith('https://jcenter.bintray.com/')
|| url.startsWith('https://maven.google.com/') || url.startsWith('https://dl.google.com/dl/android/maven2/')) {
//project.logger.lifecycle "Repository ${repo.url} replaced by $REPOSITORY_URL."
remove repo
}
}
}*/
def NJU_REPOSITORY_URL = 'https://repo.nju.edu.cn/repository/maven-public/'
all { ArtifactRepository repo ->
if (repo instanceof MavenArtifactRepository) {
def url = repo.url.toString()
if (url.startsWith('https://repo1.maven.org/maven2')) {
project.logger.lifecycle "Repository ${repo.url} replaced by $NJU_REPOSITORY_URL."
remove repo
}
if (url.startsWith('https://jcenter.bintray.com/')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
if (url.startsWith('https://dl.google.com/dl/android/maven2/')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
if (url.contains('plugins.gradle.org/m2')) {
project.logger.lifecycle "Repository ${repo.url} deleted."
remove repo
}
}
}
maven { url NJU_REPOSITORY_URL }
mavenLocal()
}
}
71 changes: 71 additions & 0 deletions .vuepress/public/files/init.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// https://www.cnblogs.com/mkckr0/p/17714374.html
// https://gist.github.com/mkckr0/97ec5b0d99feede4c19ee6f905d5e722

val repoMirrorMap = mapOf(
"https://repo.maven.apache.org/maven2" to "https://maven.aliyun.com/repository/central",
"https://dl.google.com/dl/android/maven2" to "https://maven.aliyun.com/repository/google",
"https://plugins.gradle.org/m2" to "https://maven.aliyun.com/repository/gradle-plugin",
"https://jcenter.bintray.com" to "https://maven.aliyun.com/repository/jcenter",
)
val repoReplaceMap = mapOf(
"https://maven.google.com" to "https://dl.google.com/dl/android/maven2"
)

fun RepositoryHandler.setMirrors() {
all {
if (this is MavenArtifactRepository && !name.endsWith("Origin")) {
val originName = name
var originUrl = url.toString().trimEnd('/')

// do replace
repoReplaceMap[originUrl]?.let { newUrl ->
originUrl = newUrl
setUrl(originUrl)
}

// do mirror
repoMirrorMap[originUrl]?.let { newUrl ->
// replace into mirror repo
setUrl(newUrl)
// add origin repo to find missing jars
artifactUrls(originUrl)
// keep origin repo to find missing POM
maven(originUrl) { name = "$originName Origin" }
}
}
}
printRepos()
}

fun RepositoryHandler.printRepos() {
all {
if (this is MavenArtifactRepository) {
println("Maven Repo: name=\"$name\", url=$url, artifacts=${artifactUrls}")
}
}
}

settingsEvaluated {
pluginManagement {
repositories {
setMirrors()
}
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
setMirrors()
}
}
}

allprojects {
buildscript {
repositories {
setMirrors()
}
}
repositories {
setMirrors()
}
}
28 changes: 28 additions & 0 deletions .vuepress/public/files/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
pluginManagement {
repositories {

maven { url 'https://maven.aliyun.com/repository/central' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'https://maven.aliyun.com/repository/google' } //替换google()
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }

google()
mavenLocal() //配置先从本地仓库寻找jar包,优先寻找上一个配置,找到不执行下面的配置
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {

maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/public' }

google()
mavenCentral()
}
}
rootProject.name = "hiCompose"
include ':app'
1 change: 1 addition & 0 deletions DBS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@
* [https://github.com/yu-linfeng/redis5.x_tutorial](https://github.com/yu-linfeng/redis5.x_tutorial)
* redis常用特性 [https://github.com/LxyTe/redis](https://github.com/LxyTe/redis)
* [https://github.com/Ctzzhang/Ctzzhang.github.io](https://github.com/Ctzzhang/Ctzzhang.github.io)
* [Redlock安全吗?](http://antirez.com/news/101)
* Java [https://github.com/redisson](https://github.com/redisson)
* [https://github.com/RedisJSON](https://github.com/RedisJSON)
* [https://github.com/lettuce-io/lettuce-core](https://github.com/lettuce-io/lettuce-core)
Expand Down
1 change: 1 addition & 0 deletions DBS/关系型数据库.md
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,7 @@ SELECT NEXT VALUE FOR seq_num AS num FROM DUAL WHERE NEXT VALUE FOR seq_num <= 3
* [https://jdbc.postgresql.org](https://jdbc.postgresql.org)
* [https://github.com/postgrespro](https://github.com/postgrespro)
* [https://github.com/citusdata](https://github.com/citusdata)
* [https://github.com/neondatabase/neon](https://github.com/neondatabase/neon)
* [https://github.com/pgpartman](https://github.com/pgpartman)
* [https://github.com/PostgREST/postgrest](https://github.com/PostgREST/postgrest)
* [https://github.com/CrunchyData](https://github.com/CrunchyData)
Expand Down
1 change: 1 addition & 0 deletions Go/Go第三方库.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
* [https://github.com/huandu/go-sqlbuilder](https://github.com/huandu/go-sqlbuilder)
* [https://github.com/libragen/felix](https://github.com/libragen/felix)
* [https://github.com/eventials/go-tus](https://github.com/eventials/go-tus)
* [https://github.com/uptrace/bun](https://github.com/uptrace/bun)
* 缓存 [https://github.com/patrickmn/go-cache](https://github.com/patrickmn/go-cache)
* [https://github.com/bluele/gcache](https://github.com/bluele/gcache)
* [https://github.com/golang/groupcache](https://github.com/golang/groupcache)
Expand Down
14 changes: 14 additions & 0 deletions IDE/IDEA使用.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,20 @@ demo # 顶级项目(根项目)
4. 勾选`Transparent native-to-ascii conversion` 从本地转换ASCII


## 设置代码补全

- 快捷键:<kdb>Ctrl</kdb> + <kdb>Space</kdb>(可能被输入法占用)

- 修改快捷键 `File` -> `Settings` -> `KeyMap` -> 搜索`Completion` -> `Code Completion`
- 移除`Cycle Expand Word``Alt+/`快捷键。
-`Basic`上点击右键,去除`Ctrl+空格`绑定,然后添加`Alt+/`快捷键。

- 打开 `File` -> `Settings` -> `Editor` -> `General` -> `Code Completion`
- `Autopopup code completion`
- `Delay`



## 设置序列化ID

- 打开 `File` -> `Settings` -> `Editor` -> `Inspections` -> `Java` -> `Serialization issues`
Expand Down
10 changes: 5 additions & 5 deletions IDE/IDEA插件.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

## Flag

* [实用IDEA工具](https://blog.csdn.net/weixin_37645838/article/details/85953193)

- [https://www.jetbrains.com/legal/docs/terms/jetbrains-ai/service-providers](https://www.jetbrains.com/legal/docs/terms/jetbrains-ai/service-providers)
- [https://licheng1013.github.io/util/idea.html](https://licheng1013.github.io/util/idea.html)
- Eclipse代码格式化风格 [https://github.com/krasa/EclipseCodeFormatter](https://github.com/krasa/EclipseCodeFormatter)
- 主题 [http://soft-hub.cn](http://soft-hub.cn)
Expand Down Expand Up @@ -53,7 +52,7 @@
* [利用授权服务器(License Server)激活Jetbrains全家桶](https://51.ruyo.net/17780.html)
* [https://www.shodan.io/search?query=Location%3A+https%3A%2F%2Faccount.jetbrains.com%2Ffls-auth](https://www.shodan.io/search?query=Location%3A+https%3A%2F%2Faccount.jetbrains.com%2Ffls-auth)
* [如何批量挖掘Jetbrains系列产品激活服务器](https://t.me/s/Ru05hui/123)
* [https://fofa.info](https://fofa.info)
* [https://fofa.info](https://fofa.info/result?qbase64=TG9jYXRpb246IGh0dHBzOi8vYWNjb3VudC5qZXRicmFpbnMuY29tL2Zscy1hdXRo&page=1&page_size=20)
* [如何找Jetbrains激活服务器](https://hostloc.com/thread-999341-1-1.html)
* [https://search.censys.io](https://search.censys.io)
* [记录 Rainbow Brackets 插件破解](https://reajason.com/writing/rainbowbracketscracked)
Expand Down Expand Up @@ -352,9 +351,10 @@

## FindBugs-IDEA

* [https://plugins.jetbrains.com/plugin/3847-findbugs-idea](https://plugins.jetbrains.com/plugin/3847-findbugs-idea)
* [https://github.com/andrepdo/findbugs-idea](https://github.com/andrepdo/findbugs-idea)
* [https://plugins.jetbrains.com/plugin/14014-spotbugs](https://plugins.jetbrains.com/plugin/14014-spotbugs)
* ~~[https://github.com/andrepdo/findbugs-idea](https://github.com/andrepdo/findbugs-idea)~~
* [https://andrepdo.github.io/findbugs-idea](https://andrepdo.github.io/findbugs-idea)
* [https://github.com/XenoAmess/p3c](https://github.com/XenoAmess/p3c)

> 检测代码中可能的bug及不规范的位置,检测的模式相比p3c更多,写完代码后检测下 避免低级bug,强烈建议用一下,一不小心就发现很多老代码的bug
Expand Down
5 changes: 4 additions & 1 deletion IDE/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
- [https://github.com/KillianLucas/open-interpreter](https://github.com/KillianLucas/open-interpreter)
- [https://github.com/deepseek-ai/DeepSeek-Coder](https://github.com/deepseek-ai/DeepSeek-Coder)
- [https://github.com/Codium-ai](https://github.com/Codium-ai)
- [https://cursor.sh](https://cursor.sh)
- [https://github.com/KillianLucas/open-interpreter](https://github.com/KillianLucas/open-interpreter)
- [https://github.com/DoubleTechnologies](https://github.com/DoubleTechnologies)
- [https://github.com/OpenInterpreter/open-interpreter](https://github.com/OpenInterpreter/open-interpreter)
Expand Down Expand Up @@ -134,6 +135,7 @@
+ [https://www.acme.com/software](https://www.acme.com/software)
+ [https://gitee.com/jianmu-dev](https://gitee.com/jianmu-dev)
+ [https://github.com/earthly/earthly](https://github.com/earthly/earthly)
+ [https://github.com/nucleuscloud/neosync](https://github.com/nucleuscloud/neosync)



Expand Down Expand Up @@ -323,6 +325,7 @@
* [https://github.com/HyperSine](https://github.com/HyperSine)
* [https://github.com/Abeautifulsnow/navicat-premium-crack](https://github.com/Abeautifulsnow/navicat-premium-crack)
* [https://github.com/LiJunYi2/navicat-keygen-16V](https://github.com/LiJunYi2/navicat-keygen-16V)
* [https://gitlab.com/ajiajishu/navicat-keygen-16V](https://gitlab.com/ajiajishu/navicat-keygen-16V)
* [https://github.com/team-ide/teamide](https://github.com/team-ide/teamide)
* [https://fishcodelib.com/Database.htm](https://fishcodelib.com/Database.htm)
* [https://codeberg.org/sql-workbench/workbench](https://codeberg.org/sql-workbench/workbench)
Expand Down Expand Up @@ -610,7 +613,7 @@
| 递进式向左选择代码(一样) | Shift + Alt + ← | Shift + Alt + ← |
| 跳到指定行 | Ctrl + G | Ctrl + L |
| 光标处往上添加空行 | Ctrl + Alt + Enter | Ctrl + Shift + Enter |
| 代码提示(Basic) | Ctrl + 空格 | Alt + / |
| 代码提示(Basic) | Ctrl + 空格(可能被输入法占用) | Alt + / |
| 取消撤销 | Ctrl + Shift + Z | Ctrl + Y |
| 选中区域取消注释 | Ctrl + Shift + / | Ctrl + Shift + \ |
| 添加或取消注释 | Ctrl + / | Ctrl + / Ctrl + Shift + C |
Expand Down
1 change: 1 addition & 0 deletions IDE/VisualStudioCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@
* 配色 [https://github.com/nealmckee/penumbra](https://github.com/nealmckee/penumbra)
* 禁用规则 [https://github.com/lvjiaxuan/vscode-eslint-disable](https://github.com/lvjiaxuan/vscode-eslint-disable)
* 前端提示 [https://github.com/Simon-He95/vscode-common-intellisense](https://github.com/Simon-He95/vscode-common-intellisense)
* 生成注释 [https://github.com/OBKoro1/koro1FileHeader](https://github.com/OBKoro1/koro1FileHeader)



Expand Down
1 change: 1 addition & 0 deletions IDE/软件安全.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* Java安全 [https://github.com/HackJava/HackJava](https://github.com/HackJava/HackJava)
* [https://github.com/Y4Sec-Team](https://github.com/Y4Sec-Team)
* 安全扫描 [https://github.com/CISOfy/lynis](https://github.com/CISOfy/lynis)
* [https://github.com/lcvvvv/kscan](https://github.com/lcvvvv/kscan)



Expand Down
6 changes: 3 additions & 3 deletions Java/Java构建管理.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
+ [https://github.com/souffle-lang/souffle](https://github.com/souffle-lang/souffle)
+ [https://github.com/spotbugs](https://github.com/spotbugs)
+ [https://github.com/mebigfatguy/fb-contrib](https://github.com/mebigfatguy/fb-contrib)
+ [https://github.com/findbugsproject/findbugs](https://github.com/findbugsproject/findbugs)
+ [https://sourceforge.net/projects/findbugs](https://sourceforge.net/projects/findbugs)
+ [https://github.com/KengoTODA/findbugs-slf4j](https://github.com/KengoTODA/findbugs-slf4j)
+ ~~[https://github.com/findbugsproject/findbugs](https://github.com/findbugsproject/findbugs)~~
+ [https://sourceforge.net/projects/findbugs](https://sourceforge.net/projects/findbugs)
+ [https://github.com/KengoTODA/findbugs-slf4j](https://github.com/KengoTODA/findbugs-slf4j)
+ [https://github.com/pascal-lab/Tai-e](https://github.com/pascal-lab/Tai-e)
+ [https://github.com/find-sec-bugs/find-sec-bugs](https://github.com/find-sec-bugs/find-sec-bugs)
+ [https://github.com/jimbethancourt/RefactorFirst](https://github.com/jimbethancourt/RefactorFirst)
Expand Down
1 change: 1 addition & 0 deletions Java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
- [Java版本比较](https://mp.weixin.qq.com/s/NEfqPXrcq6O1p7RLf9LWCw)
- [Java 9-16 新增语法元素一览](https://segmentfault.com/a/1190000039714550)
- [Java 速查手册](https://bbs.csdn.net/topics/609815996)
- [https://docland.io](https://docland.io)
- [javaEE和javaweb的区别?](https://www.zhihu.com/question/52002845)


Expand Down
1 change: 1 addition & 0 deletions Other/Bookmarks.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ javascript:document.body.contentEditable='true';document.designMode='on'; void 0
* [https://uxbaike.com](https://uxbaike.com)
* [https://mjcn.club](https://mjcn.club)
* [https://www.logocook.shop/editor](https://www.logocook.shop/editor)
* 灵感设计 [https://refto.one](https://refto.one)


## 文档
Expand Down
2 changes: 1 addition & 1 deletion Other/Markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ string &operator+(const string& A,const string& B) //cpp

- `<code></code>`
- `<pre></pre>`
- `<kdb></kdb>`
- `<kdb></kdb>` 按钮效果
- `<b></b>`
- `<strong></strong>`
- `<i></i>`
Expand Down
Loading

0 comments on commit 3e7aa4e

Please sign in to comment.