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
:lua vim.api.nvim_open_win(0, true, {relative='win', width=200, height=200, row=16, col=16}) |
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
# Taking a few things from my fish cfg back to bash: vi keys, branch name in prompt, custom prompt, completion (with fzf) | |
# Custom prompt | |
# Vi keys | |
# History | |
# Completion (Using fzf & fzf-tab-completion) | |
# Tip: Install bashmarks and fasd for faster directory browsing | |
# Custom prompt: Add to .bashrc | |
# Helps reset prompt when tty crashes |
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 node | |
/* | |
Usage: ./to-netscape-bookmarks.sh urls | tee bookmarks.html | |
urls is a simple textfile with urls separated by breakline | |
Titles are pulled with pup tool | |
*/ | |
const { exec } = require('child_process'), fs = require('fs'), readline = require('readline') | |
const file = process.argv[2] |
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 python | |
# A simple plugin for copying layers. | |
# The layers can be copied in normal or reverse order, | |
# and can be placed at the top or bottom of the destination's layers, | |
# or above the selected layer in the destination. | |
from gimpfu import * | |
def copy_layers(origin, dest, order, position): |
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 python | |
# GIMP Python plug-in template. | |
# To run the plugin, place it in .config/GIMP/plug-ins/PLUG_DIR/PLUG_NAME.py | |
# Where PLUG_DIR and PLUG_NAME are the name of your script e.g. myscript/myscript.py | |
# Note for AppImage version replace GIMP with GIMP-AppImage | |
# make the script executable (chmod +x myscript.py) | |
from gimpfu import * |
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
" Call the function with the cursor under a word in normal mode. | |
" The word will be replaced with the next word of a provided list. | |
" | |
" For example, passing a list like this ['true', 'false', 'undefined', 'null']... | |
" | |
" // Example code | |
" let myBool = true | |
" | |
" ...and pressing CTRL+L over the word "true" will replace it with the next word on the list: That is, "false". | |
" |