Readme with todo-and-current, Ai as helper, Gemini.
https://www.helpfulgames.com/subjects/brain-training/memory.html
https://sudoku.com/challenges/daily-sudoku
Shuhari model: for bash in this case
| Stage | Kanji/meaning | Phrase |
|---|---|---|
| Shu | Obey | Follow examples exactly and repeat x 3 |
| Ha | Break | Adapt scripts and explore alternatives. |
| Ri | Separate | Create your own unique, efficient solutions |
Applying Shu-Ha-Ri for Accelerated Learning π
- Strictly follow one proven method (e.g., one tutorial, one recipe, one set of rules) without deviation or questioning. Focus on imitation and repetition to build unconscious competence (muscle memory/system familiarity).
- Actively experiment by testing the boundaries of the rules and integrating knowledge from other sources. Ask "Why?" to understand the underlying principles and trade-offs.
- Create your own unique methods and solutions, acting on instinct and deep, internalized knowledge. Teach the skill to others to solidify your mastery.
The 2,3,5,7 revision method
Day 2 and day 3 are revision days of the learning achieved on Day 1. Day 4 is a rest day, while Day 5 you re-visit the work. Day 6 is another rest day, and finally Day 7 is your last re-visit opportunity before you write your exam.
- Prioritize tasks: Create a to-do list and tackle the most important or difficult tasks first to avoid procrastination and clear your mind.
- Focus on one task at a time: Multitasking can decrease efficiency. Concentrate on a single task until it's complete before moving to the next.
- Use time-blocking and Break large tasks into smaller chunk
- Minimize distractions
- Declutter your workspace:
- Listen to focus-enhancing music
- Embrace "done is better than perfect":
- Take regular breaks
- Automate repetitive tasks
- SQL*, Powershell*, Bash*,
- Python, Docker
- Think automation, idempotent, .sql .ps1, .sh
Main plan overview
- Bash tutorial, REPEAT and REPEAT over again β¬οΈ fill in the shell drop down below, 20 min all it takes.
- Docker repeat not install more on linux use docker, you can, but not make gitpages of it β¬οΈ
- Added datadisk, dmzdocker03_datadisk01, 4gb. = ok
- Install Docker = ok
- Move docker volume to /datadrive (dmzdocker03_datadisk01)
- Portainer HTTPS
- Docker: Log monitor Q2 2026 Elastic stack
-
- Kibana and Elastic Search on Docker
-
-
- Filebeat on vm's
-
- dmzdocker03 Mirror server
-
- Run mirror update, then update client docker03getmirrortest
-
- Block docker03getmirrortest ubuntu repos
-
- Add a datadisk big enough to repos
-
- get ubuntu mirror for version
-
- on docker03getmirrortest set up apt list
-
-
- apt update, do we get it?
-
-
- install zabbix
-
- install mysql
- Then the AZ-2008, jump to the docker section and do azure container registry and instance
- This is quick.
https://learn.microsoft.com/en-us/training/courses/az-2008
Then Github actions-> Github self-hosted runners (Azure container registry and instance)
https://github.com/spawnmarvel/learning-docker/blob/main/README-devops.md
- Do more AZ
- AZ-104 certified professional must know, fill the gaps here (network, monitor, web apps)
- 20 min all it takes, a tutorial ms doc/learn
- Think automation and custom script extensions for Azure pipelines, docker etc
- Azure SQL tutorial (Azure Free sql) BikeStores & AdventureWorks
- Work stuff
- IP21, CIMIO, REPEAT and REPEAT, do all in chm. REPEAT and REPEAT.
- Remember sqlplus on localhost
- And Computer Science https://github.com/spawnmarvel/quickguides/tree/main/computer-science
- All linux servers, run updates
https://follow-e-lo.com/network-and-netsh/
- UFW, SSH, PS1, Bash quick ref, file system hierarchy, grep, tail, script, env, cron, py
https://github.com/spawnmarvel/linux-and-azure
Commands bash quick guide self
sudo apt update -y
sudo apt list βupgradable
sudo apt upgrade -y
sudo apt list --installed | grep -i 'influx*'
sudo apt search 'influxdb'
sudo apt update -y
sudo apt install snmp
which snmp
sudo apt remove install snmp
history
dpkg # is the underlying package manager for these ubuntu.
tail -f zabbix_server.logs
sudo grep '*failed*' /var/log/zabbix/zabbix_server.log
sudo tail -f /var/log/zabbix/zabbix_server.log >> tmp_logs
sudo find /var/log -name "*log"
ss -ltn
ss -ant 'sport = :10050'
htop
top
df -lh
ls -lhS
nano demo.sh # https://kodekloud.com/blog/make-bash-script-file-executable-linux/
#!/bin/bash
echo "Hello World!"
# r = read, w = write, x = execute, - = is not granted
ls -l demo.sh
# u = user (owner), + = add, x = execute
chmod u+x demo.sh
# or octal, 744. user (u) has read (4), write (2), and execute (1) permissions (adding up to 7)
# and the group (g) and others (o) have only read permissions (4).
chmod 744 demo.sh
# run
./demo.sh
# List all users
cat /etc/passwd
ssh-keygen -t rsa -b 4096
#Private: Your identification has been saved in C:\Users\username/.ssh/id_rsa
#Copy this:Your public key has been saved in C:\Users\username/.ssh/id_rsa.pub
ssh-rsa#################################################
# ssh to ubuntu
mkdir -p ~/.ssh
chmod 700 ~/.ssh
touch ~/.ssh/authorized_keys
sudo nano ~/.ssh/authorized_keys
# paste the full ssh-rsa
exit
ssh imsdal@192.168.3.7
no pass
https://github.com/spawnmarvel/linux-and-azure?tab=readme-ov-file#grep-it
https://github.com/spawnmarvel/linux-and-azure/tree/main/z-mind-maps
https://github.com/spawnmarvel/linux-and-azure/tree/main/azure-extra-linux-vm-mirror
https://documentation.ubuntu.com/server/
Update and upgrade / apt install
sudo apt update -y # - Update apt/sources
sudo apt list --upgradable # - List possible upgrades
sudo apt upgrade -y # - Do upgrade
cd /etc/apt/ # - View apt sources list*
ls -lh
ubuntu.sources
# lets install zabix agent2
# https://www.zabbix.com/download?zabbix=7.0&os_distribution=ubuntu&os_version=24.04&components=agent_2&db=&ws=
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb # Get pack
sudo dpkg -i zabbix-release_latest_7.0+ubuntu24.04_all.deb # -i install
sudo apt update -y
cd /etc/apt/sources.list.d
ls -lh
ubuntu.sources zabbix-tools.list zabbix.list
sudo apt install zabbix-agent2 # Install agent
Basic Commands
#!/bin/bash
echo "Hello, Bash!"
#
hello.sh
ls # - List directory contents
cd # - Change the current directory
pwd # - Print the current working directory
echo # - Display a line of text
cat # - Concatenate and display files
cp # - Copy files and directories
mv # - Move or rename files
rm # - Delete files or folders
touch # - Create an empty file or update its time
mkdir # - Create a new folder
Text Processing
man grep
# grep, egrep, fgrep, rgrep - print lines that match patterns
grep # 'pattern' filename
grep -i 'search_term' file.txt # Search ignoring case differences (uppercase or lowercase)
grep -r 'search_term' /home/user/my_directory # Search through all files in a directory and its subdirectories
grep -v 'search_term' file.txt # Find lines that do not match the pattern
# Dot (.): Matches any single character (except a newline).
# Asterisk (*): Matches zero or more occurrences of the preceding character or regular expression.
# To match any sequence of characters (similar to the shell's * wildcard), you combine . and *
grep -i 'error' syslog # Match contains error
grep -i 'heartbeat.*error' syslog # Match contains heartbeat followed by any char, then error
cd /etc/zabbix/ # Find the log file
cat cat zabbix_agent2.conf
cd /var/log/zabbix
grep 'fail' zabbix_agent2.log # Find all with fail
grep 'version' zabbix_agent2.log # Find the version
man awk
# gawk - pattern scanning and processing language
# -F - Set what separates the data fields
# -v - Set a variable to be used in the script
# -f - Use a file as the source of the awk program
cat data.txt
1;espen;45
2;silje;44
awk -F";" '{print $1}' data.txt # Field Separator
1
2
awk -F";" -v var="Name:" '{print var, $2}' data.txt # Assign Variable
Name: espen
Name: silje
awk -F";" '{sum += $3} END {print sum}' data.txt # Data Manipulation
89
# sed 's/old/new/' filename
man sed
# sed - stream editor for filtering and transforming text
# -i - Edit files directly without needing to save separately
# -e - Add the script to the commands to be executed
# -n - Don't automatically print lines
# -r - Use extended regular expressions
# -f - Add script from a file
# -l - Specify line length for l command
# -g - The optional g flag stands for global (substitute all occurrences on a line, not just the first one).
cat data.txt
1;espen;45
2;silje;44
sed 's/espen/jim/' data.txt
1;jim;45
2;silje;44
sed -i 's/espen/jim/' data.txt
cat data.txt
1;jim;45
2;silje;44
cat example.json
{
"firstName": "espen",
"lastName": "withman",
"location": "earth",
"online": true,
"followers": 987
}
sed -i 's/espen/roger/g' example.json
cat example.json
{
"firstName": "roger",
"lastName": "withman",
"location": "earth",
"online": true,
"followers": 987
}
# Redirect Output to a File
sed 's/roger/tim/' example.json > new_example.json
# cut - remove sections from each line of files
man cut
# -d - Choose what separates the fields
# -f - Select specific fields to display
# --complement - Show all fields except the selected ones
cat data.txt
1;jim;45
2;silje;44
cut -f1 -d';' data.txt
1
2
# The -f option allows you to select specific fields to display.
cut -f1-2 -d';' data.txt
1;jim
2;silje
# sort - sort lines of text files
man sort
# tail - output the last part of files
man tail
# -n [number]: Display the last [number] lines of the file.
# -f: Follow the file as it grows, useful for monitoring log files.
tail -f /var/log/syslog
tail -n 2 /var/log/syslog
# head - output the first part of files
man head
# -n [number]: Display the last [number] lines of the file.
# Display First 10 Lines
head /var/log/syslog
head -n 2 /var/log/syslog
System Monitoring
# ps - report a snapshot of the current processes.
man ps
# -e - Show all processes
# -f - Show detailed information
# -u - Show processes for a specific user
# -a - Show all processes with a terminal
# -x - Show processes without a terminal
ps -e
# display all with details like conf and bin
ps -ef
zabbix 801 1 0 14:53 ? 00:00:00 /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
# Show Processes for a Specific User
ps -u zabbix
PID TTY TIME CMD
801 ? 00:00:00 zabbix_agent2
ps -u imsdal
PID TTY TIME CMD
1181 ? 00:00:00 systemd
1182 ? 00:00:00 (sd-pam)
1310 ? 00:00:00 sshd
1313 pts/0 00:00:00 bash
1366 pts/0 00:00:00 ps
# top - display Linux processes
man top
# -d - Set the time between updates
# -p - Monitor specific PIDs
# -u - Show tasks for a specific user
# -n - Set the number of iterations
# -b - Batch mode operation
# Set Update Interval, each 5 sec
top -d 5
# monitor specific PIDs.
top -p 1010
# Show Tasks for a Specific User
top -u zabbix
# df - report file system space usage
man df
# To display disk space usage, use df:
df
# -h - Show sizes in human-readable format (e.g., KB, MB)
# -a - Show all file systems, even empty ones
# -T - Show the type of file system
# -i - Show inode usage
# -P - Use POSIX output format
# how sizes in human-readable format (e.g., KB, MB)
df -h
# how sizes in human-readable format (e.g., KB, MB) with file path
dh -hT
# du du - estimate file space usage
man du
# The -h option allows you to show sizes in human-readable format
du -h
# free - Display amount of free and used memory in the system
man free
# -h - Show memory in human-readable format (e.g., KB, MB, GB)
# -b - Show memory in bytes
# -k - Show memory in kilobytes (KB)
# -m - Show memory in megabytes (MB)
# -g - Show memory in gigabytes (GB)
# -s [interval] - Continuously display memory usage at specified intervals
# -t - Display total memory
# -h - Show memory in human-readable format (e.g., KB, MB, GB)
free -h
# [interval] - Continuously display memory usage at specified intervals
free -h -s 5
# kill - send a signal to a process
man kill
# -9: Forcefully terminate a process.
# -l: List all signal names.
# -s [signal]: Specify a signal to send.
# -p: Print the process ID.
# Forcefully Kill a Process
kill -9 1234
# List All Signal Names
kill -l
# uptime - Tell how long the system has been running.
man uptime
Networking / UFW
ping
- UFW, or Uncomplicated Firewal
https://github.com/spawnmarvel/linux-and-azure/tree/main/ufw-firewall
https://www.w3schools.com/bash/bash_commands.php
Windows.
Install java, apache tomcat, learn logs, install solr, upgrade apache.
Overview of plan
-
Install Apache Tomcat on dmzwindows07
-
Fix log levels and log size of apache
-
(fix this 1 out of 3)
-
Install solr
-
- Apache Tomcat and Solr windows fix logging 1 out of 3, optimization after scan
-
Upgrade Apache Tomcat
https://github.com/spawnmarvel/quickguides/tree/main/apache_tomcat_and_solr
Ubuntu.
Academy, stack, templates active passive, tuning, minor, major, etc
Zabbix 7 Browser items
Zabbix Academy
-
Zabbix blog
- Zabbix Stack
- Zabbix Tuning
- Zabbix Templates, active passiv
- Zabbix User parameter advanced
- Zabbix minor upgrade
- Zabbix major upgrade
- Zabbix SSL
APT sources out
Ubuntu, MySql, PHP:
- etc/apt/sources.list.d$ cat ubuntu.sources
-
- archive.ubuntu.com (80, 443)
-
- patches for vulnerabilities security.ubuntu.com (80, 443) Zabbix:
- repo.zabbix.com** β whitelist that domain (port 443)
-
- etc/apt/sources.list.d$
Ubuntu.
Ubuntu.
- Play with dasboards and more.
https://github.com/spawnmarvel/linux-and-azure/tree/main/azure-extra-linux-vm/grafana-zabbix
- Grafana Agent is an OpenTelemetry Collector
https://grafana.com/docs/agent/latest/
Ubuntu.
- RabbitMQ ubuntu shovel test new versions mtls = GOTO TBD, TLS amqp05_server.cloud TODO
https://github.com/spawnmarvel/linux-and-azure/tree/main/azure-extra-linux-vm/rabbitmq-server
Ubuntu/Windows
- input: file, amqp, disk, cpu
- output: file, amqp, zabbix
https://github.com/spawnmarvel/linux-and-azure/tree/main/azure-extra-linux-vm/telegraf
- Docs
https://docs.influxdata.com/telegraf/v1/
Ubuntu.
- 1 Learning-docker
https://github.com/spawnmarvel/learning-docker
- Course AZ-2008-A: DevOps Foundations: The Core Principles and Practices
https://learn.microsoft.com/en-us/training/courses/az-2008
- 2 Azure Devops
https://github.com/spawnmarvel/learning-docker/blob/main/README-devops.md
- Run Docker containers on-demand in a managed, serverless Azure environment.
https://learn.microsoft.com/en-us/azure/container-instances/
- Build, store, and manage container images and artifacts in a private registry for all types of container deployments
https://learn.microsoft.com/en-us/azure/container-registry/
- Ms Learn 47 results for "devops" and "Azure"
https://learn.microsoft.com/en-us/training/browse/?source=learn&terms=devops&products=azure
https://github.com/spawnmarvel/learning-docker/tree/main/prod-ish/solr
- Elasticsearch and Kibana in docker
- Filebeat on remote vm's
https://github.com/spawnmarvel/learning-docker/blob/main/prod-ish/rmq/rmq-ssl/README.md
https://github.com/spawnmarvel/azure-automation-bicep-and-labs
- Apache Tomcat and Solr
Ubuntu.
Optimization after
Fix stdout
https://github.com/spawnmarvel/quickguides/blob/main/apache_tomcat_and_solr/README.md
- amqp
-
- Requests and renew certificate
https://github.com/spawnmarvel/quickguides/blob/main/amqp/RequestRenewExample/README.md
-
- CSR and Certificate Decoder
-
- Erlang 26
https://github.com/spawnmarvel/quickguides/blob/main/amqp/Readme.md#erlang-26
- Azure Administrator AZ-104 quick guide for repeat
- bash
- cogent
- event hub
- etc
https://github.com/spawnmarvel/quickguides
- Prosys OPC UA sim, Cogent OPC UA client, InfluxDB, OPC UA expert, db21
https://github.com/spawnmarvel/quickguides/blob/main/cogent-opcua-influxdb/README.md
- Computer Science
https://github.com/spawnmarvel/quickguides/blob/main/computer-science/README.md
- Releases/Notes/Updates Gemini
- Releases/Notes/Updates Az-104
- Release/Notes/Updates Zabbix
- Release/Notes/Updates MySql
- Release/Notes/Updates RabbitMQ
- Release/Notes/Updates Telegraf
- Release/Notes/Updates Docker
- Releases/Notes/Updates Aspentech
- Sqlite