Skip to content

Instantly share code, notes, and snippets.

View arcosx's full-sized avatar
🌍
Remote

arcosx arcosx

🌍
Remote
View GitHub Profile
@darklinden
darklinden / sd-webui.service
Created July 20, 2023 03:00
Start Service For stable-diffusion-webui
# /etc/systemd/system/sd-webui.service
[Service]
ExecStart=/bin/bash /home/ubuntu/stable-diffusion-webui/webui.sh --listen --api
Restart=always
WorkingDirectory=/home/ubuntu/stable-diffusion-webui
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=sd-webui
@slim-bean
slim-bean / notes.md
Created June 9, 2022 12:49
Loki Essential Config Settings 2022/06/09
@Zheaoli
Zheaoli / Jetbrains JVM Config
Last active July 27, 2022 05:37
This is a JVM config for Jetbrains IDE on my laptop(With i9 10th CPU and 64G RAM)
-Xms128m
-Xmx8182m
-XX:ReservedCodeCacheSize=512m
-XX:CICompilerCount=2
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:+UnlockExperimentalVMOptions -XX:+UseZGC
-XX:ZCollectionInterval=120 -XX:ZAllocationSpikeTolerance=5
-XX:+UnlockDiagnosticVMOptions -XX:-ZProactive
@b01
b01 / download-vs-code-server.sh
Last active July 17, 2025 05:04
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
@arcosx
arcosx / DockerDelete.md
Last active May 29, 2020 03:22
停止 删除所有的docker容器和镜像

列出所有的容器 ID

docker ps -aq

停止所有的容器

docker stop $(docker ps -aq)
@rdump
rdump / kubectl-multi-version-brews.md
Last active April 4, 2024 15:20
kubectl multi-version brews (kubernetes-cli formula)

kubectl multi-version brews

Applicability

The instructions below apply to older versions of Homebrew which still provide switch capability.

For current Homebrew, you'll likely need to keep Versions around, and build locally. Here's my versions repository https://github.com/rdump/homebrew-versions

MacPorts is now keeping versioned installations available as well, by default.

@ganapativs
ganapativs / iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup.md
Last active November 1, 2025 08:55
iTerm2 + oh-my-zsh + Pure theme + zsh plugins setup
@Triple-Z
Triple-Z / PDBS.md
Last active July 1, 2019 13:01
数据库原理课程总结 NUAA Spring 2018
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active October 24, 2025 14:23
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for(...;...;...) or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 2, 2025 10:36
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example