Skip to content

Instantly share code, notes, and snippets.

View Lincest's full-sized avatar
🏸
A small piece of matter

Moreality Lincest

🏸
A small piece of matter
View GitHub Profile
@Lincest
Lincest / stat.sh
Last active October 19, 2023 16:29
aws lightsail 流量统计和自动关机脚本
#!/bin/bash
# 需要提前安装: vnstat(流量统计工具), bc(计算器), telegram-cli(可删除或替换成其他通知工具)
# 流量限制
limit=900 # GB
# 获取出站和入站流量之和(以GB为单位)
traffic=$(vnstat --oneline b | awk -F';' '{print $11}')
@Lincest
Lincest / waline-in-memos.css
Last active August 10, 2023 02:38
waline-in-memos
a.time-text:after { content: ' 评论 💬 '; }
.wl-count { color: #888888; }
#waline{ margin-top: 20px; width: 100%;}
@Lincest
Lincest / README.md
Created April 23, 2023 02:56 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@Lincest
Lincest / README.md
Created April 23, 2023 02:56 — forked from atenni/README.md
How to permalink to a gist's raw file

Problem: When linking to the raw version of a gist, the link changes with each revision.

Solution:

To return the first file from a gist: https://gist.github.com/[gist_user]/[gist_id]/raw/

To get a file from multi–file gist: https://gist.github.com/[gist_user]/[gist_id]/raw/[file_name]

@Lincest
Lincest / karabiner.json
Last active May 6, 2024 07:10
karabiner capslock
{
"title": "Moreality: Karabiner-Capslock+",
"url": "https://gist.githubusercontent.com/Lincest/a43dd5495728ce5f43150c76d5ce92bc/raw",
"version": "3.0.3",
"maintainers": [
"Moreality"
],
"author": "roccoshi(imroccoshi@gmail.com)",
"website": "https://roccoshi.top",
"import_url": "karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/Lincest/a43dd5495728ce5f43150c76d5ce92bc/raw",
PIN's Not Pinned.
@Lincest
Lincest / default.config.yaml
Last active January 23, 2022 12:15
Rime - 我的rime配置
patch:
menu/page_size: 8
ascii_composer:
switch_key:
Shift_L: noop
Shift_R: noop
Control_L: noop
Control_R: noop
Caps_Lock: noop
Eisu_toggle: clear
@Lincest
Lincest / niz-config.pro
Last active January 18, 2022 11:06
宁芝x87的配置文件, 实现了类似capslock+的效果
<?xml version="1.0" encoding="UTF-8"?>
<X87EC(S)BLe>
<PredefinedCombo>
<List SizeOfView="6" ViewStartAt="1" CursorPos="5" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0">
<x ID="0" t1="选中到行末">
<List SizeOfView="6" ViewStartAt="0" CursorPos="1" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0">
<x ID="0" t1="LSHIFT">
<List SizeOfView="6" ViewStartAt="0" CursorPos="0" Cycles="1" IsAutoInterval="0" Delay="30" PlayMode="0"/>
</x>
<x ID="1" t1="END">
@Lincest
Lincest / actionlist.vim
Created November 2, 2021 07:39 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
@Lincest
Lincest / .ideavimrc
Last active April 19, 2023 04:40
.ideavimrc
" 一些基础设置
set number
set relativenumber
set ruler
set laststatus=2
set hlsearch
set incsearch
set showmode
set showcmd
" 模式查找忽略大小写