This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Neovim Trick | |
Live Reload on plugin development and init.lua | |
# Demo | |
# How | |
* [ ] code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inspiration | |
* https://semisignal.com/tag/ffmpeg-js/ | |
* https://github.com/antimatter15/whammy | |
ffmeg as worker can be found at https://github.com/Kagami/ffmpeg.js/ | |
Final build can be obtained via `wget https://unpkg.com/[email protected]/ffmpeg-worker-mp4.js` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 main.py" C-m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AllowClipboardAccess</key> | |
<true/> | |
<key>AlternateMouseScroll</key> | |
<true/> | |
<key>AppleAntiAliasingThreshold</key> | |
<integer>1</integer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
path=$@ | |
IFS=':' read -r -a array <<< "$path" | |
file=${array[0]} | |
start=$((${array[1]} - 1 )) | |
end=$((${array[1]} + 5)) | |
file=${file/\~/$HOME} | |
line=${array[2]} | |
bat $file -r $start:$end -H ${array[1]} --color always --decorations never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# use it for continue running application | |
# similar entr | |
# if you want to use swallow function you need to install | |
# https://github.com/windwp/i3-master-stack | |
# https://github.com/windwp/i3-master-stack/blob/master/swallow | |
#┌──────────┐ | |
#│vim script│ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# use AG search with rofi | |
# | |
#------------ CONFIG ----------------# | |
# It support search text in symlink folder so you can add your symlink to this folder | |
SEARCH_DIRECTORY="$HOME/Desktop" | |
DIRECTORY_SHORTCUT=( | |
"~/Downloads" | |
"~/Documents" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
${DISPLAY} | |
-h,-help This help message. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "alt+b", | |
"command": "workbench.action.navigateToLastEditLocation" | |
}, | |
{ | |
"key": "ctrl+k ctrl+q", | |
"command": "-workbench.action.navigateToLastEditLocation" | |
}, |
NewerOlder