Skip to content

Instantly share code, notes, and snippets.

View Raimondi's full-sized avatar

Israel Chauca Fuentes Raimondi

View GitHub Profile
@Raimondi
Raimondi / 149909-playlist_youtube-vlc3patch.lua
Created October 23, 2025 17:25 — forked from seraku24/149909-playlist_youtube-vlc3patch.lua
VLC 3.x compatibility patch for 149909-playlist_youtube.lua
--[[
Youtube playlist importer for VLC media player 1.1 and 2.0
Copyright 2012 Guillaume Le Maout
Authors: Guillaume Le Maout
Contact: http://addons.videolan.org/messages/?action=newmessage&username=exebetche
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
@Raimondi
Raimondi / jq_jsonl_conversion.md
Created April 3, 2025 22:17 — forked from sloanlance/jq_jsonl_conversion.md
jq: JSONL ↔︎ JSON conversion

jq: JSONL ↔︎ JSON conversion

Prerequisites

  • jqhttps://jqlang.github.io/jq/ — "like sed for JSON data"

    There are several options available for installing jq. I prefer to use Homebrew: brew install jq

  1. JSONL → JSON

@Raimondi
Raimondi / vimModeStateDiagram.svg
Created November 14, 2018 00:51 — forked from darcyparker/vimModeStateDiagram.svg
Vim Modes Transition Diagram in SVG https://rawgithub.com/darcyparker/1886716/raw/eab57dfe784f016085251771d65a75a471ca22d4/vimModeStateDiagram.svg Note, most of the nodes in this graph have clickable hyperlinks to documentation.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Raimondi
Raimondi / SortUnfolded.vim
Last active November 25, 2019 17:15 — forked from inkarkat/SortUnfolded.vim
A sort function for Vim that keeps folded lines intact.
":[range]SortUnfolded[!] [i][u][r][n][x][o] [/{pattern}/]
" Sort visible lines in [range]. Lines inside closed folds
" are kept intact; sorting is done only on the first line
" of the fold; the other lines inside the fold move with
" it as a unit.
" Copyright: (C) 2018 Israel Chauca
" 2012 Ingo Karkat
" The VIM LICENSE applies to this scriptlet; see ':help copyright'.
" Inspiration:
" http://stackoverflow.com/questions/13554191/sorting-vim-folds
@Raimondi
Raimondi / tmux.md
Created October 22, 2017 19:41 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

@Raimondi
Raimondi / Ledger_3_commands.dat
Created June 17, 2017 18:12 — forked from agaviria/Ledger_3_commands.dat
Collection of ledger-cli commands
# comments example for .dat or .ledger files
@smallexample
; This is a single line comment,
# and this,
% and this,
| and this,
* and this.
# If you have a deeply nested tree of accounts,
# it may be convenient to define an alias, for example:
@Raimondi
Raimondi / .bashrc
Last active August 29, 2015 14:07 — forked from danopia/.bashrc
Use clippy for shell errors.
function command_not_found_handle {
{echo "It looks like you're trying to run a UNIX command.";echo "Would you like some help with that?"; echo; /usr/lib/command-not-found $1 2>&1|fold -sw 55}|cowsay -f$HOME/.clippy -n
}
@Raimondi
Raimondi / reg_editor.vim
Last active August 29, 2015 14:06 — forked from OliverUv/.vimrc
Edit registers in vim.
nnoremap <silent><expr><leader>m ":<C-U>let @".v:register." = ".string(getreg(v:register))."<CR><C-F>"
@Raimondi
Raimondi / gist:6750062
Last active December 24, 2015 05:19 — forked from introom/gist:6750033
" Toggle Comment
augroup toggle_comment
au FileType vim let b:comment_leader = '" '
au FileType c,cpp,java let b:comment_leader = '// '
au FileType sh,make,python let b:comment_leader = '# '
au FileType text let b:comment_leader = '% '
augroup END
function! ToggleComment() range
let cl = b:comment_leader;
for linenr in range(a:firstline, a:lastline)
@Raimondi
Raimondi / tmux_create_or_reattach.sh
Created July 13, 2012 14:57 — forked from benjaminhawkeslewis/gist:1366855
Create or reattach tmux session oneliner
function tmux_create_or_reattach() { tmux has-session -t $1 && tmux attach -t $1 || tmux -u -L $1; }
tmux_create_or_reattach weechat-curses