Skip to content

Instantly share code, notes, and snippets.

View shuxiao9058's full-sized avatar
:octocat:
Focusing

Aaron Ji shuxiao9058

:octocat:
Focusing
View GitHub Profile
@p0358
p0358 / truecharts_pvc_backup.md
Last active April 25, 2025 03:06
How to backup your TrueCharts PVC data before moving on to TrueNAS SCALE 24.10 Electric Eel + Docker

So say that you have been running your TrueNAS SCALE 24.04 or 23.10 or older happily with your TrueCharts apps installed (as happy as you could be with that buggy mess of a project).

You either stuck with 23.10 Cobia, because you didn't want to bother doing yet another TrueCharts troublesome migration where they removed did something with PVC rearrangement and expected you to re-setup all your apps yet again (!), or you upgraded to 24.04 Fangtooth either while ignoring these instructions and apps still kept on working or running the PVC migration script as intended.

You kept your apps config storages to PVC as that was a simple default. (You start to grow a certain regret of not using host path mounts for everything from the beginning, but that's all water in drain now.)

Now you want to backup that data so that you can move to Docker-based apps in upcoming 24.10 Electric Eel release flawlessly and gracefully, and be happy everafter.

This tutorial and a bunch of pointers here is for you then

@MutoMagic
MutoMagic / TProxy.md
Last active September 1, 2024 15:19
clash+tproxy(firewalld)+docker

事前准备

  • 局域网 172.16.0.0/16
  • 服务器(ens192) 172.16.0.200
  • docker0 172.17.0.0/16
  • dockerX 172.18.0.0/16

发行版本 CentOS Linux release 7.9.2009 (Core),内核版本 Linux localhost.localdomain 3.10.0-1160.66.1.el7.x86_64。

dockerX 是 docker network 的预留地址,可用 com.docker.network.bridge.name 配置接口名称。

@thomaspoignant
thomaspoignant / Makefile
Last active January 26, 2025 19:21
My ultimate Makefile for Golang Projects
GOCMD=go
GOTEST=$(GOCMD) test
GOVET=$(GOCMD) vet
BINARY_NAME=example
VERSION?=0.0.0
SERVICE_PORT?=3000
DOCKER_REGISTRY?= #if set it should finished by /
EXPORT_RESULT?=false # for CI please set EXPORT_RESULT to true
GREEN := $(shell tput -Txterm setaf 2)
@deanishe
deanishe / alfred_alacritty_plugin.applescript
Created September 5, 2020 14:38
Alfred plugin to run terminal commands in Alacritty
on alacritty_win()
set _running to (application "Alacritty" is running)
tell application "Alacritty" to activate
tell application "System Events"
repeat while (name of first application process whose frontmost is true) is not "alacritty"
delay 0.05
end repeat
set _alacritty to first application process whose frontmost is true
-- If Alacritty was running, create a new window to run command
@bcdavasconcelos
bcdavasconcelos / San Ho Dark.css
Last active March 3, 2025 13:55
CSS style sheet for rendering Markdown in different apps (such as DEVONthink 3, nvUltra, MMD Composer) #CSS #Markdown
/* San Ho Dark - https://www.dropbox.com/s/pbd8ka36rflz71c/Captura%20de%20tela%202020-01-06%2020.59.31.png?dl=0 */
body {
font-family: "EB Garamond";
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100% margin: 0;
padding: 50px 2rem 2rem;
max-width: 800px;
}
#!/bin/bash
PROXY_BYPASS_USER="proxy"
PROXY_BYPASS_CGROUP="0x16200000"
PROXY_FWMARK="0x162"
PROXY_ROUTE_TABLE="0x162"
PROXY_DNS_SERVER="127.0.0.1:1053"
PROXY_FORCE_NETADDR="198.18.0.0/16"
PROXY_TUN_DEVICE_NAME="clash0"
@kism
kism / custom.css
Last active November 26, 2024 16:49
Custom CSS, hide the Vivaldi titlebar when fullscreen, Windows Version
/* Hide the Vivaldi titlebar when maximised, Windows Version */
/* Intended for use with tab position being on the left or right */
/* @import "custom.css"; */
/* resources\vivaldi\style\common.css */
/* Remove header */
:-webkit-any(.native, .maximized)#browser #header {
min-height: 0 !important;
}
name: "MobileNet-YOLO"
layer {
name: "data"
type: "AnnotatedData"
top: "data"
top: "label"
include {
phase: TRAIN
}
@hjertnes
hjertnes / doom.txt
Created April 6, 2018 08:28
Doom Emacs Cheatsheet
SPC
SPC: find file
, switch buffer
. browse files
: MX
; EX
< switch buffer
` eval
u universal arg
x pop up scratch
@redguardtoo
redguardtoo / .emacs
Last active May 9, 2024 14:09
minimum emacs setup for Emacs plugin testing
;; A minimum .emacs to test Emacs plugins
(show-paren-mode 1)
(eval-when-compile (require 'cl))
;; test elisps download from internet here
(setq test-elisp-dir "~/test-elisp/")
(unless (file-exists-p (expand-file-name test-elisp-dir))
(make-directory (expand-file-name test-elisp-dir)))
(setq load-path