Skip to content

Instantly share code, notes, and snippets.

@vtmx
vtmx / stylus-leg-br.css
Created June 21, 2025 00:39
stylus-leg-br
@import url('https://cdngovbr-ds.estaleiro.serpro.gov.br/design-system/fonts/rawline/css/rawline.css');
:root {
color-scheme: light dark;
--body-color: light-dark(hsl(0 45 15), hsl(0 0 95));
--body-background: light-dark(white, hsl(220 5 10));
--title-color: light-dark(#555, hsl(100 0 90));
--subtitle-color: light-dark(rgb(102, 102, 102), hsl(100 0 80));
--link-color: light-dark(#1351b4, #61afef);
--link-color-hover: light-dark(#1351b4, white);
@vtmx
vtmx / mvdate
Created November 13, 2024 02:08
mvdate
#!/usr/bin/env bash
if [[ $1 ]]; then
case $1 in
[1-9]) digit=$1 ;;
*) echo 'error: digit invalid'; exit 1 ;;
esac
else
digit=2
fi
@vtmx
vtmx / play
Last active October 16, 2024 22:25
play.sh
# Play
play() {
if type mpv >& /dev/null; then
local music="$HOME/Music"
local args="--no-video --display-tags=Title,Artist"
usage() {
echo -e "\nr Recents\ns Search"; return 1
}
@vtmx
vtmx / dna.v
Last active June 22, 2024 19:10
dna.v
import os
fn main() {
mut argv := ''
mut nucleos := ['A', 'C', 'T', 'G']
if os.args.len == 1 {
argv = os.input('nucleo: ')
} else if os.args.len == 2 {
argv = os.args[1]
@vtmx
vtmx / dna.sh
Last active June 22, 2024 19:10
dna.sh
#!/usr/bin/env bash
nucleos=(A C T G)
print_example() {
echo ' ex: ./dna.sh ACTG'
}
main() {
local argv
@vtmx
vtmx / style-term
Last active January 10, 2024 23:12
tgl
/* Reference */
/* https://raw.githubusercontent.com/samme/base16-styles/master/css-variables/base16-onedark.css */
/* Print */
/* https://i.imgur.com/3Talr9G.png */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&display=swap');
:root {
--black : #1d2127;
--red : #353b45;
@vtmx
vtmx / style-codeberg
Last active January 10, 2024 23:12
tgl
/* Reference */
/* https://codeberg.org */
/* Print */
/* https://i.imgur.com/LaGwJmk.png */
:root {
--color-body: #1d262f;
--color-text: #d2e0f0;
--color-primary: #fb923c;
--color-secondary: #242d38;
@vtmx
vtmx / gian-divider.sh
Last active October 3, 2023 02:38
gian-divider
#!/usr/bin/env bash
# Nome do arquivo a ser dividido
file="./arq.csv"
# Recebe total de linhas
file_lines=$(wc -l < $file)
# Divisor
divider=10
@vtmx
vtmx / sh
Created March 30, 2023 00:42
convert-imgs-to-txt.sh
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
if ! kdialog -v > /dev/null; then
exit_error "Command not exist: kdialog"
fi
@vtmx
vtmx / onedark.theme
Last active December 7, 2021 01:04
btop-theme-onedark
# Theme: OneDark
# By: Vitor Melo
# Main bg
theme[main_bg]="#282c34"
# Main text color
theme[main_fg]="#abb2bf"
# Title color for boxes