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
#!/usr/bin/env python3 | |
#----------------------------------------------- | |
# used to swallow a terminal window in i3 | |
# | |
# INSTALL | |
# Install python 3 and install i3ipc libary | |
# pip3 install i3ipc | |
# download this scrript and put it to your i3 config folder and run |
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
#!/usr/bin/env python3 | |
#----------------------------------------------- | |
# used to swallow a terminal window in i3 | |
# | |
# INSTALL | |
# Install python 3 and install i3ipc libary | |
# pip3 install i3ipc | |
# download this scrript and put it to your i3 config folder and run | |
# chmod +x $HOME/.config/i3/i3-swallow.py |
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/ffmpeg.js@3.1.9001/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
<?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
// 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