This site contains Angeles Broullon’s coding notes.
They mostly help me keep track of my current work, and help me clear my memory after intense projects. Most of what is stored here is related to Java, vanilla NodeJS and Python, but there is always room to learn more. Also check up the date of the note, as it may not be bleeding edge anymore: these are mostly a development diary.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
❗ Be careful: it replaces the configuration file with a new one, creating a backup adding the date to its name. If profile does not exist, it creates a new one with the default configuration.
bash: configuration is on ~/.bashrc, profile is on : ~/.bash_profile.
zsh: configuration is on ~/.zshrc, rofile is on : ~/.zsh_profile
Automatic update can be update on the configuration file, changing its value to true or false:
1
DISABLE_UPDATE_PROMPT=true
Manual update:
1
upgrade_oh_my_bash
Uninstalling
Remove and restore the previous .bashrc configuration.
1
uninstall_oh_my_bash
Themes
You can check the on the OhMyZhs wiki or OhMyBash wiki. You can change it on the .bashrc file, or even choose “random”.
1
OSH_THEME="powerline-icon"
Plugins
Small programs that add new functions. Edit the .bashrc file on the plugins section:
1 2 3 4
plugins=( git bashmarks )
Autocomplete
Shows command options, example: write gitand press tab willñ show different available options for that command, writing the first common letters available for the option you started typing.
Aliases
An alias is a custom command which executes a longer terminal command that can be set on the configuration file.
1
alias weather="curl wttr.in"
The framworks also provide some useful aliases packages:
1 2 3
aliases=( general )
Example: general brings typing C and pressing enter to clean the terminal.
Chafa is a command-line utility that enables users to print and display images directly within the terminal. It can also convert images into ASCII or colored character art, allowing them to be viewed in a text-based environment.
It can convert various image formats, such as JPEG, PNG, GIF, and BMP, into ASCII or colored character representations. It utilizes special characters and symbols to create an artistic representation of the image within the terminal.
Install
python
1
pip install chafa.py
nodejs
1
npm install chafa-wasm
Filters
ASCII Art
The tool can convert images into ASCII art, which is a technique where characters from the ASCII character set are used to represent different shades and patterns in an image. This allows users to view images using text characters, which can be useful in situations where graphical interfaces are not available or when working with text-based environments.
It is optimized for performance to ensure efficient image rendering, even for large and complex images. It leverages multi-threading and parallel processing techniques to speed up the conversion process and provide real-time or near-real-time image display within the terminal.
Improve image rendering with small color palettes using dithering:
dithering.sh:
1
chafa -c 16 --dither ordered /path/to/file
Teletext filter
teletext.sh
1
chafa -c 8 --symbols legacy+space /path/to/file
Integration and Automation
It can be easily integrated into scripts and automated workflows.
It provides command-line options and supports standard input/output, allowing users to pipe image data and automate image conversion tasks.
The 3 major cloud platform platform providers on 2025 are Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform (GCP). They basically offer the same services, but they have different names. The following tables have the goal of putting some order on those naming patterns.
Steps of incident handing (by coordination and incident-reponse teams flow):
graph LR;
A[fa:fa-shield Preparation];
B[fa:fa-magnifying-glass Detection, analysis];
C[fa:fa-truck-medical Containment, eradication, recovery];
D[fa:fa-road Post-indicent activity];
A --> B;
B --> C;
C --> B;
C --> D;
D --> A;
Preparation:
“Readiness”.
Communication and facilities.
Hadrware and software.
Documentation.
Images.
Detection and analysis:
Determine incident ocurred.
Prioritize handling.
Report incident to stakeholders.
Containment, eradication, recovery:
Limits damage.
Acquire and preserve evidence.
Eradicate.
Recovery.
Post-incident analysis:
Lessons learned.
Learn to improve.
Report.
Sharing information with other parties
graph LR;
A[Incident response team];
B[Other ncident response team];
C[Internet reporters];
D[Internet service providers];
E[Customers, Constituents and media];
F[InteSoftware and support vendores];
G[Law enforcement agencies]
A --> B;
A --> C;
A --> D;
A --> E;
A --> F;
A --> G;
Elements of an IRP
Incident reponse plan (IRP) according to NIST SP-800-61 Revision 2 (with National Footbal League analogy):
Leadership (head coach):
Mission.
Strategies and goals.
Senior management approval.
Organizational approach (ofensive and defensive coordinators):
Organizational approach to incident response.
Resource mobilitazion (special teams coach):
How the incident response team will communicate with the rest of the organization and with other organizations.
Metrics for measuring the incident response capability and its effectiveness.
Incident reponse plan (playbook):
Roadmap for maturing the incident response capability.
How the program fits into the overall organization.