Skip to content

Instantly share code, notes, and snippets.

@sarices
sarices / ai.list
Last active July 24, 2024 06:26
ai clash rule list
DOMAIN-SUFFIX,openai.com
DOMAIN-SUFFIX,sentry.io
DOMAIN-SUFFIX,pay.openai.com
DOMAIN-SUFFIX,identrust.com
DOMAIN,openaiapi-site.azureedge.net
DOMAIN-SUFFIX,chat.openai.com
DOMAIN-SUFFIX,challenges.cloudflare.com
DOMAIN-SUFFIX,auth0.openai.com
DOMAIN-SUFFIX,platform.openai.com
# Add ai.com
@RafaelWO
RafaelWO / docker-swarm-gpu.md
Last active January 11, 2024 21:19 — forked from tomlankhorst/docker-swarm-gpu.md
Instructions for Docker swarm with GPUs
@nanmi
nanmi / 安装nvidia-container-runtime.md
Last active March 11, 2023 01:00
不安装nvidia-docker2,容器使用宿主机gpu

docker 19.03已经正式发布了,这次发布对我来说有两大亮点。

  • 就是docker不需要root权限来启动和运行了
  • 就是支持GPU的增强功能,我们在docker里面想读取nvidia显卡再也不需要额外的安装nvidia-docker了

安装NVIDIA Container Runtime

cat nvidia-container-runtime-script.sh

curl -s -L https://nvidia.github.io/nvidia-container-runtime/gpgkey | \
  sudo apt-key add -
@lincalinca
lincalinca / m4b.sh
Last active May 29, 2024 08:59 — forked from anonymous/mp4.sh
Merge multiple mp3 or m4a files as a chaptered m4b file
#! /usr/bin/env bash
####################################################
# Required Libraries
#
# library name | commands used | verified version
# ------------------------------------------------
# ffmpeg | ffmpeg/ffprobe | 3.1.4 3.2
# gpac | mp4box | 0.6.1
# mp4v2 | mp4chaps | 2.0.0
@alexisrolland
alexisrolland / Update apk mirrors for China
Last active November 8, 2023 06:27
Commands used to update the file /etc/apk/repositories which contains the list of mirrors to download packages with apk command. Commands below were tested in a Docker container built with alpine image.
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/' /etc/apk/repositories
apk update
@ruanbekker
ruanbekker / 0_drone_minio_gitea_local.md
Last active November 29, 2023 23:06
Drone, Minio, Gitea, Sqlite on Docker Compose
  • docker-compose.yml
version: '3.6'

services:
  minio:
    image: minio/minio:RELEASE.2020-01-03T19-12-21Z
    container_name: minio
    volumes:
@fworks
fworks / install-zsh-windows-git-bash.md
Last active July 2, 2024 08:16
Zsh / Oh-my-zsh on Windows Git Bash
@mrpeardotnet
mrpeardotnet / PVE-host-backup.md
Created December 17, 2019 18:03
Proxmox PVE Host Config Backup Script

Proxmox PVE Host Config Backup Script

This script can be used to backup essential configuration files from the Proxmox Virtual Enivronment (PVE) host.

The script will create backups using tar with specified backup prefix and date and time stamp in the file name. Script will also delete backups that are older then number of days specified.

Create backup script file

To create backup script that will be executed every day we can create backup script in /etc/cron.daily/ folder. We need to make it writeable by root (creator) only, but readable and executable by everyone:

touch /etc/cron.daily/pvehost-backup
@bruvv
bruvv / Repair synology BTRFS volume
Created December 6, 2019 18:12
Synology BTRFS repair
btrfs fi show -d
(/dev/mapper/vg1000-lv)
syno_poweroff_task -d
(or: umount /volume1)
(or2: umount /volume1 -f -k)
Check to see if all us unmounted:
df -h
@f-bn
f-bn / 3-nodes-local-k8s-cluster-k3sup.md
Last active April 11, 2022 17:01
Deploy a lightweight 3-nodes K8s cluster with K3s and k3sup on your laptop