Skip to content

Instantly share code, notes, and snippets.

-- ~/.config/nvim/lua/custom/utils.lua
-- vim.keymap.set('n', '<F4>', function () require("custom.utils").toggleEncoding() end, {desc = 'Toggle encoding'})
local M = {}
M.encIndex = 1
local encodings = {'latin1', 'iso-8859-15', 'utf-8', 'ucs-bom'}
M.toggleEncoding = function()
local command = 'e ++enc=' .. encodings[M.encIndex] .. ' %:p'
print("Reopen file using " .. encodings[M.encIndex] .. " encoding")
vim.cmd(command)
@pguimier
pguimier / .bash_alias:packinst
Created January 31, 2023 23:21
Useful alias to seek and install packages using apt-cache, apt-file and fzf
alias packinst="apt-cache search . | awk '{print \$1}' | sort -u | fzf -m --preview \"cat <(apt-cache show {1}) <(apt-file list {1} | cut -d':' -f2)\" | xargs -ro sudo apt-get install"
<?php //encoding: utf-8
$vocabulary = array(
"a" =>"a!",// Ιͣ
"akesi" =>"𖠊",//ꈡ𓆈𖧿
"ala" =>"X",//╳ᳵ
"alasa" =>"⨮",
"ale" =>"⃛∞",//𑄗∾∞
"ali" =>"∞",
"anpa" =>"̣⊔",
"ante" =>"≍",//ꇤ⪥⪤
### Keybase proof
I hereby claim:
* I am pguimier on github.
* I am talou (https://keybase.io/talou) on keybase.
* I have a public key ASCWv91xCd3JgZFlaJyHNye8RAVvx4l_0_KaLNKGbx00CQo
To claim this, I am signing this object: