Skip to content

Instantly share code, notes, and snippets.

View ziteh's full-sized avatar
🪤
Squeak~ squeak~

ZiTe ziteh

🪤
Squeak~ squeak~
View GitHub Profile
@ziteh
ziteh / .gitlint
Last active May 29, 2024 14:00
Git Hook
# Gitlint: Linting for your git commit messages
# $ pre-commit install --hook-type commit-msg
# https://jorisroovers.com/gitlint/latest/rules/
[general]
# Ignore rules, reference them by id or name (comma-separated)
ignore=body-is-missing
# Enable specific community contributed rules
contrib=contrib-title-conventional-commits
@ziteh
ziteh / init.lua
Last active January 19, 2024 12:29
Vim config
----- Vim -----
vim.cmd("set nu rnu")
vim.cmd("set cursorline")
vim.cmd("set tabstop=4")
vim.cmd("set softtabstop=4")
vim.cmd("set shiftwidth=4")
vim.cmd("set expandtab")
vim.cmd("set autoindent")
vim.cmd("set smartindent")
@ziteh
ziteh / jlcpcb_1oz_1-2layer.kicad_dru
Last active November 23, 2022 15:27
KiCad custom rules for JLCPCB
##############################
# MIT License
#
# Copyright (c) 2022 ZiTe
#
# 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
@ziteh
ziteh / .clang-format
Last active May 24, 2024 16:25
clang-format & tidy
---
# clang-format v18.1.3
BasedOnStyle: LLVM
Language: Cpp
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 0
UseTab: Never
@ziteh
ziteh / luna_pinyin.custom.yaml
Last active April 2, 2023 12:09 — forked from lotem/luna_pinyin.custom.yaml
RIME【朙月拼音】模糊音定製模板-ZiTe自訂版
# luna_pinyin.custom.yaml
#
# 【朙月拼音】模糊音定製模板-ZiTe自訂版
# 佛振配製 :-)
# ZiTe修改(Forked from https://gist.github.com/lotem/2320943)
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)