Skip to content

Instantly share code, notes, and snippets.

@mkckr0
mkckr0 / init.gradle.kts
Last active August 21, 2025 03:15
Gradle 设置全局镜像源,支持 Android 项目,解决镜像源缺失 POM 或 JAR 文件,支持直接替换 URL
// 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"
@peyanski
peyanski / docker-compose.yml
Last active March 5, 2025 18:30
docker-compose.yml file for Home Assistant for Windows
services:
homeassistant:
container_name: ha
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- 'C:\homeassistant:/config'
environment:
- TZ=Europe/Sofia # get your Time Zone from - https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
# network_mode: host
ports: