sudo pacman -Sy yay lib32-ncurses ncurses tmux qemu-user-static qemu-user-static-binfmt neovim
setxkbmap -model abnt2 -layout br -variant abnt2
cat <<"EOF" > ~/.tmux.conf
## ~/.tmux.conf
## Use vim keybindings in copy mode
set-option -g mouse on
setw -g mode-keys vi
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/bash | |
# | |
# ccr: check container runtime | |
# | |
checker() { | |
exists_wgh=$(which podman 2>&1 | grep -o "no" | head -n 1) | |
exists_command=$(command -v podman &>/dev/null) | |
# bash square bracket eval to check for empty expanded variable in a string, |
This post covers the outcome of a multi-stage Dockerfile for Rust, which handles the app artifact binary to the last layer, discarding the build layer.
- High-level container runtime: Podman
- Low-level container runtime: crun
- Trunk with wasm-bidgen as dependency for a Yew project.
OCI Setup specs:
; find ./ \( -iname '*.png' \) -type f -exec ls -lt --time-style=+"%Y-%m-%d %T" {} + | sort -k6,7 | grep "fun" | awk {'print '} | sxiv -i
quick notes about the different ways to handle storage virtualization for QEMU
[31/03/2024 10:07] mknod can be used for creating block or character special files, such asdevice nodes (special directories). It is an alternative for the powerful dd command which could wipe your root system at runtime.
# check the origin
git ls-remote --get-url origin
# add remote
## for configured SSH environments as remote connection:
git remote add upstream git@github.com:{user/org}/repo.git
## for for configured HTTPS environments as remote connection:
git remote add upstream https://github.com/{user/org}/repo.git
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
vim.opt.laststatus = 2 | |
vim.opt.statusline = sl_values | |
-- local sl_values | |
-- statusline functions | |
local function StatuslineMode() | |
local mode = vim.fn.mode() | |
if mode == 'n' then |
[asari@asari nvim]$ sed -e "s/p3hp_placeholder/$roco/g" mock.lua
sed: -e expressão #1, caractere 21: opção desconhecida para o comando `s' (s///?)
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$ sed -e "s@p3hp_placeholder@$roco@g" mock.lua
require("user.remap")
require("tools")
NewerOlder