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 / 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)
@ziteh
ziteh / .clang-format
Last active July 3, 2024 05:57
clang-format & tidy
---
# clang-format v18.1.3
BasedOnStyle: LLVM
Language: Cpp
TabWidth: 4
IndentWidth: 4
AccessModifierOffset: -4
ColumnLimit: 0
UseTab: Never
@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 / 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 / clone_github.sh
Last active June 28, 2024 12:32
Clone all repos from GitHub script
#!/bin/bash
# clone all repos from GitHub, using GitHub CLI
# input arg1 for user or org name, arg2 for option
# source: https://stackoverflow.com/questions/19576742/how-to-clone-all-repos-at-once-from-github
if [ -z "$1" ]; then
echo "Usage: bash $0 <USERNAME> [OPTION]"
exit 1
fi
@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
# NXP MCUXpresso
# CMake
CMakeCache.txt
CMakeFiles/
# Output
out/
build/
debug/