Skip to content

Instantly share code, notes, and snippets.

View PinLin's full-sized avatar
🇹🇼
Taiwan is not part of China

Pin Lin PinLin

🇹🇼
Taiwan is not part of China
View GitHub Profile
@PinLin
PinLin / slmatrix.sh
Last active April 17, 2025 18:19
4 x 4 火車矩陣
tmux new \; \
split-window -h -p 75 \; \
split-window -h -p 66 \; \
split-window -h -p 50 \; \
select-pane -t 0 \; \
send-keys 'while true; do sl; done' C-m \; \
split-window -v -p 75 \; \
send-keys 'while true; do sl; done' C-m \; \
split-window -v -p 66 \; \
send-keys 'while true; do sl; done' C-m \; \
@PinLin
PinLin / wa51.c
Last active April 16, 2018 17:37
是 89S51 ouoo
#include "reg51.h"
//#include <at89x51.h>
bit lightoff = 1;
bit lighton = 0;
sbit P1_0 = P1^0;
sbit P1_1 = P1^1;
sbit P1_2 = P1^2;
sbit P1_3 = P1^3;
sbit P1_4 = P1^4;
@PinLin
PinLin / gitlg.sh
Last active April 26, 2025 13:09
比 git log 還厲害的 git lg
git config --global alias.lg "log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
@PinLin
PinLin / useful.sh
Last active April 17, 2025 18:22
一些好用的小 Script
# `git lg`
curl -L pinlin.me/gitlg | sh
# 彩色的 bash 提示字串
curl -L pinlin.me/ps1 >> ~/.bashrc && source ~/.bashrc
@PinLin
PinLin / bash_colorful_ps1.sh
Last active March 23, 2022 22:56
彩色的 PS1 比較好看啦
PS1='\[\e[0;96m\]\u\[\e[0m\]@\[\e[0;92m\]\h\[\e[0m\]:\[\e[0;93m\]\w\[\e[0m\]$ '