Skip to content

Instantly share code, notes, and snippets.

View Maple-pro's full-sized avatar
🎯
Focusing

Feng Yang Maple-pro

🎯
Focusing
View GitHub Profile
@Maple-pro
Maple-pro / fzf.md
Created May 15, 2024 14:19
fzf usage

fzf Usage

# find file in ~/Documents/Personal (alias)
ff

# fuzzy completion
cd **<tab>
nvim **<tab>
kill -9 **
@Maple-pro
Maple-pro / command.md
Last active May 7, 2024 12:46
Some useful linux commands

Useful Linux Commands

# 1. find file by fzf and open it
find ~/Documents/Personal -type f | fzf -m | xargs -d '\n' -r -n 1 xdg-open
@Maple-pro
Maple-pro / vim-shortcuts.md
Last active February 26, 2024 03:28
Commonly used Vim shortcuts

Vim Shortcuts

command format: [count][operator][motion]

1 Mode

1.1 normal -> insert

i - insert
@Maple-pro
Maple-pro / shortcuts.md
Last active May 19, 2024 18:57
Commonly used shortcuts

Shortcuts

IdeaVim

<leader> key is ,

Key Mappings Details
J ideajoin: Join a selected block of text together.
f{char} easymotion: Find {char} to the right.
@Maple-pro
Maple-pro / tmux-cheatsheet.markdown
Created February 21, 2024 05:43 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@Maple-pro
Maple-pro / fonts.conf
Last active June 10, 2023 03:45 — forked from rydesun/fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'urn:fontconfig:fonts.dtd'>
<fontconfig>
<!-- Default system-ui fonts -->
<match target="pattern">
<test name="family">
<string>system-ui</string>
</test>
<edit name="family" binding="strong" mode="prepend">
<string>sans-serif</string>
@Maple-pro
Maple-pro / smalltool.js
Last active October 14, 2021 08:25
找色差游戏作弊小脚本 http://www.cuishuai.cc/game/
// http://www.cuishuai.cc/game/ 找色差游戏作弊小脚本
let intervalid = setInterval(function() {
const box = document.getElementById('box');
if (box && box.children.length >= 4) {
const base1 = box.children[0].style['backgroundColor'];
const base2 = box.children[1].style['backgroundColor'];
if (base1 === base2) {
for (let i = 1; i < box.children.length; i++) {
const now = box.children[i].style['backgroundColor'];