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
-- ~/.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) |
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
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" |
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
<?php //encoding: utf-8 | |
$vocabulary = array( | |
"a" =>"a!",// Ιͣ | |
"akesi" =>"𖠊",//ꈡ𓆈𖧿 | |
"ala" =>"X",//╳ᳵ | |
"alasa" =>"⨮", | |
"ale" =>"⃛∞",//𑄗∾∞ | |
"ali" =>"∞", | |
"anpa" =>"̣⊔", | |
"ante" =>"≍",//ꇤ⪥⪤ |
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
### 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: |