/mouse enable
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
function! UrlHighlight() | |
hi Hyperlink ctermfg=white ctermbg=darkmagenta guifg=white guibg=darkmagenta | |
syntax match Hyperlink `\v<(((https?|ftp|gopher|telnet)://|(mailto|file|news|about|ed2k|irc|sip|magnet):)[^' \t<>"]+|(www|web|w3)[a-z0-9_-]*\.[a-z0-9._-]+\.[^' \t<>"/]+)[a-z0-9/]` | |
hi UrlParametersQ ctermfg=red ctermbg=NONE guifg=red guibg=NONE | |
syntax match UrlParametersQ '?' containedin=Hyperlink | |
hi UrlParametersQVal ctermfg=lightblue ctermbg=NONE guifg=lightblue guibg=NONE | |
syntax match UrlParametersQVal '=\@<=.\{-}[&\n]\@=' containedin=Hyperlink | |
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 | |
# Tiny colored fetch script | |
# Requires Typicons Font to display the icons | |
# elenapan @ github | |
f=3 b=4 | |
for j in f b; do | |
for i in {0..7}; do | |
printf -v $j$i %b "\e[${!j}${i}m" | |
done |
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
# Display NUMERIC too | |
zle -N digit-argument _digit_argument | |
zle -N neg-argument _digit_argument | |
function _digit_argument () { | |
if [[ $WIDGET = neg-argument ]]; then | |
if [[ -n $NUMERIC ]]; then | |
zle -M - "" | |
else | |
zle -M - - | |
fi |
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
nnoremap <silent> <leader><space> :call SaveAndExecutePython()<CR> | |
vnoremap <silent> <leader><space> :<C-u>call SaveAndExecutePython()<CR> | |
" https://stackoverflow.com/questions/18948491/running-python-code-in-vim | |
function! SaveAndExecutePython() | |
" SOURCE [reusable window]: https://github.com/fatih/vim-go/blob/master/autoload/go/ui.vim | |
" save and reload current file | |
silent execute "update | edit" |
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
-- Author: Ole Jørgen Brønner ([email protected]) | |
-- Windows version by elig0n | |
require 'mp' | |
local function set_clipboard(text) | |
mp.commandv("run", "powershell", "set-clipboard", text); | |
end | |
function copyPermalink() |
This is a batch file could help you change working directory easier especially you need to change many directories very often like me.
- Save histroy of all navigated directories
- No duplicated directories in histroy
- Name history directories
- Jump into any directory in histroy by index or name
- Quich jump into previous directory
- Maintain history list
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 | |
# Channel hopping shell script | |
# GPLv2 | |
# Portions of code graciously taken from Bill Stearns defragfile | |
# http://www.stearns.org/defragfile/ | |
# | |
# [email protected] | |
# Defaults | |
BANDS="IEEE80211B" |
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
[skin] | |
description=Ajnasz Blue Theme. Midnight Commander skin from Ajnasz. | |
[Lines] | |
horiz=─ | |
vert=│ | |
lefttop=┌ | |
righttop=┐ | |
leftbottom=└ | |
rightbottom=┘ |
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/awk -f | |
# tcpdump regular output color wrapper | |
# usage: tcpdump [options] | awk -f tcpdump.awk | |
BEGIN { | |
yellow="\033[33m" | |
reset="\033[0m" | |
teal="\033[36m" | |
lightred="\033[91m" | |
magenta="\033[35m" |