Skip to content

Instantly share code, notes, and snippets.

@jurandysoares
jurandysoares / corretor-av-ipv4.py
Created November 30, 2025 21:19
Script em Python para corrigir exercícios de análise de endereço IPv4 na notação CIDR (end. de rede, broadcast, mínimo e máximo)
#!/usr/bin/env python3
import csv
import argparse
import ipaddress
import logging
import pathlib
import re
import string
import sys
@jurandysoares
jurandysoares / instalacao-gitea-alpine-linux.md
Created November 26, 2025 22:39
Passos para instalação do gitea no Alpine Linux
title author date toc lang papersize
Instalação do Gitea no Alpine Linux
Jurandy Soares
26/nov/2025
true
pt-BR
a4
@jurandysoares
jurandysoares / prompt-learn-bash-shell-scripting.md
Last active November 23, 2025 12:11
Prompt to learn Bash shell scripting

Prompt to learn shell script with Bash

  1. I would like to learn how to program shell scripts using bash.
  2. Create a small booklet about shell script programming with bash.
  3. Please generate a 2-columns table with all bash numeric operators, with the 1st column being the operator, and the 2nd the name in English.
  4. When should I use double brackets in tests?
  5. Build a side-by-side comparative table showing [ ] vs [[ ]] with examples and differences.
  6. Great, now generate a table with all relational and logical operators in bash.
  7. Create practical examples showing each operator in action inside a Bash script, so I can test directly in the terminal.
  8. Now list and explain what the special Bash variables are used for, such as $#, $*, $?, $@, $0, $1, $2, etc.
@jurandysoares
jurandysoares / aprendiz-prompt-bash-shell-scripting.md
Last active November 23, 2025 12:06
Prompt para aprender shell script

Prompt para aprender shell script

  1. Gostaria de aprender a programar shell script usando o bash.
  2. Crie uma pequena apostila sobre programação de shell script com bash.
  3. Por gentileza, gere uma tabela de 3 colunas com todos os operadores numéricos de bash, sendo a 1ª coluna o operador, a segunda o nome e inglês, e a última o significado em português.
  4. Quando eu devo utilizar dois colchetes em testes?
  5. Monte uma tabela comparativa lado a lado mostrando [ ] vs [[ ]] com exemplos e diferenças.
  6. Ótimo, agora gere uma tabela com todos os operadores relacionais e lógicos do bash.
  7. Monte exemplos práticos mostrando cada operador em ação dentro de um script Bash, para eu testar diretamente no terminal.
  8. Agora me liste e explique para que servem as variáveis especiais de Bash, como $#, $*, $?, $@, $0, $1, $2 e etc.
title author date
Questões sobre sistemas operacionais de código aberto (*open source*)
Jurandy Soares
12/09/2025

Procure respostas para as seguintes perguntas sobre a história dos sistemas operacionais de código aberto, suas licenças e personagens importantes[^1].


@jurandysoares
jurandysoares / cria-contas-animais.sh
Created August 6, 2025 04:58
Cria conta de animais no Linux com shell zsh
#!/bin/zsh
curl -LO https://mange.ifrn.edu.br/csv/emojis-animais.csv
groupadd animal
tail +2 emojis-animais.csv | while IFS=, read emoji name nome; do
useradd -m -s /bin/zsh -c "${(C)nome},${name},${emoji}" "${nome}"
echo "${nome}:${name}" | chpasswd
chage -d 0 "${nome}"
usermod -aG animal "$animal"
done
@jurandysoares
jurandysoares / alpine-samba-ad-dc.md
Last active July 24, 2025 21:18
Alpine Linux: Instalacao de Samba-AD-DC
@jurandysoares
jurandysoares / brasil-regioes-estados.puml
Created May 23, 2025 12:50
Brasil: Regiões e estados
@startuml
title Divisão do Brasil por Regiões e Estados
' Brasil
:Brasil: --> N : Norte
:Brasil: --> NE : Nordeste
:Brasil: --> CO : Centro-Oeste
:Brasil: --> SE : Sudeste
:Brasil: --> S : Sul
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.