Skip to content

Instantly share code, notes, and snippets.



View GitHub Profile
windwp / vimrc.min
Last active May 1, 2021
fern bug rename vim
View vimrc.min
if exists('+compatible') && &compatible
set nocompatible
" Disable Vim's native pack feature
set packpath=
" Clone in somewhere
" and specify that directory to the below
windwp / livereload.lua
Created Apr 18, 2021
livereload for plugin development on lua
View livereload.lua
#Neovim Trick
Live Reload on plugin development and init.lua
# Demo
# How
* [ ] code
windwp / animation js
Last active May 4, 2021 — forked from ilblog/
Create mp4 video from set of images in the browser client side, using ffmpeg.js in worker thread
View animation js
# Inspiration
ffmeg as worker can be found at
Final build can be obtained via `wget`
#! /bin/sh
docker-compose up &
sleep 4
echo "running"
panel_1=$(tmux split-window -P -F "#{pane_id}")
tmux send -t ${panel_1} "cd ./pi1/" C-m
tmux send -t ${panel_1} "python3" C-m
windwp / media_preview.lua
Last active Mar 11, 2021
telescope media preview
View media_preview.lua
local utils = require('telescope.utils')
local defaulter = utils.make_default_callable
local actions = require('telescope.actions')
local finders = require('telescope.finders')
local make_entry = require('telescope.make_entry')
local pickers = require('telescope.pickers')
local previewers = require('telescope.previewers')
local builtin = require('telescope.builtin')
local conf = require('telescope.config').values
local flatten = vim.tbl_flatten
View iterm.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
windwp /
Last active Sep 4, 2020
IFS=':' read -r -a array <<< "$path"
start=$((${array[1]} - 1 ))
end=$((${array[1]} + 5))
bat $file -r $start:$end -H ${array[1]} --color always --decorations never
windwp /
Last active Aug 17, 2020
# use it for continue running application
# similar entr
# if you want to use swallow function you need to install
#│vim script│
# use AG search with rofi
#------------ CONFIG ----------------#
# It support search text in symlink folder so you can add your symlink to this folder
View rofi.txt
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
-h,-help This help message.